thqby / vscode-autohotkey2-lsp

Autohotkey v2 Language Support using vscode-lsp.
https://marketplace.visualstudio.com/items?itemName=thqby.vscode-autohotkey2-lsp
GNU Lesser General Public License v3.0
210 stars 21 forks source link

Module file "/home/domen/vscode-autohotkey2-lsp/server/dist/server.js" not found for LS "lsp-ahk2" #360

Closed DomenickD3 closed 1 year ago

DomenickD3 commented 1 year ago

I was trying to install this for a few hours now, and am running into an issue.

Error: Module file "/home/domen/vscode-autohotkey2-lsp/server/dist/server.js" not found for LS "lsp-ahk2"

module file not found

Extension Version: thqby.vscode-autohotkey2-lsp v2.1.0 is the latest version.

Environment: Windows, MSYS2, bash, vim 9.0.1403

thqby commented 1 year ago

~/vscode-autohotkey2-lsp/server/dist/server.js

DomenickD3 commented 1 year ago

with: ~/vscode-autohotkey2-lsp/server/dist/server.js

I get: [coc.nvim] Module file "C:\Users\domen/vscode-autohotkey2-lsp/server/dist/server.js" not found for LS "lsp-ahk2"

but, that's not my home directory from: domen@DD3-THINKPAD[\~/node-testing]$echo $HOME /home/domen domen@DD3-THINKPAD[~/node-testing]$echo ~ /home/domen

thqby commented 1 year ago

What's your version of nodejs? for windows?

I tested with nodejs and nvim for windows and had no problems. But my tests with the linux version of nodejs and nvim were faulty due to some incompatible code.

DomenickD3 commented 1 year ago

Node.js v18.16.1. Windows 11.

Shall I find the windows path of where the extension is installed in vscode and use that?

thqby commented 1 year ago

So you should use the windows version of vim or nvim, not the linux version.

DomenickD3 commented 1 year ago

OK,

For reference, I just tested with this, and this got me past the error: "module": "C:/Users/domen/.vscode/extensions/thqby.vscode-autohotkey2-lsp-2.1.0/server/dist/server.js",

DomenickD3 commented 1 year ago

Closing as completed. Thank you.