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

Unable to Select Project or Change User in version 24.8.1-233-api-version-223 #3221

Open
ilGentEAcutoO opened this issue Aug 13, 2024 · 11 comments

Comments

@ilGentEAcutoO
Copy link

Expected Behavior

  1. Users should be able to select an account to login.
  2. Users should be able to select a project to continue working.

Actual Behavior

The application does not allow any selections or changes. Users are effectively locked out of core functionality.

Steps to Reproduce

  1. Open Cloud Code Assist. It immediately shows "Logged in:" status without the option to change the account.
    1

  2. Click on "next" and then "select a GCP Project to continue".
    2

  3. Attempt to select a project. The system displays: "Sign in to let Cloud Code help you manage your Google Cloud Platform resources."
    3

Environment

  • IDE: WebStorm
  • IDE Version: 2024.2
  • Cloud Code Version: 24.8.1-233-api-version-223
  • Operating System: Windows
@ivanporty
Copy link
Collaborator

Thanks for the report @ilGentEAcutoO! We were not able to reproduce but we suspect the issue might be between authentication state of Cloud Code and Gemini - did you login in Cloud Code or Gemini welcome screen? If you restart the IDE, does issue go away?

@ivanporty
Copy link
Collaborator

Just in case while we are looking into this, you can also set a project via Settings -> Tools -> Gemini, including typing your project ID manually.

@steven-xufan
Copy link

hello @ivanporty, i'm having the same issue (noticed it recently - past 1-2 weeks). i also tried to set to manually from Settings -> Tools -> Gemini but it gets stuck when i click on the Apply button. is there anyway for me to clear the cache somehow?

@ivanporty
Copy link
Collaborator

We are working to make sure the settings are recovered properly in this scenario, in the meanwhile, restarting IDE should make the login state consistent. You could also go into IDE settings (https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs), options, and remove aiPluginSettings.xml, and then restart the IDE to reset the settings.

@steven-xufan
Copy link

thanks Ivan. I tried your suggestions but it did not work. after deleting aiPluginSettings.xml files and restarted the IDE, i still see that i'm logged in from the first screen. and the second screen is still the same and could not get past it.

@Vitor-Bittencourt-Rentalmatics

Same problem. It says I am logged in as another account and doesn't give me the option to switch accounts, which means I can't access the work's environment.

Tried the whole shebang.
Uninstalled and reinstalled the plugin.
Removed the aiPluginSettings.xml file (which btw, had the right config) then uninstalled and reinstalled the plugin.

And still it only shows the wrong account, and doesn't let me switch accounts.

@ttosta-google
Copy link

ttosta-google commented Oct 1, 2024

@Vitor-Bittencourt-Rentalmatics

Please try deleting the file credentials.json located at ~/Library/Application\ Support/cloud-code/intellij (macOS) and then restarting the IDE.

We are working on a fix for this issue. Thanks for your patience.

Please let us know if it works for you.

@Vitor-Bittencourt-Rentalmatics

That worked for me.
Thank you @ttosta-google

@niraj-chaudhari-dev
Copy link

I'm experiencing the same problem and am unable to resolve it. I'm still facing this issue despite trying to delete credentials.json as well as aiPluginSettings.xml and restarting the IDE.

I started facing this issue after updating to IntelliJ IDE Build #IU-243.21565.193, built on November 12, 2024.

I would truly appreciate any help, @ttosta-google and @ivanporty :)

@ttosta-google
Copy link

Hello @niraj-chaudhari-dev

Sorry for the late response.

I was able to reset the credentials in the Gemini plugin version 1.5.0-243 by deleting the credentials.json file. My IDE is also Build #IU-243.21565.193, built on November 12, 2024

Could you please try with the latest plugin version?

Please let us know if it works for you.

@lesv
Copy link
Contributor

lesv commented Dec 11, 2024

@ttosta-google It worked for me. Thanks.

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

7 participants