It is not possible to **not** use the bundled server
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 215
- Forks
- 62
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Which OS are you using?
Linux
Expected Behaviour
I can specify and run an arbitrary location for the LSP binary.
Actual Behaviour
Only the bundled with the addon binary is used
Reproduction steps
Use this VScode plugin
Additional Notes
On NixOS binaries dowloaded from the web usually do not work, as their interpreter is not at the usual location that usually is assumed.
A common workaround we usually use is to use a softlink that replaces the binary to something we built with nix or set another location in VScode (we actually prefer the latter).
In a perfect world, the option can be either absolute, relative or just the binary for a lookup in the PATH.
(PS: the first version does also not work for this plugin, as then it follows the symlink and tries to write into a read only location, so I had to hardcopy the proper binary)
Log
[Error - 8:10:44 AM] Lua client: couldn't create connection to server.
Launching server using command /home/nobbz/.vscode/extensions/sumneko.lua-3.6.26-linux-x64/server/bin/lua-language-server failed. Error: spawn /home/nobbz/.vscode/extensions/sumneko.lua-3.6.26-linux-x64/server/bin/lua-language-server ENOENT
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die in diesem Issue beschriebene Konfiguration für den Serverstart und die gebündelte Binärdatei des VS Code-Plugins zu lokalisieren. Füge eine Einstellung hinzu, die für den Lua language server einen absoluten Pfad, einen relativen Pfad oder einen über PATH aufgelösten Befehl akzeptiert, und überprüfe anschließend, dass die konfigurierte ausführbare Datei anstelle der gebündelten Binärdatei gestartet wird, auch unter NixOS.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- lua, typescript
- Bereich
- tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 65/100