VSCode-EmmyLua icon indicating copy to clipboard operation
VSCode-EmmyLua copied to clipboard

Symbol navigation with `workspace.library` does not take effect

Open yeshan333 opened this issue 5 months ago • 1 comments

Reproduce Project: https://github.com/yeshan333/luacheck_sarif_report_demo/tree/sarif-report-pr

Configuration: I've configured .luarc.json to reference external symbol definitions:

{
  "$schema": "https://raw.githubusercontent.com/EmmyLuaLs/emmylua-analyzer-rust/refs/heads/main/crates/emmylua_code_analysis/resources/schema.json",
  "workspace.library": [
     "$HOME/.luals/addon"
  ],
  "encoding": "utf-8",
  "enableReindex": true
}

External Libraries: The ~/.luals/addon directory contains two third-party LuaCATS libraries from https://github.com/LuaCATS:

$ ls -al ~/.luals/addon
total 0
drwxr-xr-x@ 4 yeshan333  staff  128 Sep 13 15:16 ./
drwxr-xr-x@ 3 yeshan333  staff   96 Sep 13 01:35 ../
drwxr-xr-x@ 5 yeshan333  staff  160 Sep 13 15:16 busted/
drwxr-xr-x@ 5 yeshan333  staff  160 Sep 13 14:32 luassert/

Problem: Symbol navigation for luassert within describe blocks is not functioning when using emmylua-analyzer-rust.

Image

Verification: When switching to lua-language-server, symbol navigation works correctly with the following VS Code configuration:

"Lua.workspace.library": [
    "$HOME/.luals/addon"
]
Image

yeshan333 avatar Sep 13 '25 08:09 yeshan333

assert is not a global variable

CppCXY avatar Sep 16 '25 09:09 CppCXY