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:
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:
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.
I encountered an issue while trying to import the
uuidspackage in my project. I installed the package withatlas use uuids. When compiling, Nim throws the following error:Upon inspecting the
nim.cfgfile, I noticed that the package path was added as:However, this seems incorrect because the source files for the package reside in the
srcdirectory within theuuidspackage folder. Manually updating the path to include/srcresolves the issue:Steps to Reproduce:
uuidspackage via Nimble usingnimble install uuids.import uuids.cannot open file: uuids.Expected Behavior:
Nim should be able to find and import the
uuidspackage correctly without requiring manual changes tonim.cfg.Actual Behavior:
The path added to
nim.cfgdoes not include the/srcdirectory, leading to thecannot open fileerror during compilation.Environment:
Suggested Fix:
Update the installation or package configuration to automatically point to the
srcdirectory inside the package folder. Alternatively, thenimbleconfiguration 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.