lucasecdb / godot-wsl-lsp Goto Github PK
View Code? Open in Web Editor NEWSimple LSP server that converts WSL and Windows paths to Godot LSP
Simple LSP server that converts WSL and Windows paths to Godot LSP
Hi there, I want wondering if gdscript.lua could be modified to support C# files?
I installed this LSP using npm i -g godot-wsl-lsp
, and configured it with lspconfig accordingly;
lspconfig.gdscript.setup {
on_attach = on_attach,
on_init = on_init,
cmd = { "godot-wsl-lsp", "--useMirroredNetworking" },
}
However, when opening any gdscript files, I get an error, and the log files print the following:
node:internal/errors:496
ErrorCaptureStackTrace(err);
^
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension "" for /usr/lib/node_modules/godot-wsl-lsp/bin/godot-wsl-lsp. Loading extensionless files is not supported inside of "type":"module" package.json contexts. The package.json file /usr/lib/node_modules/godot-wsl-lsp/package.json caused this "type":"module" context. Try changing /usr/lib/node_modules/godot-wsl-lsp/bin/godot-wsl-lsp to have a file extension. Note the "bin" field of package.json can point to a file with an extension, for example {"type":"module","bin":{"godot-wsl-lsp":"./bin/godot-wsl-lsp.js"}}
at new NodeError (node:internal/errors:405:5)
at Object.getFileProtocolModuleFormat [as file:] (node:internal/modules/esm/get_format:99:9)
at defaultGetFormat (node:internal/modules/esm/get_format:142:36)
at defaultLoad (node:internal/modules/esm/load:91:20)
at DefaultModuleLoader.load (node:internal/modules/esm/loader:263:26)
at DefaultModuleLoader.moduleProvider (node:internal/modules/esm/loader:179:22)
at new ModuleJob (node:internal/modules/esm/module_job:63:26)
at #createModuleJob (node:internal/modules/esm/loader:203:17)
at DefaultModuleLoader.getJobFromResolveResult (node:internal/modules/esm/loader:156:34)
at DefaultModuleLoader.getModuleJob (node:internal/modules/esm/loader:141:17) {
code: 'ERR_UNKNOWN_FILE_EXTENSION'
}
Node.js v20.4.0
I'm inexperienced when it comes to Node packages, and when I tried changing the /bin/godot-wsl-lsp to /bin/godot-wsl-lsp.js (also changing it in the package.json), I couldn't run the module at all.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.