Skip to content

Symbol navigation with workspace.library does not take effect #264

@yeshan333

Description

@yeshan333

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions