Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change service URL in Android Studio plugin #6237

Open
jvanderwee opened this issue Nov 5, 2024 · 6 comments
Open

How to change service URL in Android Studio plugin #6237

jvanderwee opened this issue Nov 5, 2024 · 6 comments

Comments

@jvanderwee
Copy link
Contributor

Question

Hello 👋 we've change our introspection.endpointUrl but are seemingly unable to change the service URL used by the plugin. Where is this URL defined if it's not read from the introspection settings?]

CleanShot 2024-11-05 at 11 34 09@2x

@BoD
Copy link
Contributor

BoD commented Nov 5, 2024

Hi! This does come from the introspection URL. This is read after a gradle sync, did you try that? Also note that retrieving this configuration from Gradle may take a few seconds or even minutes if you have many modules.

@jvanderwee
Copy link
Contributor Author

@BoD it hasn't updated after a gradle sync 😣

@BoD
Copy link
Contributor

BoD commented Nov 5, 2024

Sorry to hear. What if you close/re-open the project?

Also, this config is actually cached - maybe there is an issue with this. I will try to repro and see if I have the issue.

In the meantime, the cache is in your project's .idea/workspace.xml in the <component name="com.apollographql.ijplugin.settings.ProjectSettingsState"> block. I am guessing you see the old value in there? If yes you can remove the whole block, and this should fix the issue (should be done while the project is closed, otherwise the IDE will re-write its in-memory version to the disk when quitting).

@jvanderwee
Copy link
Contributor Author

Closing and reopening didn't help unfortunately.

Deleting the component block has sort of worked, navigation from the .graphql file to the schema now works but the URL dropdown is now empty 🤔 syncing and close/reopen hasn't helped

@BoD
Copy link
Contributor

BoD commented Nov 5, 2024

Thanks for the update. I wasn't able to reproduce at the moment.

Would you mind trying the snapshot version of the plugin?

If you still have the issue with it, would you mind sharing the logs?

  1. First you need to enable them by adding Apollo to the Debug Log Settings:
Screenshot 2024-11-05 at 15 19 55 Screenshot 2024-11-05 at 15 20 03
  1. Then please close/re-open the project, do a Gradle sync, and you'll find idea.log by going to Help | Show log in Finder. You can send me the file at [email protected].

Thanks!

@BoD
Copy link
Contributor

BoD commented Dec 13, 2024

Hey @jvanderwee, was wondering if you still have the issue with the latest snapshot version?

@BoD BoD added the ⌛ Waiting for info More information is required label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants