Skip to content
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

[Nim 2.0] Nimble develop not working as intended #1134

Open
cvanelteren opened this issue Aug 30, 2023 · 1 comment
Open

[Nim 2.0] Nimble develop not working as intended #1134

cvanelteren opened this issue Aug 30, 2023 · 1 comment

Comments

@cvanelteren
Copy link

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 init
  • nimble develop
    Then 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)

@cvanelteren
Copy link
Author

Any update on this? @Araq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant