-
Notifications
You must be signed in to change notification settings - Fork 19
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
Cannot disable downloading precompiled Dafny #422
Comments
I actually was running into this, when I was wanting to package the extension in nixpkgs. I was able to pull the extension but errors due to try to make a directory for the compiler to be downloaded. I tried to use the user settings but it seemed it was ignored and still tried to download a compiler. |
Fixes #422 ### Changes - Update the description of `dafny.version` - Remove outdated descriptions of options in the README ### Testing - Manually inspected the new description
Adding custom worked to my user settings and adding dafny bin but I seem to now get the following
Do you know why this might be the case? |
Indicates that node could not find the executable file Here's a thread about this type of error: https://stackoverflow.com/questions/27688804/how-do-i-debug-error-spawn-enoent-on-node-js What operating system are you on? |
I noticed that folder location is made in my vscode workspace. Why would it need to spawn that? I am running Nixos |
That is meant to make it easier to use a Dafny built from source using the custom option. By copying the binary to a fresh location before running it, the binary can be rebuilt while VSCode is using the copy. @MikaelMayer I'm not a big fan of this approach. I use the |
I had the exact same problem, also on NixOS. After reading the extension's source code I managed to find the source of the error - take a look at #502. A bit off topic to the actual issue here, but there might be other people with the same issue. |
Closing this since I think the two underlying issues (lack of documentation and in-extension hints), and an incorrect file filter, are resolved. Big kuddos to @RiscadoA for contributing. |
I'm on an Apple Silicon mac. I wanted to use Dafny through Docker, which is Linux on arm64, and the extension fails to set up Dafny because this isn't a platform that Dafny provides a binary release for. I have Dafny compiled within this Docker image, but I don't know how to direct the extension to use this local copy.
The README mentions
dafny.languageServerRuntimePath
but it isn't actually used by the extension.I also tried setting the Dafny version to "custom" but then it just tries to install a URL that includes
vcustom
so I suspect this feature is buggy.The text was updated successfully, but these errors were encountered: