Lua lsp server can't initialize
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 46/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Domain
- backend-api-design
Research direction
Start by tracing Lem’s LSP initialization and stdio JSON-RPC request handling; the report identifies an invalid request on the lem-lsp-mode reader thread but names no source file or test. Reproduce by opening a Lua file with Lua-language-server 3.19.2 and capturing stderr as shown. Done means initialization completes without the invalid-request error and the LSP status bar no longer hangs.
Written by the indexing model from the issue text.
Description
The lsp status bar just hangs indefinitely when i open a lua file.
Error reproduction:
~/.source/lem (main)
> lem /home/wurfkreuz/.dotfiles/nvim/lua/user/nvim-treesitter.lua 2>/tmp/lem-err.txt
~/.source/lem (main)
> cat /tmp/lem-err.txt
debugger invoked on a JSONRPC/ERRORS:JSONRPC-INVALID-REQUEST in thread #<THREAD tid=35223 "lem-lsp-mode/lem-stdio-transport reading" RUNNING {1205D63F93}>: Condition JSONRPC/ERRORS:JSONRPC-INVALID-REQUEST was signalled.
The current thread is not at the foreground,
SB-THREAD:RELEASE-FOREGROUND has to be called in #<SB-THREAD:THREAD tid=35099 "main thread" RUNNING {12042C0003}>
for this thread to enter the debugger.
Specs:
Lua-language-server: 3.19.2
Lem: c5c12149cb75
SBCL 2.6.9-1.fc44
Fedora 44, Linux 7.2.11-200.fc44.x86_64
Sway 1.11
SDL2_ttf 2.24.0, SDL2_image 2.8.12
SDL2 library: sdl2-compat-2.32.74-1.fc44.x86_64
- Dominant language
- Common Lisp
- Stars
- 3.1k
- Forks
- 261
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 133
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lem-project/lem
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
lem-project/lem#2525 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
lem-project/lem#2524 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
lem-project/lem#2488 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
lem-project/lem#2369 ·
Maintainers usually reply within 1 day
-
unix-paste-bugOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lem-project/lem#2360 ·
Maintainers usually reply within 1 day
Similar issues
-
v3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pluginkollektiv/antispam-bee#952 ·
Maintainers usually reply within 1 day
-
PROJECT: website-redesign volunteers
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
thewca/worldcubeassociation.org#16981 ·
Maintainers usually reply within 1 day
-
polish
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area:core kind:bug priority:p3 ready
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
Maintainers usually reply within 1 day