-
Notifications
You must be signed in to change notification settings - Fork 43
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
Newer versions of node install outdated quint 0.18.3 #1602
Comments
Hi! Yes, I've seen this problem many times - I think always on Mac. My suspicion was that it was something that homebrew's version of node does, but I was not sure because I don't own a Mac and could never reproduce this problem on my machines. I looked up solutions at one point and couldn't find anything. Maybe people on linux/windows generally use older versions of node as default and that's why they don't hit this problem so often. I like your idea of a warning, perhaps something that uses GitHub's API to see check what version is the latest and issue a warning (only if internet connection is available, which is not required by Quint otherwise) I can also update the installation docs to instruct people to check if the version is the latest one after installing. Keeping a version in the examples could be hard to maintain, but there are CI checks that make sure all of them work on the latest version, so I think the warning idea addresses this problem well. I'll also see if there's anything I can do with the dependencies now that I have this information from your report, thanks a lot! I'll find some time to look at it this week. |
I've been able to reproduce this finally!
|
Confirmed the issue, we started capping the node version to 20 at |
Confirmed that this fixed the problem:
I created #1606 to take care of the deprecation warning (as that had lower priority than fixing this) |
Just spent several hours trying to fix this.
When trying the Secret Santa example, I kept getting an
ERR_ASSERTION
error.After going through the docs for the Nth time, I noticed my version of Quint was older than the one on npm. This didn't make sense, I just installed Quint last week, I had all the latest versions of Node and Java. I ran the installation script again. But nothing happened, Quint remained stuck on 0.18.3, it was impossible to upgrade.
npm i @informalsystems/quint -g
will only tell you:…and proceed to install quint 0.18.3
Thanks to Claude, I eventually found that
npm install -g @informalsystems/quint@latest
will tell you:So
nvm install 20
, reinstall quint, and now it's 0.23.0I deleted other node versions.
Reinstalled node 22, reinstalled Quint, version 0.18.3
Reinstalled node 23, reinstalled Quint, version 0.18.3
Went back to node 20, now everything works.
I don't know if this is something Quint can fix, or if it depends completely on Node, but at least you might want to add an explicit warning in your docs to not use newer versions of Node.
I would also add a required Quint version in the examples, or perhaps even in the module code, because all the previous tutorials worked flawlessly so I was unaware that I was using an older version. If secret_santa.qnt specified a required Quint version, it would have taken me a couple seconds to find out this was the problem.
The text was updated successfully, but these errors were encountered: