Regression: emmylua_ls cannot autocomplete members of tables defined outside the active file
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by reading commit e1cd626e and the completion handling path for textDocument/completion; the report provides a minimal Neovim configuration and a TCP server command to reproduce the regression. Check why completion for the standard io table returns an empty result, then confirm the members appear in Neovim after the fix.
索引モデルが issue の本文から書いたものです。
説明
After commit e1cd626e, emmylua_ls can no longer autocomplete members of a table defined outside the active file.
Reproducing
minimal repro.lua
vim.lsp.config("emmylua_ls", {
cmd = vim.lsp.rpc.connect("localhost", 5007),
filetypes = { 'lua' },
})
vim.lsp.enable("emmylua_ls")
Start emmylua_ls in tcp mode
cargo run -p emmylua_ls -- -c tcp --log-level debug --log-path /dev/stdout
Connect to emmylua_ls
nvim --clean -u repro.lua test.lua
Input io. in buffer, the press Ctrl-x Ctrl-o sequence to send a completion request
io.|
Actual behaviour
No completion result was returned to Neovim, as suggested by both the Neovim UI and the server logs.
[2026-11-04 11:45:07 +00:00 DEBUG lsp_server::msg] < {"method":"textDocument/completion","id":12,"params":{"context":{"triggerKind":1},"textDocument":{"uri":"file:///home/memchr/tmp/a.lua"},"position":{"line":0,"character":3}},"jsonrpc":"2.0"}
[2026-11-04 11:45:07 +00:00 DEBUG lsp_server::msg] > {"jsonrpc":"2.0","id":12,"result":[]}
Expected behavior
A list of members of the io table was returned to Neovim.
- 主要言語
- Rust
- スター
- 530
- フォーク
- 111
- 平均マージ
- 2日 6時間
- マージ済み PR(30日)
- 32
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
EmmyLuaLs/emmylua-analyzer-rust のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
EmmyLuaLs/emmylua-analyzer-rust#1363 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
EmmyLuaLs/emmylua-analyzer-rust#1276 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
EmmyLuaLs/emmylua-analyzer-rust#1249 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
EmmyLuaLs/emmylua-analyzer-rust#1247 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
EmmyLuaLs/emmylua-analyzer-rust#1016 ·
メンテナーはふだん 1 日以内に返信
EmmyLuaLs/emmylua-analyzer-rust の issue をすべて見る
似ている issue
-
needs-triage tooling
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
neilsh/stunt-reel#317 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
storytold/craft-fonts#65 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
storytold/craft-libs#723 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
n0-computer/iroh#4669 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信