-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Termux hangs when in directory with Node.js project #6151
Comments
Has anyone looked into this yet cause I'm facing the same issue. I first encountered this while using pastel-powerline preset which uses node module to display NodeJs version.I'm using it on default bash shell.In my case it happens when I repeatedly press enter several times spawning the prompt.It hangs after like 10 tries and then I have to press ctrl+c and enter although it doesn't work all the time. Sometimes it just happens randomly too. If I leave it in hang state for some time eventually get this error
I haven't tested this with other fiIe extensions like ".jar" so I'm not sure if this is related to just the node module. If I disable the node module it works fine but that's a workaround not a solution.
then all the sudden it works correctly (at least for me) without having to disable node module which is kinda confusing cause it's completely the opposite of the workaround suggested in this issue #4251 where they suggest to set it to 6. Anything above 1 doesn't work for me. Can OP try this and confirm the results please? I hope this bug get fixed soon since it's been over like 3 months ! |
Thanks for your response @Runner-coder , as you suggested I tried for doing This is not a proper solution though, or I hope to get a better explanation of why setting STARSHIP_NUM_THREADS to 1 helps to solve the problem. Edit: For now I will add |
I've made a experiment, and I think it is https://docs.rs/process_control to be blamed. Conclusions
Details of the experimentDetails of the experimentEnvironment: d510240, Windows 10, PowerShell 7, deno v2.1.4.
UpdateI might be wrong?
Weird… |
Current Behavior
when I cd into a folder where let's say package.json file is present, I have configured starship to show Node.js version in prompt, but because of that it hangs and I can't do anything until I do
ctrl + c
few times, then I can type my next command or anything but then it again hangs and I have to doctrl + c
again.Expected Behavior
The terminal should not hang and work as usual
Additional context/Screenshots
I am using Termux with Android 11. Check the screenshot.
I am guessing what I provided should be enough, if not I will be happy to provide additional info.
Environment
Relevant Shell Configuration
Starship Configuration
The text was updated successfully, but these errors were encountered: