-
Notifications
You must be signed in to change notification settings - Fork 192
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
How to use "nimble develop" AND "nimble develop -g" #1124
Comments
I don't get it either:
Please revert to the old |
It seems to work when you use
instead of the compiler. The compiler does not pick it up unfortunately. |
This is really annoying :/ I'm also running a lot of files through the compiler directly ( |
I think I understand the issue now. Two problems seem to play into it:
After I added the missing configuration and edited the .nimble-link file to point to the srcDir, I could successfully import the package. However, nimble then complained about the nimble-link file having an invalid format, so I'm a unsure what the correct fix should be... |
@autumngray could you expand a bit on your fix. I can see the .nimble-link file pointing to my package (without a src reference), but I have some difficulties to understand what you mean with |
So one way I got this working is to run Not sure how to do it if Edit: the above may not be needed. Apparently if you add Edit2: the above may also not be needed. Just create a
it's what ^ this is just a workaround, the |
@nitely So this works but it breaks loading any other nimble packages from me (globally installed packages) |
I think I had that issue. Try removing the --noNimblePath line |
@nitely That works!! |
Can you explain (and possibly show an example workflow) how to actually use
the new
nimble develop
and the oldnimble develop -g
?Old
Since nimble develop -g should be the old workflow
i suspect it to be:
Unfortunately this does not work.
The package is unknown to the importing module.
The link file however is generated.
In another package i do:
compile it:
BTW: Is there a way to display the nim path the compiler uses?
New
I'm completely puzzled how to use the new develop way (with local modules). [got it somehow working, see later]
i tried:
i tried:
i tried:
But this only works through nimble.
It does not work when i just compile the nim file with the compiler.
How can i make it work just with the nim compiler, so without creating a nimble package for
every single Nim file i want to compile? (i literally have thousands of stand alone nim files, that are not in a project folder, that would all not work with the new nim develop, since they all use locally developed modules)
So how the old nimble develop worked (since it does not work like this any more)
The (actual) old behavior:
It seems the (actual) old behavior is either broken, or not supported any more.
This is what it was before:
Could i maybe set the nim path to my whole project folder for the nim devel compiler?
The text was updated successfully, but these errors were encountered: