Giter Site home page Giter Site logo

Comments (13)

cpitclaudel avatar cpitclaudel commented on July 1, 2024

What error do you get for ~/Programs/dafny/Dafny.exe?

from boogie-friends.

BunnyFiscuit avatar BunnyFiscuit commented on July 1, 2024

There's no error until i write a small program and do C-c C-c
Then it says

Prover dafny is improperly configured

Edit: ah misread, i get the same error for that

from boogie-friends.

cpitclaudel avatar cpitclaudel commented on July 1, 2024

Hmm. Does the file ~/Programs/dafny/Dafny.exe actually exist? What happens if you run M-: ~/Programs/dafny/Dafny.exe /??

from boogie-friends.

BunnyFiscuit avatar BunnyFiscuit commented on July 1, 2024

I'm sorry, I don't know how to run that code. Are you missing an 'x' for M-x ?
Do i run this in emacs or on the terminal?
I run Debian GNU/Linux 8 (jessie) btw.

from boogie-friends.

cpitclaudel avatar cpitclaudel commented on July 1, 2024

I mean to run M-: (that is alt-shift-colon), then type ~/Programs/dafny/Dafny.exe /?, then press RET (in Emacs)

from boogie-friends.

BunnyFiscuit avatar BunnyFiscuit commented on July 1, 2024

Hi, sorry for late reply.
I get

Trailing garbage following expression

The file exists as i can open up my terminal and see it (see attached image)

screenshot from 2016-12-05 01 34 26

from boogie-friends.

cpitclaudel avatar cpitclaudel commented on July 1, 2024

Ah, sorry I got confused between M-: and M-! :/

Can you open a Dafny file and run M-x flycheck-verify-setup RET? This should pop up a Flycheck checkers buffer, the contents of which will be very useful for debugging.

Thanks!

from boogie-friends.

bkragl avatar bkragl commented on July 1, 2024

@BunnyFiscuit: your ls output indicates that your Dafny.exe is not marked as executable.
Try chmod +x ~/Programs/dafny/Dafny.exe.

from boogie-friends.

BunnyFiscuit avatar BunnyFiscuit commented on July 1, 2024

@bkragl I think that did the trick, as i don't get an error message at startup anymore. However i'm not sure if when i do C-c C-c that it verifies the program. This is what it tells me:

-- mode: compilation; default-directory: "~/programming/tdv/LAB2/" --
Compilation started at Mon Dec 5 13:01:23

~/Programs/dafny/Dafny.exe /compile:0 /nologo /home/bunnyfiscuit/programming/tdv/LAB2/LimitedStack.dfy
/bin/bash: ~/Programs/dafny/Dafny.exe: No such file or directory

Compilation exited abnormally with code 127 at Mon Dec 5 13:01:23

@cpitclaudel This is what the debugger says:

Syntax checkers for buffer LimitedStack.dfy in dafny-mode:

dafny
- may enable: yes
- predicate: t
- executable: Found at /home/bunnyfiscuit/Programs/dafny/Dafny.exe

dafny-server
- may enable: yes
- predicate: nil
- executable: not found
- self-test: failed

Flycheck Mode is enabled. Use C-u C-c ! x to enable disabled
checkers.


Flycheck version: 31snapshot (package: 20161117.144)
Emacs version: 24.4.1
System: x86_64-pc-linux-gnu
Window system: x

from boogie-friends.

cpitclaudel avatar cpitclaudel commented on July 1, 2024

@BunnyFiscuit Flycheck suggests that everything is fine, so at least real-time checking should work now. Can you try changing to an absolute path, and see if that fixes C-c C-c as well?

from boogie-friends.

BunnyFiscuit avatar BunnyFiscuit commented on July 1, 2024

yes that seems to do the trick! Thank you! :)

from boogie-friends.

cpitclaudel avatar cpitclaudel commented on July 1, 2024

Great, sorry for the long back-and-forth!

from boogie-friends.

BunnyFiscuit avatar BunnyFiscuit commented on July 1, 2024

haha nah, i appreciate you getting back to me so quickly! :)

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.