Giter Site home page Giter Site logo

Comments (10)

cpitclaudel avatar cpitclaudel commented on July 18, 2024

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.

wilcoxjay avatar wilcoxjay commented on July 18, 2024

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.

cpitclaudel avatar cpitclaudel commented on July 18, 2024

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.

wilcoxjay avatar wilcoxjay commented on July 18, 2024

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.

cpitclaudel avatar cpitclaudel commented on July 18, 2024

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.

wilcoxjay avatar wilcoxjay commented on July 18, 2024

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.

cpitclaudel avatar cpitclaudel commented on July 18, 2024

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.

cpitclaudel avatar cpitclaudel commented on July 18, 2024

Also, my previous comment above is not exactly true. The server process is started by inferior-dafny using process-start.

from boogie-friends.

cpitclaudel avatar cpitclaudel commented on July 18, 2024

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.

cpitclaudel avatar cpitclaudel commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.