Regression: emmylua_ls cannot autocomplete members of tables defined outside the active file

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
backend

調査の方向性

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.

Image
主要言語
Rust
スター
530
フォーク
111
平均マージ
2日 6時間
マージ済み PR(30日)
32

環境構築

はじめの一歩

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

EmmyLuaLs/emmylua-analyzer-rust のほかの issue

EmmyLuaLs/emmylua-analyzer-rust の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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