nimcl icon indicating copy to clipboard operation
nimcl copied to clipboard

`nimble install nimcl` fails

Open genotrance opened this issue 6 years ago • 6 comments

Just tried installing arraymancer which tried to install this package. Doesn't work with Nim @ #head.

# Windows

Downloading https://github.com/unicredit/nimcl using git
Error: unhandled exception: The process cannot access the file because it is being used by another process.
 [OSError]
# Linux

Downloading https://github.com/unicredit/nimcl using git
       Tip: 63 messages have been suppressed, use --verbose to show them.
     Error: Could not read package info file in /tmp/nimble_25895/githubcom_unicreditnimcl_0.1.2/nimcl.nimble;
        ...   Reading as ini file failed with:
        ...     Invalid section: .
        ...   Evaluating as NimScript file failed with:
        ...     tmp/nimble_25895/githubcom_unicreditnimcl_0.1.2/nimcl.nimble(11, 37) Error: undeclared identifier: 'stmt'.

genotrance avatar Sep 12 '18 04:09 genotrance

Having this issue as well. I'm on a 32-bit OS if that matters at all.

davidgarland avatar Oct 12 '18 10:10 davidgarland

@davidgarland Can you post what issue you have? stmt was removed long ago - in fact I forgot to just close this issue

andreaferretti avatar Oct 12 '18 11:10 andreaferretti

Tried on my 64-bit linux desktop and got this:

    Reading official package list
Downloading https://github.com/unicredit/nimcl using git
    Cloning latest tagged version: 0.1.2
    Setting Nim stdlib prefix to 
    Setting Nim stdlib path to /home/david/.choosenim/toolchains/nim-0.19.0/lib
       Info Hint: used config file '/home/david/.choosenim/toolchains/nim-0.19.0/config/nim.cfg' [Conf]
     Error: nimble.nim(1106)         nimble
        ... nimble.nim(1044)         doAction
        ... nimble.nim(481)          install
        ... download.nim(256)        downloadPkg
        ... packageparser.nim(410)   getPkgInfo
        ... packageparser.nim(398)   getPkgInfoFromFile
        ... packageparser.nim(359)   readPackageInfo
        ... Could not read package info file in /tmp/nimble_4486/githubcom_unicreditnimcl/nimcl.nimble;
        ...   Reading as ini file failed with: 
        ...     Invalid section: .
        ...   Evaluating as NimScript file failed with: 
        ...     /tmp/nimble_4486/githubcom_unicreditnimcl/nimcl.nimble(11, 37) Error: undeclared identifier: 'stmt'.

Nim is updated to latest using choosenim.

davidgarland avatar Oct 12 '18 20:10 davidgarland

@andreaferretti I guess the problem is here. (11, 37)

Nimble takes the old version (0.1.2).

nimble install nimcl@#head solves the problem

DontLookAtMe avatar Oct 17 '18 19:10 DontLookAtMe

Let me just bump the version and put a new tag. This should be enough to make the problem go away

andreaferretti avatar Oct 18 '18 07:10 andreaferretti

@andreaferretti Thanks! It works for me now.

DontLookAtMe avatar Oct 18 '18 14:10 DontLookAtMe