-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Adding version watcher script to .zshrc causes VS Code shell environment to time out #17
Comments
Hi @Abion47 thanks for the report. Sorry for the delay, I was taking some time off. Yeah I believe I've noticed some race conditions with the script as well where multiple watchers get started. I'm unsure if this is what is hanging up your terminal but I did put up this PR that I think should fix that issue #18 . I have tried reproducing your issue specifically and I haven't had much luck 😞. Can you try checking out the branch for that PR and testing? You'll need to:
If you don't get back to me I'll probably just merge this because it works on my machine 😬 Hope that helps! |
This didn't fix the issue. VS Code is still pausing on startup and freezing the terminal. |
Interesting. The script shouldn't block because I believe it should start a separate child processes for If this works I'll try to find a way to mute that " exit 1" message. The command in your rc file should look like: |
Okay I may have also found another issue. Instead of using I don't think the |
So a couple of issues. First, the Second, after installing |
I have the following line at the bottom of my
.zshrc
file:I didn't notice a problem for a while (due to my penchant to not close VS Code windows very often), but when starting up VS Code after a computer reboot, the shell environment took a while to initialize, after which I got a message saying "Unable to resolve your shell environment in a reasonable time. Please review your shell configuration." After that point, the integrated terminal was frozen on "Starting" no matter what I did. After some investigation, I narrowed the cause down to the above command.
Note that this only happens when VS Code is first starting up. If I comment that line and start up VS Code, then uncomment the line and refresh the integrated terminal with the
zsh
command, the terminal successfully refreshes.The text was updated successfully, but these errors were encountered: