LuaLS / LuaLS/lua-language-server
Need help with running lua lsp in a docker container
還沒有人認領這個 Issue。
- 主要語言
- Lua
- 星號
- 4.4k
- 分支
- 442
- PR 合併指標
- 30 天內沒有已合併 PR
描述
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
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先從 Dockerfile 以及為 lua-language-server 展示的兩種呼叫形式開始,然後在 Homebrew 映像中使用 --socket=5000 重現連線遭拒的行為。將該結果與 macOS 上靜默執行的結果進行比較,並確定遠端編輯器設定所需的文件化容器呼叫方式和連線行為。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- docker, lua
- 領域
- devops, devtools
- Issue 類型
- 缺陷
- 難度
- 5/5
- 預估耗時
- 一週以上
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 15/100