LuaLS / LuaLS/lua-language-server
Need help with running lua lsp in a docker container
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Lua
- Star
- 4.4k
- Fork
- 442
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với Dockerfile và hai dạng gọi được trình bày cho lua-language-server, sau đó tái hiện hành vi bị từ chối kết nối với --socket=5000 bên trong image Homebrew. So sánh kết quả đó với lần chạy im lặng trên macOS và xác định cách gọi container được ghi chép cùng hành vi kết nối cần thiết cho việc thiết lập trình soạn thảo từ xa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- docker, lua
- Lĩnh vực
- devops, devtools
- Loại issue
- Lỗi
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 15/100