Closed wgordon17 closed 8 months ago
Hi @wgordon17 ! Thanks for reporting. I can't reproduce the issue with current PyCharm Pro 2023.3.5 and 0.7.26 plugin version. Any project opens and closes normally with plugin installed. Do you still experience the issue? If so, could you please send me (artsiom.c@codium.ai) your idea.log after reproducing the issue?
@ArtsiomCh awesome, thanks for the pointer! So, looking at logs, it looks like PyCharm is stuck with the plugin repeatedly trying to authenticate
2024-03-23 11:26:35,154 [ 26272] WARN - #ai.codium.net.CodiumNetworkClient - Failed to execute `https://securetoken.googleapis.com/v1/token` call (attempt 10/10): {
"error": {
"code": 400,
"message": "TOKEN_EXPIRED",
"status": "INVALID_ARGUMENT"
}
}
I can't figure out why this token expired, or how I can renew it. Is it as simple as uninstalling the plugin and reinstalling? Or is there something else I should do?
Well, looks like the uninstall/reinstall dance didn't help 😞
Authentication should not prevent ide closing. Also it should be only 10 retry. Token expired means the way you used to auth to the plugin is not valid anymore. You should see prompt to relogin in any of plugin toolwindow. Or you can initiate it manually by selection of Sign off in plugin status bar widget (see CodiumAI logo in right bottom corner)
Hi @ArtsiomCh Not seeing any prompt, for whatever reason ¯_(ツ)_/¯ Here's a screenshot of my IDE window
I also previously had the New UI enabled, turned that off to go back to the Old UI (pictured above) and still wasn't seeing anywhere I could Sign off or Log in
Here's a bigger export of my idea.log
content. You'll see all of the token attempts have attempt 10/10
, so it doesn't seem to be respecting that it only tries 10 times ¯_(ツ)_/¯
@wgordon17 you're right about endless retry, we accidently stack on 10 counter and keep it forever... will be fixed next release But that retry should not prevent ide closure. Just tested that scenario and IDE closed correctly... Will dive deeper into your log. Regarding Sign Off, seems like you have hidden/disabled CodiumAI status bar widget. Please enable it and you'll be able to log out and login in again.
@wgordon17 reproduced the issue Indeed our check inside retry for project/IDE closure is incorrect. Will be fixed in next release as well. Many Thanks for reporting and helping to investigate!
So, I was definitely in some weird state where the plugin thought I was logged in already. I managed to unhide the widget (didn't even know I could do that 😅), and logged in. Quit after logging in, and I was getting the same "stuck" issue.
But after I reopened, I then logged out, and logged back in again...quick PyCharm, and success! 🙌 Thanks for the help!
fixed in 0.7.27
Reproducable regardless of what project is opened. If no projects are active, it obviously doesn't happen.
No background tasks in progress (that I can tell).