-
Notifications
You must be signed in to change notification settings - Fork 35
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
Node security-release breaks the plugin on Windows #223
Comments
@CarstenKoenig would you be so kind to share the locations in the Thanks in advance! |
Hi, I wrote a short post on how I did it here. Locations are a bit tricky as I used a JS formatter to get the file into a readable form. Is this ok for you? If not I can try and grab a copy and post it here - just give me a few minutes as I have to fire up a Windows device first. |
Will give it a try and get back to you, thanks! |
Really appreciate @CarstenKoenig's solution. Got my Purescript ide server resolved. I'm also getting the port error now which is preventing proper autocomplete and hover docs.
|
Hi @karanveersp, are you running on Windows by any chance? I'm running it on Windows and it wasn't actually a port issue in my case, it was an issue with that my Node installation was in a sub-folder of "Program Files" (the default location). I think it doesn't input the path as a string correctly which is why a space in the path to the Purescript executable is problematic. Try re-installing or moving your Node installation so that the full path to it has no spaces, and try again. Hope it helps! |
Yup, on Windows. I just re-installed node in the ProgramData dir and then all purescript IDE features are working! |
So far i'm on windows with node 21.7.3 got the errors. Updated If you don't have concens and suggestions on |
I don't think I really have a problem enabling @wclr if you don't mind please go ahead and PR, I'd love if someone would test this on windows, I absolutely do not do any development on a windows machine |
I got a windows machine and this bug is driving me crazy lol. I'm willing to help trying to fix this, shouldn't be too hard given I can get the extension up and running. |
There is already a PR merged, I was distracted from making a release. Will do so soon |
I have managed to remove all other copies of both packages from my system, and built both the plugin and the server from the latest commit on both projects. It appears I still have this issue. Maybe it's machine specific? |
@AZMCode I will resolve this issue when there is a release. It looks like the development instructions are not up to date, possibly missing some hint as to the bundling, but I'd rather spend the time getting this much delayed release out than supporting. Some windows person can test this once it is available. |
👍 |
0.26.5 should be published now with these changes (ls 0.18.2). 🤞 |
Yeah, that did it! Appreciate it deeply. That was a lot quicker than expected. Tested on windows and can confirm works as expected. |
Hi,
maybe I'm a bit late with updating my node version but this here: https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2
did just totally brick the plugin for me.
I was able to fix it (by editing the
server.js
on my install and adding the neededoption.shell=true
in two places which seems to work fine) for me but I think a better solution would be to set this flag anyway - at least when you detect that you run on Windows.If you are interested I'm willing to provide a PR for this.
Thanks for your work and time.
The text was updated successfully, but these errors were encountered: