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
Fix node LSPs on Windows #11591
Fix node LSPs on Windows #11591
Conversation
c0a43c2
to
b0a2dff
Compare
b0a2dff
to
bcf9be8
Compare
looks like the JSON and Python language servers are still broken on my machine, investigating |
bcf9be8
to
6700424
Compare
it looks like #11156 was merged, but I'm going to ignore that for now since it was already on the path to merging when I started this. Assuming my PR ends up better, I've already rebased it on top of a revert. |
I keep getting these:
This should be entirely impossible, as I am connected to the internet, and I cannot reproduce this outside of Zed, so I have no idea what could be happening. Even executing the exact same command line somewhere else does not reproduce the issue. It seems like commands only intermittently work and otherwise fail with this nonsensical DNS error. Even if I clear all environment variables from my CMD session, I can never cause getaddrinfo to fail interactively:
Yet it constantly fails when executed by Zed specifically. |
Oh well, marking as non-draft for now as I believe that NPM issue is a separate issue. With these changes I'm able to use all the language servers that will actually install correctly, maybe eventually someone will have to figure out why npm is failing for no reason but it eventually works and that's what matters. I don't believe it's anything wrong with my code, just npm being dumb. |
6700424
to
cc0b5a0
Compare
...when a version is installed but you're not connected to the internet. Please don't delete the working local copy just because you can't check for new versions. That's an objective negative.
I've been daily driving this for a few days and it works relatively ok. Open to feedback, I'd consider this relatively merge-ready unless the DNS thing is an issue with my code instead of my computer. |
alright now all kinds of language servers work:
I don't know if I should mass-apply the changes that made the html and svelte extensions work, that pattern is repeated basically everywhere else even though version directories don't and probably never have(?) existed - I have no idea what the rationale was for these or if they're still necessary on macOS which is why I didn't already. Can someone from Zed weigh in on this? |
I have this error i dont know why i am getting this error |
okay, apparently it's not just my machine then. thanks for the report. I have absolutely no fucking clue what is going wrong, so if anyone knows why zed's mere existence causes npm to suddenly fail to use the internet please let me know |
Thank you for the contribution @LoganDark, unfortunately this PR changes too much for us to review / merge properly. Let's try making a plan of attack for 'Node LSPs on windows' via a tracking issue, and see if we can split this up into digestible chunks :) |
I could clean up the series of commits, a lot of them are self-contained (i.e. support zip extraction on windows, then fix the commands, then fix WASM paths etc.). this is the only way Zed works for me so I want to find a way to get this merged somehow. FWIW I just scrolled through the final diff and it seems some of it is messed up with the reversion of #11156, which I had to rebase on top a revert of as I didn't know that was going to get merged at the time I started this (though it seems inferior to what I have now anyway, which is why I think the revert should be fine?). |
Putting up the commits in a series of shorter PRs for us to review and comment on, with a wider plan of attack as context (e.g. the tracking issue I mentioned), would help us review and merge this. |
I suppose so, it might take me a while to find time for that level of organization, but I'm open to try. |
I noticed #11156 after I was already mostly done with this, but it looks like that one is not going to be merged anyway.
Everything now works for me on Windows, but I'll need someone on macOS to verify it still works there too. (It should)
Release Notes: