GitHub login on Linux
已回答
I'm running into an issue where IntelliJ refuses to attempt to log-in to GitHub. On my Windows system, everything works just fine. On a new Linux system (Ubuntu 22.04) when I select Log in via GitHub, it never opens a browser or a prompt of any kind to ask me to authenticate. Just spins and spins with the message ‘logging in…’
Anybody else run into this issue and solved it somehow? I don't want to have to create a token for each of my repos to give it access.
请先登录再写评论。
Hi,
Please enable debug logs (Help - Diagnostic Tools - Debug Log Settings...) for the following category
#org.jetbrains.plugins.github
Then please reproduce the issue and share the entire logs folder zipped as per https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files
Okay, I added that line to the log settings and recreated the issue, then zipped the log file. I couldn't see a way to upload that file here directly, so here is a link to it
https://drive.google.com/file/d/1fsuuiCSn7psCpYCQ4kMfxYbNnsBLv07m/view?usp=sharing
Hi Benjamin,
It looks like IDE cannot open the browser. Do you have any antivirus that could be meddling in? Can you try with different browser?
So the antivirus/security thing wasn't exactly it, but it led me down the right path. The repo I was working on I must have originally cloned in a root terminal, because when I first tried running IntelliJ without elevatation I couldn't build it for lack of permissions. So I figured I just needed to run IntelliJ with sudo. However it looks like running IntelliJ with sudo prevents it from opening a browser for OAuth, something with default X11 configuration for security. I deleted and re-cloned the repo in a non-elevated terminal, then ran IntelliJ without sudo and it opened the browser as expected and allowed me to authenticate.
Thank you for your help with this issue!