elixir-tools / elixir-tools.vscode

Visual Studio Code extension for Elixir
https://marketplace.visualstudio.com/items?itemName=elixir-tools.elixir-tools
Other
88 stars 9 forks source link

WSL - reinstall not working #98

Open cvkmohan opened 1 month ago

cvkmohan commented 1 month ago

image I uninstalled and reinstalled the extension. However, it shows executable not found. How do I force it to download it again? Any number of reinstalls is not helping.

mhanberg commented 1 month ago

Have you changed the installation directory of next LS in the settings?

cvkmohan commented 1 month ago

No. No change. In fact I found the nextls executable in ~/.cache/elixir-tools/nextls/bin - I deleted it and reinstalled - no use. Similarly, I found ~/.vscode-server/elixir-tools where the vscode installation. I tried removing that folder and reinstalling. In both cases the executable is neither downloaded nor could be located.

mhanberg commented 1 month ago

can you show what the permissions are on that directory? the cache dir one

cvkmohan commented 1 month ago

image

mhanberg commented 1 month ago

sorry, i meant on ~/.cache/elixir-tools and also the sub folders, I can't tell what they are from the screenshot

cvkmohan commented 1 month ago

image All folders have the same permission. So, I thought names will not be necessary. My bad.

mhanberg commented 1 month ago

thanks, have you tried deleting ~/.cache/elixir-tools or have you just deleted the actual nextls binary?

cvkmohan commented 1 month ago

I deleted the entire folder. It is not getting created. So, I created - and - then downloaded the binary and kept in place. Still, vscode extension is not recognizing this.

mhanberg commented 1 month ago

Hmm, very odd.

I think based on the logs, it is basically hanging when it tries to make that directory.

Just covering my bases, have you completely quit vscode and reopened, and potentially restart your computer?

cvkmohan commented 1 month ago

Yes. Though it is WSL - belongs to Windows family. So, yes - tried that. In the screenshot - the force nextls download flag is false. Is there any way I can set it to true? Or not needed?

mhanberg commented 1 month ago

That is just for when the builtin auto updater inside nextls is buggy and i need a way to tell the extension to reinstall it.