-
Notifications
You must be signed in to change notification settings - Fork 189
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
fails to evaluate .nimble file #696
Comments
Can you please share your Nim and nimble versions with -v? |
Installed via choosenim |
Same error on macOS 10.14.6 as well. |
v0.20.2 shipped with an older version of Nimble. Use |
That yields a new error. Tested on the v0.20.2 tag and on master.
|
Can you also share the steps of how you got to v0.20.2? |
I am seeing this error also on 0.20.2 on linux.
|
I fixed by doing:
and then my nimble works fine. It was originally created (and just updated recently) with |
I have just done |
@readmodifywrite - any update on your end? What OS are you seeing the issue? |
Seems like there is a couple of problems here. Best thing to do is just wait for another Nimble/Nim release (they are just around the corner) and try with choosenim again. |
After updating to nim 1.0 nimble seems to be broken on my Mac, with "cannot read package file errors". Attempting to install nimpy:
Attempting to upgrade nimble itself:
Attempting to install inim
My nim is installed via brew. Reporting the version number for nim is ok but there is some weird error when nimble reports its version
So basically I'm unable to use nimble anymore and not sure how to fix the situation. Could the 1.0 release of nim have caused this? |
I'll investigate this on Mac but I'm the meantime you can try @Araq's suggestion to install without brew or update your nimble with |
@genotrance Didn't have The only extra thing that I had to do is add |
The nimble bin info is on the install page. |
Slightly offtopic but I wonder why |
Because How can you continue to suggest
That's wrong, it can definitely work. The only time it will fail is if overwriting the same version... that's unlikely to fix any issues anyway. So here is the situation as far as I can see it:
So, since |
How is it wrong? Windows holds a lock onto |
If you use choosenim, if it builds from source, koch binary is there. It isn't in the path, but it is there. If you use any of our binary distributions, win/lin today, koch is there. I'm unsure on distro installs but koch source is also right there and you can easily compile it cause nim binary is just fine. So regardless of methods, koch binary is available. |
Nimble doesn't install into the same directory when installing a new version... |
One other feedback -
|
@genotrance you should be able to get around that by passing |
Why would I take the penalty of running choosenim with We could improve koch for that or fix |
We should fix choosenim to be less naggy in this case. |
And how does that work with the PATH? |
@Araq symlink/bat file on Windows. |
I had the same problem after updating from versien 0.20.2 to 1.0.2. I got errors when trying to install both nimble and serial. The solution for my installation was to erase the nimble cache: After removing the cache installation of the serial module worked fine. |
Might be worthwhile to implement this in Nimble: purge the cache if nimscript eval fails. |
It could also fail if the nimble file has syntax errors - auto purging isn't good for that use case. |
Maybe add a command to clear cache and suggest using it on eval fail? |
Auto purging certainly couldn't hurt in that case, could it? |
No way to debug what the error was then. Anyway, this issue has two open items and neither submitter has provided any new information. There was a similar instance to what original submitter shared on #nim yesterday and it might be the same root cause. @kodkuce was using Void Linux where |
So we can copy the current cache somewhere and report the error as a warning with instructions on how to debug. What matters is that the tool works. It's likely that the problem is just incompatibilities between Nimble versions, solving these problems is tough and will always be a battle. |
I get this consistently in the CI pipeline I'm trying to setup when installing. This means that I can't test packages unless they have no dependencies:
The build scripts are building Nim from source:
Nimble file: # Package
version = "0.9.41"
author = "Charles Blake"
description = "Infer & generate command-line interace/option/argument parser"
license = "MIT/ISC"
# Deps
requires "nim >= 0.19.2"
skipDirs = @["test"] I think Nimble should also have add installing popular packages as an anti-regression because AFAIK this only started to happen with 0.20.X |
* Try to fix the "deadlock" in batch receive, somehow it's also 5% faster (to be checked in Travis, deadlock not reproduced locally) * Ignore nimble during runs nim-lang/nimble#696 * don't auto fail due to getTicks on ARM * Negative count is non-blocking, can be investigated later (#49) * When using C++ we need C++11 * typo * Make travis Arch visible * fix arch
@mratsim - Looking at the travis file:
My guess is that you are adding |
This was it for POSIX. Now I just need to beat Azure pipelines paths for their Windows VM into submission. |
* Fix side-effect tracking of memory pools * Implement windows barriers and common barrier API * Fix barriers API * Add affinity on windows * Skip perf measure on windows * Add windows and Mac Pipelines to Azure * Try to fix setting PATH on windows (that overwrites bash.exe path) * Reenable POSIX barriers * echo PATH in Azure and fix caching detection of Nim binaries * Fix OsErrorCode on Posix * Azure task env variables on windows + linux - another try * change the caching detection strategy * Remove pthread_barrier_wait on Posix barriers * Another try, why does it works on Linux and not windows? microsoft/azure-pipelines-agent#2018 * posix barrier fix * another barrier error conversion missed * [Azure] Try task.prependpath instead of setvariable * pthread_barrier_init returns 0 on sucess, while windows return 1 ¯\_(ヅ)_/¯ * Update Azure badge * posix barriers return code is negative ... * another fix * What do you say now Azure? * Fix black_scholes benchmark [skip ci] * need scheduler in parallel reduce * Skip parallel_for test on Windows. Need nestable barrier: #51 * forgot to skip in lazyflowvar * try to set absolute path for nimble (but already set on Azure) - nim-lang/nimble#696 (comment) * This is my last Hurrah * misnamed Posix -> Windows * cache azure which doesn't respect [skip ci] * set nim paths the windows way to please findExe / nimble * we need to set the path in the task and for the collector * Spray and pray * Smells the victory
I'm tempted to close this issue since there's no info to act on. Also, errors are improved and we are quite a ways since 0.20.2 came out and several issues have since been fixed. If no objections, I will close this in a week. |
On Linux Mint 19.2 and nim 0.20.2.
I'm using an empy project with a basic .nimble file:
nimble is unable to parse the file:
I've tried deleting the cache as noted in #693.
Also ensured nim is on my PATH.
The text was updated successfully, but these errors were encountered: