lua-language-server icon indicating copy to clipboard operation
lua-language-server copied to clipboard

Relative paths for library files break in a multi workspace setup

Open Nexela opened this issue 3 years ago • 5 comments

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

Nexela avatar Jul 19 '22 03:07 Nexela

I can not reproduce this

sumneko avatar Jul 19 '22 07:07 sumneko

This issue isn't spesific to multi-workspace projects as I am currently running into this issue without multi-workspace. To reproduce; Have 2 folders, lets say foo and bar Create a lua file in bar, lets say bar/potato.lua Open foo and add ../bar to the Lua.workspace.library setting. From the foo folder, try require that potato.lua, it will have no typing info. However, if you used an absolute path, eg C:/blah/blah/bar, it will have typing info.

Avril112113 avatar Jul 27 '22 00:07 Avril112113

Is related with #1385 ?

sumneko avatar Jul 27 '22 10:07 sumneko

Any updates @Nexela?

carsakiller avatar Nov 12 '22 07:11 carsakiller