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

Exception: 'version' is not accessible using discriminant 'kind' of type 'Release' #99

Closed
moigagoo opened this issue Dec 23, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@moigagoo
Copy link
Contributor

  1. Installed nimph on Windows by running the lines in bootstrap.sh one by one manually, making necessary adjustments to port sh to pwsh.
  2. Run nimph.

This error comes out:
Exception: 'version' is not accessible using discriminant 'kind' of type 'Release'

@disruptek disruptek added the bug Something isn't working label Dec 23, 2019
@disruptek
Copy link
Owner

So the problem seems to be that if any Nimble package in your path (which includes ~/.nimble/pkgs by default) is broken, Nimph cannot evaluate the project because nimble dump pukes on it.

The workaround, for now, is to create a nim.cfg with --clearNimblePath to omit the default package environment and use local dependencies until we can warn about such errors.

Also note that nimph-0.6.3 may help.

The permanent fix is for Nimph to do its own nimscript parsing of the .nimble files, which will happen "soon".

#98 #24

@disruptek
Copy link
Owner

Also, if you can tell me how to adjust the bootstrap for Windows, we can provide that for other Windows folks...

@disruptek
Copy link
Owner

Also, please try 0.6.4 which I just pushed; it will convert 2 and 4-digit version numbers to 3-digits for the purposes of semver...

cc @zevv

@zevv
Copy link

zevv commented Dec 23, 2019

Fixed! closes #99

@disruptek
Copy link
Owner

Guess we'll close it for now. Thanks for the report!

@moigagoo
Copy link
Contributor Author

@disruptek First, thanks for the quick fix, that was really fast! 🚀

Second, I've submitted a PR with your bootstrap script ported to PowerShell: #100 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants