nimble
nimble copied to clipboard
[Nim 2.0] Nimble develop not working as intended
Hi all,
I recently updated to Nim 2.0 but I am experiencing some unexpected behavior since the upgrade
What is the problem?
Prior to 2.0, one could use nim develop to put a symlink to a package I am working on while developing. This worked great; when the package changed the scripts using the modules where automatically changed. On 2.0, however, this behavior does not happen anymore.
Steps to reproduce
Create a package using nimble
mkdir simplePackage && nimble initnimble developThen using a simple scripts invoke the package
# test.nim
import simplePackage
echo add(1, 1)
which outputs 2.
Now when we edit the add function as follows
#file: src/simplePackage.nim
proc add*(x, y: int): int =
## Adds two numbers together.
echo "hello!!"
return x + y
it still outputs 2, without hello!!. This behavior does not happen in 1.6.x and pertains even after cleaning the binary . A combination of uninstalls and installs works. I believe running a unittest for some reason also includes the changes in one shot. other scripts are left out for some reason.
This issue is related to (#1124)
Any update on this? @Araq
Looking for an update too