LuaLS / LuaLS/lua-language-server
Need help with running lua lsp in a docker container
Nessuno ha ancora preso questa issue.
- Lingua principale
- Lua
- Stelle
- 4.4k
- Fork
- 442
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi, this is what I am trying to do:
- I have a web editor made with react and monaco editor
- The editor is for writing lua code
- I want lua lsp autocompletions in the web editor
- I am trying to run the lua-language-server in a docker container which I hope to later run on a VPS and make the editor frontend connect to this remote lsp server to provide autocompletions
Setup:
- I used the homebrew docker image to install lua-language-server https://hub.docker.com/r/homebrew/brew
Issue faced:
When I run just the lua-language-server command, it seems to be running, but when I specify a socket, it does not start and gives a connection refused error.
moreover when I install the lsp on my mac machine and run the same command, it doesnot throw and error and seems to run silently
If anyone needs any additional details please let me know
Dockerfile:
# Use the official Homebrew Docker image as the base
FROM homebrew/brew:latest
# Install lua-language-server
RUN brew install lua-language-server
# Verify installation
RUN lua-language-server --version
# Set working directory
WORKDIR /workspace
# ENTRYPOINT ["lua-language-server --socket=5000"]
# CMD ["lua-language-server", "--socket=5000"]
EXPOSE 5000
CMD ["bash"]
tried both ENTRYPOINT and CMD, same results, which is why I used bash and interactive mode to debug
Thanks
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con il Dockerfile e le due forme di invocazione mostrate per lua-language-server, quindi riproduci il comportamento di connessione rifiutata con --socket=5000 all’interno dell’immagine Homebrew. Confronta questo risultato con l’esecuzione silenziosa su macOS e determina l’invocazione documentata del container e il comportamento della connessione necessari per la configurazione dell’editor remoto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, lua
- Ambito
- devops, devtools
- Tipo di issue
- Bug
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 15/100