Giter Club home page Giter Club logo

godot-wsl-lsp's People

Watchers

 avatar

Forkers

audeck

godot-wsl-lsp's Issues

C# support?

Hi there, I want wondering if gdscript.lua could be modified to support C# files?

Issues when running the package

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.