-
Notifications
You must be signed in to change notification settings - Fork 20
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
(offer to help) installation via VSCode on mac M1 #442
Comments
It looks like the version check in the Dafny extension is too strict. The For whomever is trying to fix this: Dafny is checking for the
Detailed bug reports like this one are a great start, thanks ! For a critical bug like this one, we'll find someone on the Dafny core team to work on it. Feature requests are also welcome. If there's a requested feature that I think we won't get to anytime soon I will let you know and give you a sketch of what it would entail to make it. |
Thanks for the detailed report @cdstanford, and thanks for the tips @keyboardDrummer! I've opened a PR (#443) to check for just the .NET Runtime instead of ASP.NET Core, and to permit any major versions >= 5. On the other hand I've opted not to allow the extension to proceed despite failing the version check, as I feel that it's better to fail fast than to let users use an incompatible .NET version unwittingly. |
Fixes #442. * Relaxes the .NET runtime version check to only require the .NET Runtime (instead of ASP.NET Core too), and to permit versions later than 6.0.x. * Make the version check error message more concise, in order to reduce the likelihood that VS Code hides the notification (due to the message being too long to fit on screen).
We've just released version 3.2.1 that includes a patch for this issue. It should appear in the VS Marketplace shortly, after which restarting your IDE should cause it to install the update. |
Wow, awesome -- thanks so much for the responsiveness and quick fix! I will definitely try out the most recent version. Will file another report if I notice anything else.
Got it & sounds good! |
Wait, Dafny supports dotnet 7? This isn't documented anywhere, the INSTALL page asks for dotnet 6, and the Homebrew formula still depends on dotnet@6. |
It does and I think it supports .NET 8 as well. Given the backwards compatibleness of .NET I think it's likely Dafny will work with any future version. Created a ticket to update the things you mentioned: dafny-lang/dafny#4685 |
I was wondering if I could help with anything to make the installation via VSCode work more smoothly on mac. Are there known tracking issues currently with this process that I may have missed?
My installation seems to be set up now, but I wasn't able to get it working initially, and I'll share some details below. I'm sure I did some things wrong, but it wasn't obvious at first.
The extension initially installed but silently produced no output (not catching assertion violations). Later it prompted that the installation of dotnet was not found. I got the following error:
The error did not go away when installing .NET via the official website, using the provided link, even after uninstalling/reinstalling extensions and restarting VSCode.
What seemed to work was running
brew install dotnet-sdk
, uninstalling and reinstalling all the relevant vscode extensions, and restarting VSCode. Now I am correctly finding assertion violations.My setup: I'm running on a MacBook Air (M1 chip, 2020) with VSCode version: 1.82.3 (Universal). Additional details:
Thanks!
The text was updated successfully, but these errors were encountered: