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

Regression in docopt package #5436

Closed
dom96 opened this issue Feb 25, 2017 · 3 comments
Closed

Regression in docopt package #5436

dom96 opened this issue Feb 25, 2017 · 3 comments

Comments

@dom96
Copy link
Contributor

dom96 commented Feb 25, 2017

I pulled and rebootstrapped recently and now my project which uses the docopt package is failing to compile with this error:

/Users/dom/.nimble/pkgs/docopt-0.6.4/docopt.nim(310, 15) template/generic instantiation from here
/Users/dom/projects/nim/lib/system.nim(2217, 6) Error: '==' can have side effects

Steps to reproduce:

nimble install docopt
nim c file.nim

Where file.nim is the example from here.

@dom96
Copy link
Contributor Author

dom96 commented Feb 25, 2017

Works at 4c683e9 in case that helps.

@Araq
Copy link
Member

Araq commented Feb 25, 2017

docopt needs to be fixed, the compiler is correct as far as I can tell.

@singularperturbation
Copy link
Contributor

FYI - I ran into this and found that this is fixed by docopt/docopt.nim#27.
A new release (docopt > 0.6.4) containing these changes has not yet been made, but I was able to work around it by installing from HEAD.

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

No branches or pull requests

3 participants