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

Error: unhandled exception: input(1, 6) Error: : expected [JsonParsingError #124

Closed
Iancurtis opened this issue May 19, 2015 · 10 comments
Closed

Comments

@Iancurtis
Copy link

could not nimble install docopt
error info :
Downloading docopt into /tmp/nimble_4837/docopt using git...
Found tags...
Cloning latest tagged version: v0.6.1
Initialized empty Git repository in /private/tmp/nimble_4837/docopt/.git/
remote: Counting objects: 21, done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 21 (delta 0), reused 12 (delta 0), pack-reused 0
Unpacking objects: 100% (21/21), done.
From git://github.com/docopt/docopt.nim

  • tag v0.6.1 -> FETCH_HEAD
    HEAD is now at c9b4247 v0.6.1
    Switched to a new branch 'v0.6.1'
    Error: unhandled exception: input(1, 6) Error: : expected [JsonParsingError]

_mac os x_ and _ubuntu_ got the same error.

@dom96
Copy link
Collaborator

dom96 commented May 19, 2015

Move your ~/.nimble to ~/.nimble_backup and try again, it's likely corrupted somehow.

@Iancurtis
Copy link
Author

HI @dom96 , I moved the ~/.nimble and recompiled nimble ,then updated it ,but still got the same error

nimble version
nimble v0.6.0 compiled at 2015-05-20 01:03:03
nim version
im Compiler Version 0.11.2 (2015-05-18) [MacOSX: amd64]

@dom96
Copy link
Collaborator

dom96 commented May 19, 2015

That's really strange. Can you install other packages?

@Iancurtis
Copy link
Author

I tried to install several packages, and got the same error again and again :(

@dom96
Copy link
Collaborator

dom96 commented May 20, 2015

Which version of Nim are you using? If devel then try updating and
recompiling.

On Wednesday, 20 May 2015, Iancurtis [email protected] wrote:

I tried to install several packages, and got the same error again and
again :(


Reply to this email directly or view it on GitHub
#124 (comment).

@Iancurtis
Copy link
Author

I'd just recompiled nim
Nim Compiler Version 0.11.2 (2015-05-20) [MacOSX: amd64]
Copyright (c) 2006-2015 by Andreas Rumpf
git hash: 5d4ee87f3b18f145c77075ac96e303b39015a515
active boot switches: -d:release
but nimble install failed
[Linking]
Hint: operation successful (39456 lines compiled; 3.671 sec total; 89.916MB; Debug Build) [SuccessX]
/opt/nimble/src/nimble install
Traceback (most recent call last)
nimble.nim(920) nimble
nimble.nim(892) doAction
nimble.nim(626) install
nimble.nim(512) installFromDir
nimble.nim(417) processDeps
packageinfo.nim(286) getInstalledPkgs
packageinfo.nim(236) readMetaData
json.nim(1083) parseJson
json.nim(1078) parseJson
json.nim(1054) parseJson
json.nim(1021) eat
json.nim(561) raiseParseErr
Error: unhandled exception: input(1, 6) Error: : expected [JsonParsingError]
Error: execution of an external program failed

@dom96
Copy link
Collaborator

dom96 commented May 20, 2015

Try removing ~./nimble once again. I think you may have been caught out by a regression in JSON.

@Iancurtis
Copy link
Author

done. thx @dom96 👍

@dom96
Copy link
Collaborator

dom96 commented May 20, 2015

Cool. It works now?

@Iancurtis
Copy link
Author

yes :D but got another issue
dom96/Aporia#88

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

2 participants