LuaLS / LuaLS/lua-language-server
Need help with running lua lsp in a docker container
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Lua
- Estrellas
- 4.4k
- Forks
- 442
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza con el Dockerfile y las dos formas de invocación mostradas para lua-language-server, y luego reproduce el comportamiento de conexión rechazada con --socket=5000 dentro de la imagen de Homebrew. Compara ese resultado con la ejecución silenciosa en macOS y determina la invocación documentada del contenedor y el comportamiento de conexión necesarios para la configuración del editor remoto.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- docker, lua
- Área
- devops, devtools
- Tipo de issue
- Error
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 15/100