LuaLS / LuaLS/lua-language-server
Need help with running lua lsp in a docker container
まだ誰も着手していません。
- 主要言語
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず Dockerfile と lua-language-server について示されている 2 つの起動形式を確認し、次に Homebrew イメージ内で --socket=5000 を指定したときの接続拒否の挙動を再現します。その結果を、macOS で何も出力されない実行結果と比較し、リモートエディターのセットアップに必要な、文書化されたコンテナの起動方法と接続の挙動を特定します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- docker, lua
- 領域
- devops, devtools
- issue の種類
- バグ
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 15/100