-
-
Notifications
You must be signed in to change notification settings - Fork 35
Linter can't find mod files in the current directory #86
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
Comments
Hello, that's an interesting problem and I will definitively look into it. |
I think one possible solution, besides the obvious of adding each directory entry, is to allow you to use glob expressions when specifying the projectRoot/
├── src
├── utils
├── modules
├── module_a
├── module_b and the following config
the extension will add to the search path the following directories
Is that good enough to solve your use case or I am getting something wrong? |
^ @certik |
I ran into the same problem, a year later. I found myself for each of my subdirectories adding its location to
for adding the search paths you,ve mentioned before. |
@certik took me some time to get back to this but currently we don't have native support with CMake. At some point I will have to add it but I am slightly short on time right now. With regards to the question at hand, I have gone ahead and pushed |
First of all, thank you for creating and maintaining this extension.
I have to explicitly include directories with my mod files in settings.json, in my case like this:
But my project has many subdirectories etc. I use cmake to manage it. Is there some better way to specify the paths for the linter? If not, is the intended usage that I will simply list all directories where one can find the .mod files my project specific settings for vscode?
Also, my project can be build both in tree and out of tree using cmake. In the out of tree build, the mod files will be at different location. Is there a solution to that?
Thanks for any tips.
The text was updated successfully, but these errors were encountered: