You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered an issue while trying to import the uuids package in my project. I installed the package with atlas use uuids. When compiling, Nim throws the following error:
Error: cannot open file: uuids
Upon inspecting the nim.cfg file, I noticed that the package path was added as:
--path:"uuids"
However, this seems incorrect because the source files for the package reside in the src directory within the uuids package folder. Manually updating the path to include /src resolves the issue:
--path:"uuids/src"
Steps to Reproduce:
Install the uuids package via Nimble using nimble install uuids.
Try to import the package using import uuids.
Compile the project, which results in the error: cannot open file: uuids.
Expected Behavior:
Nim should be able to find and import the uuids package correctly without requiring manual changes to nim.cfg.
Actual Behavior:
The path added to nim.cfg does not include the /src directory, leading to the cannot open file error during compilation.
Environment:
Nim Version: 2.0.8
Package Version: 0.1.0
Atlas Version: 0.8.0
Operating System: Arch Linux
Suggested Fix:
Update the installation or package configuration to automatically point to the src directory inside the package folder. Alternatively, the nimble configuration could be adjusted so that users don't need to manually update paths.
Thanks for maintaining this package! Please let me know if you need more information or if there's another workaround.
The text was updated successfully, but these errors were encountered:
I'll try to dig a little deeper into the issue and where it stems from when I have the time. Not sure why exactly Atlas is not adding the /src path for the UUID package, but does for other packages. If Nimble does add it, than it would probably easy to pinpoint and to fix. I think they are working on some changes right now. Also had some issues with the --deps parameter not working correctly in Atlas, but I will wait for a new release and test it again.
I encountered an issue while trying to import the
uuids
package in my project. I installed the package withatlas use uuids
. When compiling, Nim throws the following error:Upon inspecting the
nim.cfg
file, I noticed that the package path was added as:However, this seems incorrect because the source files for the package reside in the
src
directory within theuuids
package folder. Manually updating the path to include/src
resolves the issue:Steps to Reproduce:
uuids
package via Nimble usingnimble install uuids
.import uuids
.cannot open file: uuids
.Expected Behavior:
Nim should be able to find and import the
uuids
package correctly without requiring manual changes tonim.cfg
.Actual Behavior:
The path added to
nim.cfg
does not include the/src
directory, leading to thecannot open file
error during compilation.Environment:
Suggested Fix:
Update the installation or package configuration to automatically point to the
src
directory inside the package folder. Alternatively, thenimble
configuration could be adjusted so that users don't need to manually update paths.Thanks for maintaining this package! Please let me know if you need more information or if there's another workaround.
The text was updated successfully, but these errors were encountered: