Replies: 1 comment 1 reply
-
From the codebase,
🤔 Can't you just write the config as the following? {
"workspace.library": [ "/usr/share/lua/5.4" ],
"workspace.ignoreDir": [ "<mymodule>" ]
} or is it because your current working directory also contains a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to specify absolute paths in
"workspace.ignoreDir"
? I tried a lot and cant quite figure it out.I have two use cases. First: When developing a LuaRocks module I get always duplicate symbols after installing my module locally and developing it at the same time.
What I currently do is this:
This works fine, however it would be nicer to not load all lua versions and instead load
"/usr/share/lua/5.4"
directly, while ignoring only the directory"/usr/share/lua/5.4/<mymodule>"
.For my other use-case I have some scripts lying around where there are many sub directories. Maybe I have a root file called
scan.lua
or something like that, and I just want to get modules from the LuaRocks tree, but not from any the sub-directories. The following config does not work as intended.This doesn't work as my require path never finds the modules from the luarocks tree. If I remove the
"*"
from"workspace.ignoreDir"
then it does find the require paths, but it will also search all the sub-directories.So is there a way to specify an absolute path in
"workspace.ignoreDir"
? Or do you have another workaround I haven't thought of?Thanks in advance =)
Beta Was this translation helpful? Give feedback.
All reactions