Comments (10)
Hi there (small world),
I'm surprised you had to patch flycheck-def-executable-var. Did you try customizing flycheck-inferior-dafny-executable instead? Are the results the same?
Clément.
from boogie-friends.
Ah, that's what I get for trying too hard :) It works!
The reason I went down that path is that, uncustomized and unpatched, inferior-dafny hung just as I described above, because there was nothing in my path matching flycheck-def-executable-var
, but no error was issued. Would it be possible to report an error in this case? Alternatively, something could be added to the README stating that this customization is necessary on OS X.
Thanks for your help!
from boogie-friends.
Is it the case that without that tweak, flycheck-verify-setup
(C-c ! v
) says executable not found? In any case, I could definitely add that line to the README (the ones for the other executables are there, but that one is missing :/).
from boogie-friends.
Ah, cool! I didn't know about that function. Without the customization, it does indeed report that the executable was not found. But it still seems like an error should be more aggressively reported in this case. Could you run this check programmatically when starting a new instance of the inferior process and loudly report an error if the executable is not found?
from boogie-friends.
The new instance doesn't start at all if the executable isn't found, actually (flycheck is responsible for starting it, and it doesn't when it can't find the executable). I could try to add extra checks, though.
from boogie-friends.
Right, obviously the dafny server doesn't start when it can't be found :) But it seems like some code in inferior-dafny.el
still runs in that case, because I saw debugging output when I turned it on. What about doing something in inferior-dafny-init
to check that the executable exists? I guess at a higher level my question is why doesn't flycheck complain more loudly when asked to start something that it can't find?
from boogie-friends.
Ah, I see the issue. There is a loud complaint, but the check is for flycheck-dafny-executable, regardless of the backend being used.
from boogie-friends.
Also, my previous comment above is not exactly true. The server process is started by inferior-dafny
using process-start
.
from boogie-friends.
Hmm. I'm actually having trouble reproducing this. When I run this:
(setq-default flycheck-inferior-dafny-executable "nonexistent-binary")
I get this:
Error while checking syntax automatically: (file-error "Searching for program" "No such file or directory" "nonexistent-binary")
from boogie-friends.
I'm going to move away from inferior-dafny (to LSP), and I'm guessing that after 5 years this issue is resolved ^^
from boogie-friends.
Related Issues (20)
- feature request: scope interactive verification, akin to /proc: on the command-line HOT 3
- dafny-mode fails to parse warnings HOT 8
- feature suggestion: parse Dafny/Boogie error strings in M-x compile mode HOT 2
- Flycheck appears to report success when verification times out HOT 6
- Indentation after datatype declaration HOT 1
- Could not start checker for Dafny HOT 13
- Easy way to have flycheck detect that current file is in the Dafny or Boogie test suite? HOT 2
- Flycheck ignores Boogie errors if they lack proper location information HOT 4
- Extract proper filename for flycheck on related locations in refining modules
- Move temporary file for current buffer outside current folder HOT 10
- flycheck syntax checker doesn't work in Emacs on Mac OS X 10.10, suspicious state from syntax checker dafny HOT 2
- Strange indentation/whitespace in Boogie mode HOT 2
- Auto-formatting in calc
- Bug: Flycheck & Compilation cannot find .NET Core on Mac OS 11.6 HOT 5
- forall statement visually looks like forall expression
- No syntax errors when using Dafny server HOT 8
- When using `include`, helpful "this is the precondition that might not hold" information is missing from flycheck errors HOT 1
- Consider documenting the value of /printTooltips HOT 1
- Flycheck seems to report success when error is in included file HOT 5
- indentation of case with dafny-mode in emacs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boogie-friends.