LuaLS / LuaLS/lua-language-server

Need help with running lua lsp in a docker container

オープン
#2,718 コメント 9 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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.

![image](https://github.com/LuaLS/lua-language-server/assets/50258860/a2f98a5d-3850-42c6-9ecf-d912325d3a66)

![image](https://github.com/LuaLS/lua-language-server/assets/50258860/a3b02e37-923c-45d2-8364-6a5f9c7d2eb9)

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

![image](https://github.com/LuaLS/lua-language-server/assets/50258860/2256f064-8230-4e0c-b428-67ec61e9cf1b)

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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず Dockerfile と lua-language-server について示されている 2 つの起動形式を確認し、次に Homebrew イメージ内で --socket=5000 を指定したときの接続拒否の挙動を再現します。その結果を、macOS で何も出力されない実行結果と比較し、リモートエディターのセットアップに必要な、文書化されたコンテナの起動方法と接続の挙動を特定します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, lua
領域
devops, devtools
issue の種類
バグ
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
15/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。