-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Issue with directory-wide nim config scripts #29
Comments
Can I have the directory structure of your project, as well as the output of |
The
|
I think I know why this doesn't work, though I must say this kind of folder structure is a bit unconventional...
EDIT: I know exactly why this doesn't work now, fix follow soon. |
Previously, when traversing a project directory to look for a potential project file, we just ignored the global config files. This was done because we can't deduce the true project file from these configuration. However the fact that that the project file cannot be outside of this directory was overlooked, and cause issues with unconventional project layout as with #29.
With the commit I merged, directly opening However if you're working on If a nimsuggest session is activated for
This is based on the simple fact that Of course, this is false for your project in particular, as
I'm considering whether this sort of "subproject within project" should be supported by default, since it doesn't respect the hierarchy of a Nim project. Though I'll tell you now that there's a high chance of ootb support given my goal for this plugin is to be foolproof... |
Hi, I noticed that while a per-module config script is properly used (ex:
myscript.nims
works formyscript.nim
), the dir-wide versions (config.nims
ornim.config
) are not processed. This causes incorrect error highlighting for a lot of things, including the unit-tests generated by nimble since this plugin is not passing the imports to nim-suggest as far as I can tell. It also results in broken imports not being highlighted as well.The text was updated successfully, but these errors were encountered: