cloud-code-intellij icon indicating copy to clipboard operation
cloud-code-intellij copied to clipboard

[Solved] Sign in button does nothing

Open airvzxf opened this issue 1 year ago • 45 comments

Gemini Code Assist | Sign in button does nothing

Problem

I tried to use Gemini in Rust Rover 2024.3 but when I clicked on the “sign in” button, nothing happened.

Screenshot_2024-11-21_23-54-50

Then, I checked the Rust Rover logs, and I got the following message. I replaced potential sensitive information from the URL with “xxxx”.

~/.cache/JetBrains/RustRover2024.3/log/idea.log

2024-11-21 23:41:24,406 [ 155626]   INFO - STDOUT - Please open the following address in your browser:
2024-11-21 23:41:24,406 [ 155626]   INFO - STDOUT -   https://accounts.google.com/o/oauth2/auth?client_id=xxxx-xxxx.apps.googleusercontent.com&code_challenge=xxxx&code_challenge_method=S256&redirect_uri=http://localhost:37665/Callback&response_type=code&scope=https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/cloud-platform&state=xxxx

Solution

After I manually opened the URL in Firefox, I am able to go to the next step to use the Gemini's plugin.

Screenshot_2024-11-21_23-59-39


Technical information

Linux laptop-archlinux 6.11.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 17 Nov 2024 16:06:17 +0000 x86_64 GNU/Linux

OS: Arch Linux 
Kernel: x86_64 Linux 6.11.9-arch1-1
Uptime: 2d 16h 1m
Packages: 1153
Shell: bash 5.2.37
Resolution: 1920x1080
WM: OpenBox
WM Theme: Clearlooks
GTK Theme: Adwaita [GTK3]
Disk: 190G / 450G (45%)
CPU: Intel Core i7-7820HK @ 8x 3.9GHz [45.0 °C]
GPU: NVIDIA GeForce GTX 1080
RAM: 7824 MiB / 64257 MiB

RustRover 2024.3
Build #RR-243.21565.245, built on November 20, 2024
Licensed to Israel Roldan
Subscription is active until February 3, 2025.
Runtime version: 21.0.5+8-b631.16 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.X11.XToolkit
Linux 6.11.9-arch1-1
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 8
Registry:
  debugger.attach.dialog.enabled=true
  ide.experimental.ui=true
  i18n.locale=
  transferSettings.vscode.onlyCargoToml=true
  terminal.new.ui.show.promotion=false
  llm.ai.assistant.toolwindow.activation.on.start=false
  org.toml.json.schema=false
Non-Bundled Plugins:
  com.google.tools.ij.aiplugin (1.5.0-243)
  com.codeium.intellij (1.26.9)
  com.tabnine.TabNine (1.165.0)
  com.github.gitofleonardo.simplesqlitebrowser (1.0.7)
  com.intellij.ml.llm (243.21565.247)
  com.intellij.grazie.pro (0.3.347)
  net.seesharpsoft.intellij.plugins.csv (4.0.0)
  com.github.copilot (1.5.29.7524)
  mobi.hsz.idea.gitignore (4.5.4)
Current Desktop: Undefined

Plugin
Gemini Code Assist | https://plugins.jetbrains.com/plugin/24198-gemini-code-assist
Google | https://plugins.jetbrains.com/vendor/Google
1.5.0-243

airvzxf avatar Nov 22 '24 06:11 airvzxf

Thanks @airvzxf, looks like the browser is not opened automatically on your OS - are you able to open other links from the IDE, or use browser to sign in to other extensions without having to manually open the URL?

ivanporty avatar Nov 22 '24 16:11 ivanporty

Thanks @airvzxf, looks like the browser is not opened automatically on your OS - are you able to open other links from the IDE, or use browser to sign in to other extensions without having to manually open the URL?

Yes, @ivanporty. I can open all the links from the IDE Rust Rover and other products of the JetBrains family. All of these links were open without problems, some of these were to login to web browser others for open web pages with information.

If you like, we can have a meeting in Google to share my screen.

airvzxf avatar Nov 22 '24 21:11 airvzxf

Please submit feedback with your logs included - use status bar Gemini icon -> Submit feedback, and mention this Github issue, we will look into more details on our side. You could also attach a small screencast on how it looks for you here, thank you

ivanporty avatar Nov 25 '24 16:11 ivanporty

Please submit feedback with your logs included - use status bar Gemini icon -> Submit feedback, and mention this Github issue, we will look into more details on our side. You could also attach a small screencast on how it looks for you here, thank you

Sure. Currently, it is working because I manually copy and paste the link of the logs in my web browser. But, I'll do the Gemini feedback.

airvzxf avatar Nov 25 '24 16:11 airvzxf

I created the screencast and uploaded in a YouTube video. Furthermore, I sent the feedback as you mentioned.

airvzxf avatar Nov 25 '24 18:11 airvzxf

Thank you! We'll take a look at this

ivanporty avatar Nov 25 '24 19:11 ivanporty

+1 running on Kubuntu. I went into ~/.cache/JetBrains/IntelliJIdea2024.3/log/idea.log, grabbed the oauth URL, copied and pasted into my browser, and voila it worked. How do we fix this to run directly from the IntelliJ button?

Operating System: Kubuntu 24.10 KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.6.0 Qt Version: 6.6.2 Kernel Version: 6.11.0-21-generic (64-bit) Graphics Platform: X11 Processors: 12 × Intel® Core™ i7-9750H CPU @ 2.60GHz Memory: 31.2 GiB of RAM Graphics Processor: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2

robmarano avatar Mar 29 '25 23:03 robmarano

We use standard IDE browser opening library. There should be no difference is a way we open login link and IDE opening all other links, but we will double check.

ivanporty avatar Mar 31 '25 13:03 ivanporty

Having the same issue, running IntelliJ 2024.3.5 (Ultimate Edition) and on Windows with Firefox as default browser.

AstralJaeger avatar Apr 06 '25 15:04 AstralJaeger

@AstralJaeger are you able to open other links from the IDE? Like Help -> Getting Started?

ivanporty avatar Apr 09 '25 19:04 ivanporty

Will close this - some flavors of Linux do not open browser from IDE (unless there is a default browser set). This seems to be very OS/window manager specific.

ivanporty avatar Apr 30 '25 20:04 ivanporty

I can open any other link in the IDE without issue, links on the plugins pages in settings, the "learn more" links on the notices that come up in the bottom right, "documentation" links on the Pycharm package management settings page for the python environment. All of them open without issue. What doesn't work is the link to "sign in with Google". This certainly makes me want to use the plugin/Gemini less since there is a constant hurdle to use. OS is Ubuntu Jammy and the window manager is XFCE if that matters.

rkoliser avatar May 01 '25 14:05 rkoliser

How come every other plugin manages to login, but gemini code assist cannot? Its obviously some thing that should be fixed in the plugin! please re open the issue and try to fix it! At least show the login URL in the plugin so we can login manually! currently I'm going to the ide logs every single time to find the url! NOTE: I am using kubuntu, and I have set chrome as the default browser.

rasoulMrz avatar May 02 '25 08:05 rasoulMrz

Will close this - some flavors of Linux do not open browser from IDE (unless there is a default browser set). This seems to be very OS/window manager specific.

Hello, @ivanporty. I want to express my opinion with all due respect.

It doesn't make sense to close this issue for the reasons you mention. Since it was mentioned from the beginning that the IDE menus work fine when opening the browser, and even other plugins work fine when opening authentications in the browser.

You could reopen this issue, leaving the opportunity for some enthusiastic user to try to solve this problem. By closing the issue, you also close the possibility of enjoying the benefits of open source.

airvzxf avatar May 02 '25 14:05 airvzxf

@ivanporty, other question: where is the source code for this plugin in IntelliJ? In this repository only are empty files and not the source folder.

airvzxf avatar May 02 '25 15:05 airvzxf

Thanks for the update on the other links working. We are using standard IDE library to open the link to sign in, but will look deeper into this.

ivanporty avatar May 02 '25 15:05 ivanporty

@airvzxf Gemini Code Assist is not an open source plugin

ivanporty avatar May 02 '25 15:05 ivanporty

Thank you for the information @ivanporty.

airvzxf avatar May 03 '25 03:05 airvzxf

I am also having this problem. Any other links work but Gemini. Are there any workarounds? I tried changing the default browser but nothing works

MilitaoLucas avatar May 19 '25 15:05 MilitaoLucas

I have a similar issue with Webstorm 2015.1 on Fedora 42. I click on the link to login. It shows the accent colour as if I clicked on it but nothing happens. However, I get this error in the logs

java.lang.NullPointerException: Cannot invoke "com.android.studio.ml.Authenticator$UserInfo.getEmail()" because "user" is null
	at com.google.tools.intellij.aiplugin.cloud.ProjectSelectionDialogBase.loadProjectList(ProjectSelectionDialogBase.java:253)
	at com.google.tools.intellij.aiplugin.cloud.ProjectSelectionDialogBase.loadAllProjects(ProjectSelectionDialogBase.java:245)
	at com.google.tools.intellij.aiplugin.cloud.ProjectSelectionDialogBase.showDialog(ProjectSelectionDialogBase.java:205)
	at com.google.tools.intellij.aiplugin.action.SelectGcpProjectAction$Companion.selectGcpProject(SelectGcpProjectAction.kt:30)
	at com.google.tools.intellij.aiplugin.settings.GcpProjectSelectionConfigurableComponent.textFieldWithBrowseButton$lambda$1(GcpProjectSelectionConfigurableComponent.kt:41)
	at com.intellij.openapi.ui.ComponentWithBrowseButton.notifyActionListeners(ComponentWithBrowseButton.java:134)
	at com.intellij.ide.ui.laf.darcula.ui.TextFieldWithPopupHandlerUI.handleMouse(TextFieldWithPopupHandlerUI.java:527)
	at com.intellij.ide.ui.laf.darcula.ui.TextFieldWithPopupHandlerUI$Handler.mouseClicked(TextFieldWithPopupHandlerUI.java:351)
	at java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:278)
	at java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:277)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6676)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3394)
	at java.desktop/java.awt.Component.processEvent(Component.java:6438)
	at java.desktop/java.awt.Container.processEvent(Container.java:2266)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5043)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4871)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4963)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4586)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4518)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2810)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4871)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:783)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:728)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:755)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:753)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:752)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:585)
	at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.kt:530)
	at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$16(IdeEventQueue.kt:473)
	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction$lambda$6(AnyThreadWriteThreadingSupport.kt:274)
	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWithTemporaryThreadLocal(AnyThreadWriteThreadingSupport.kt:204)
	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:274)
	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runPreventiveWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:218)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:473)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$12$lambda$11$lambda$10$lambda$9(IdeEventQueue.kt:307)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:864)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$12$lambda$11$lambda$10(IdeEventQueue.kt:306)
	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$3(IdeEventQueue.kt:958)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:109)
	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:958)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$12(IdeEventQueue.kt:301)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:341)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:121)
	at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236)
	at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:319)
	at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234)
	at java.desktop/java.awt.Dialog.show(Dialog.java:1079)
	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:871)
	at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:458)
	at com.intellij.openapi.ui.DialogWrapper.doShow(DialogWrapper.java:1815)
	at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1764)
	at com.intellij.ide.actions.ShowSettingsUtilImpl$Companion.showInternal(ShowSettingsUtilImpl.kt:73)
	at com.intellij.ide.actions.ShowSettingsUtilImpl$Companion.showSettings(ShowSettingsUtilImpl.kt:56)
	at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.kt:163)
	at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.kt:143)
	at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.kt:134)
	at com.android.studio.ml.action.ConfigureStudioBotAction.actionPerformed(ConfigureStudioBotAction.kt:30)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.doPerformActionOrShowPopup(ActionUtil.kt:383)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks$lambda$7(ActionUtil.kt:353)
	at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.performWithActionCallbacks(ActionManagerImpl.kt:1167)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAwareWithCallbacks(ActionUtil.kt:352)
	at com.intellij.ui.popup.ActionPopupStep.performActionItem(ActionPopupStep.java:300)
	at com.intellij.ui.popup.ActionPopupStep.lambda$onChosen$3(ActionPopupStep.java:268)
	at com.intellij.ui.popup.AbstractPopup.lambda$dispose$21(AbstractPopup.java:2011)
	at com.intellij.openapi.application.WriteIntentReadAction.lambda$run$0(WriteIntentReadAction.java:24)
	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction$lambda$6(AnyThreadWriteThreadingSupport.kt:274)
	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWithTemporaryThreadLocal(AnyThreadWriteThreadingSupport.kt:204)
	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:274)
	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:222)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteIntentReadAction(ApplicationImpl.java:1009)
	at com.intellij.openapi.application.WriteIntentReadAction.compute(WriteIntentReadAction.java:55)
	at com.intellij.openapi.application.WriteIntentReadAction.run(WriteIntentReadAction.java:23)
	at com.intellij.openapi.wm.impl.FocusManagerImpl.lambda$doWhenFocusSettlesDown$4(FocusManagerImpl.java:178)
	at com.intellij.util.ui.EdtInvocationManager.invokeLaterIfNeeded(EdtInvocationManager.java:32)
	at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:173)
	at com.intellij.openapi.wm.impl.FocusManagerImpl.doWhenFocusSettlesDown(FocusManagerImpl.java:165)
	at com.intellij.ui.popup.AbstractPopup.dispose(AbstractPopup.java:2009)
	at com.intellij.ui.popup.WizardPopup.dispose(WizardPopup.java:175)
	at com.intellij.ui.popup.list.ListPopupImpl.dispose(ListPopupImpl.java:407)
	at com.intellij.ui.popup.PopupFactoryImpl$ActionGroupPopup.dispose(PopupFactoryImpl.java:324)
	at com.intellij.openapi.util.ObjectTree.runWithTrace(ObjectTree.java:132)
	at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:164)
	at com.intellij.openapi.util.Disposer.dispose(Disposer.java:205)
	at com.intellij.openapi.util.Disposer.dispose(Disposer.java:193)
	at com.intellij.ui.popup.WizardPopup.disposeAllParents(WizardPopup.java:303)
	at com.intellij.ui.popup.list.ListPopupImpl.disposePopup(ListPopupImpl.java:539)
	at com.intellij.ui.popup.list.ListPopupImpl.handleNextStep(ListPopupImpl.java:563)
	at com.intellij.ui.popup.list.ListPopupImpl._handleSelect(ListPopupImpl.java:524)
	at com.intellij.ui.popup.list.ListPopupImpl.handleSelect(ListPopupImpl.java:449)
	at com.intellij.ui.popup.PopupFactoryImpl$ActionGroupPopup.handleSelect(PopupFactoryImpl.java:341)
	at com.intellij.ui.popup.list.ListPopupImpl$MyMouseListener.mouseReleased(ListPopupImpl.java:789)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:298)
	at java.desktop/java.awt.Component.processMouseEvent(Component.java:6673)
	at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3394)
	at com.intellij.ui.popup.list.ListPopupImpl$MyList.processMouseEvent(ListPopupImpl.java:854)
	at java.desktop/java.awt.Component.processEvent(Component.java:6438)
	at java.desktop/java.awt.Container.processEvent(Container.java:2266)
	at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5043)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4871)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4963)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4577)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4518)
	at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
	at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2810)
	at java.desktop/java.awt.Component.dispatchEvent(Component.java:4871)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:783)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:728)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:755)
	at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:753)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:752)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.kt:585)
	at com.intellij.ide.IdeEventQueue.dispatchMouseEvent(IdeEventQueue.kt:530)
	at com.intellij.ide.IdeEventQueue._dispatchEvent$lambda$16(IdeEventQueue.kt:473)
	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction$lambda$6(AnyThreadWriteThreadingSupport.kt:274)
	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWithTemporaryThreadLocal(AnyThreadWriteThreadingSupport.kt:204)
	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:274)
	at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runPreventiveWriteIntentReadAction(AnyThreadWriteThreadingSupport.kt:218)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.kt:473)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$12$lambda$11$lambda$10$lambda$9(IdeEventQueue.kt:307)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:864)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$12$lambda$11$lambda$10(IdeEventQueue.kt:306)
	at com.intellij.ide.IdeEventQueueKt.performActivity$lambda$3(IdeEventQueue.kt:958)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:117)
	at com.intellij.ide.IdeEventQueueKt.performActivity(IdeEventQueue.kt:958)
	at com.intellij.ide.IdeEventQueue.dispatchEvent$lambda$12(IdeEventQueue.kt:301)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.kt:341)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
2025-05-20 11:49:11,304 [ 240419] SEVERE - #c.i.i.p.P
2025-05-20 11:49:11,304 [ 240419] SEVERE - #c.i.i.p.PluginManager - Plugin to blame: Gemini Code Assist version: 1.1luginManager - WebStorm 2025.1.1  Build #WS-251.25410.117
2025-05-20 11:49:11,304 [ 240419] SEVERE - #c.i.i.p.PluginManager - JDK: 21.0.6; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o.
2025-05-20 11:49:11,304 [ 240419] SEVERE - #c.i.i.p.PluginManager - OS: Linux5.0-251```

jabreland avatar May 20 '25 15:05 jabreland

I am also on Fedora 42, btw.

MilitaoLucas avatar May 20 '25 20:05 MilitaoLucas

@ivanporty In the end I was able to sort it out by manually coping the link from Firefox to Chromium and opening it there, then the callback worked. Maybe providing a Copy Link button would help?

AstralJaeger avatar May 21 '25 08:05 AstralJaeger

@ivanporty In the end I was able to sort it out by manually coping the link from Firefox to Chromium and opening it there, then the callback worked. Maybe providing a Copy Link button would help?

It is a fantastic idea. Hopefully, Google investment in these changes to use correctly Gemini in JetBrains.

airvzxf avatar May 21 '25 13:05 airvzxf

They should just open source it like microsoft did with copilot. That way we could fix it ourselves.

MilitaoLucas avatar May 21 '25 13:05 MilitaoLucas

@ivanporty In the end I was able to sort it out by manually coping the link from Firefox to Chromium and opening it there, then the callback worked. Maybe providing a Copy Link button would help?

How did you do it? My Firefox doesn't even open the link after clicking

MilitaoLucas avatar May 21 '25 22:05 MilitaoLucas

I was able to get it working! Click to submit feedback, at the Gemini icon and in the log, you will see the link to login!

MilitaoLucas avatar May 21 '25 22:05 MilitaoLucas

@ivanporty

Thanks for the update on the other links working. We are using standard IDE library to open the link to sign in, but will look deeper into this.

There are two ways to open links in the IntelliJ Platform:

  • Desktop.getDesktop().browse(uri) -> this is the old way. This doesn't work in some cases.
  • BrowserUtil.browse(uri) -> more recent, it works everywhere, even on Linux and when there is no default browser.

I guess you're still using Desktop.getDesktop().browse(uri)? I faced the exact same issue with my plugins ;-)

jonathanlermitage avatar Jun 20 '25 12:06 jonathanlermitage

@jonathanlermitage we use BrowserUtil.browse(uri)

ivanporty avatar Jun 26 '25 21:06 ivanporty

In this case you may wan to open an issue https://youtrack.jetbrains.com/issues/IDEA

jonathanlermitage avatar Jun 26 '25 22:06 jonathanlermitage

@jonathanlermitage, I can open it, but other plugins are working, the only which is not working is Gemini CA. Could you confirm if it is necessary to open a ticket from the JetBrains side?

airvzxf avatar Jun 26 '25 23:06 airvzxf