nimble icon indicating copy to clipboard operation
nimble copied to clipboard

[Nim 2.0] Nimble develop not working as intended

Open cvanelteren opened this issue 2 years ago • 2 comments
trafficstars

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 avatar Aug 30 '23 11:08 cvanelteren

Any update on this? @Araq

cvanelteren avatar Apr 04 '24 07:04 cvanelteren

Looking for an update too

sainttttt avatar Jul 04 '24 17:07 sainttttt