-
Notifications
You must be signed in to change notification settings - Fork 261
JetBrains Rider FAQ
Rider is a nice IDE for editing C# code. It has a highlighting editor, debugger, and run configurations analogous to IntelliJ.
You will need at least version 2020.3, as Dafny is built with .NET 5.0 and previous versions of Rider do not support that platform. If you attempt to build with older versions you may hit errors like Package Boogie.ExecutionEngine 2.9.2 is not compatible with netcoreapp5.0
. See https://rider-support.jetbrains.com/hc/en-us/articles/360012728920-Support-for-the-NET-SDK-5-0. Update: Dafny is now built with .NET 6.
Dafny has large files. E.g. Translator.cs is close to 20k lines. Rider only runs analyses and folds code up to some file size less than that. To allow Rider to work on such files, follow the advice on this issue. Namely, you need to increase the inspections threshold.
Although there is no well-maintained Dafny plugin for JetBrains IDEs, it is still possible to get Dafny syntax highlighting on *.dfy files (such as the test files) with the following steps.
- Clone the
ide-vscode
repository as a sibling directory of thedafny
repository (or anywhere else you like): https://github.com/dafny-lang/ide-vscode - Open Preferences in Rider (cmd-,)
- Go to
Editor
->TextMate Bundles
- Click the
+
in the bottom left corner - Select the
ide-vscode/syntaxes
folder - Save changes