-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
macOS: Webstorm, Intellij, all Jetbrains Products environment failure from nvm.sh after reboot #2772
Comments
If it’s only happening inside JetBrains products, that suggests it’s not a node or nvm issue, but a jetbrains one. Have you reported it to them? |
Yep -- and I imagine they'll respond similarly about nvm... c'est la vie |
I’d hope not, given that they’re trying to emulate real terminals where it does work :-) If there’s something i can do to work around the problem, I’m open to it, but i have no idea how to debug it since i don’t use that family of products. |
A guy from JetBrains here 👋 Sorry, I have very vague understanding of how |
How aggressive is the timeout inside a jetbrains terminal? |
At the moment, it is 20 seconds (hardcoded; will be tunable in 2022.1.1+). I have to add that a shell and the helper process are spawned early at the IDE start, which itself is a heavy task. |
When I get this error (always after restart), I just quit JetBrains and restart it when my Mac has finished its login CPU churn. This is definitely a JetBrains issue, not a nvm one per se. |
Well, in a sane world one wouldn't have to jump through hoops to get the environment. |
For other users of Jetbrains products, I finally got to the bottom of this annoying message that seems to pop up only after full system reboot (before opening a terminal). After painstakingly going through every line of my .zprofile, .zshrc, .zshenv, commenting, uncommenting, rebooting, I found it...
nvm.sh
. Of course it's node related!It seems something about
nvm.sh
(permissions, prompts, errors, etc) interferes with Jetbrains shell extension loader due to "interactive shell", see https://youtrack.jetbrains.com/articles/IDEA-A-19/Shell-Environment-Loading.Trying to fix as suggested by Jetbrains doesn't work through...
I've got about 5 hours into finding this bug now -- hopefully someone who knows shell better than me can figure out what in nvm.sh is causing this issue. Reproduce with macOS 12.3, latest nvm freshly curled today, rm -rf node, yarn, all the symlinks, yadda yadda. Also posting on Youtrack so they can point others to comment out nvm.sh loads.
The text was updated successfully, but these errors were encountered: