LuaLS / LuaLS/lua-language-server

Relative paths for library files break in a multi workspace setup

Open
#1,350 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug Info Needed
Dominant language
Lua
Stars
4.4k
Forks
442
PR merge metrics
No merged PRs in 30d

Description

Vscode Latest
log.log

Each workspace has it its own .luarc file
If I use a relative path for workspace.library in a multi workspace setup "../../factorio-api/", then the files are not used correctly
image

However if I use an absolute path for a workspace, that workspace will work correctly

This does not happen if the relative path is in only 1 of the workspaces with the other being empty

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in VS Code with two workspaces, each using its own .luarc and a relative workspace.library path such as "../../factorio-api/". Review the attached log.log while comparing this setup with the working absolute-path and single-workspace cases. Done means relative library paths resolve correctly for every workspace in the multi-workspace setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.