Skip to content

Relative paths for library files break in a multi workspace setup #1350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Nexela opened this issue Jul 19, 2022 · 5 comments
Open

Relative paths for library files break in a multi workspace setup #1350

Nexela opened this issue Jul 19, 2022 · 5 comments
Labels
bug Something isn't working Info Needed More information is required

Comments

@Nexela
Copy link
Contributor

Nexela commented Jul 19, 2022

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

@sumneko sumneko added the bug Something isn't working label Jul 19, 2022
@sumneko
Copy link
Collaborator

sumneko commented Jul 19, 2022

I can not reproduce this

@sumneko sumneko added the Info Needed More information is required label Jul 21, 2022
@Avril112113
Copy link

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.

@sumneko
Copy link
Collaborator

sumneko commented Jul 27, 2022

Is related with #1385 ?

@carsakiller
Copy link
Collaborator

Any updates @Nexela?

@hinell
Copy link

hinell commented Apr 2, 2025

You can provide the config? What's in the workspace.library?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Info Needed More information is required
Projects
None yet
Development

No branches or pull requests

5 participants