Skip to content
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

fstar-mode error message attributes error to exernal module #45

Closed
kkohbrok opened this issue Feb 2, 2017 · 3 comments
Closed

fstar-mode error message attributes error to exernal module #45

kkohbrok opened this issue Feb 2, 2017 · 3 comments

Comments

@kkohbrok
Copy link

kkohbrok commented Feb 2, 2017

When reporting an error (in a newly opened split buffer, but this is probably a separate issue), fstar-mode includes the name of the most recently open'd module like this:
Example code, which causes an error due to the missing 't' at the end of "nat":

module Test

open FStar.Seq

type x = na

/home/kk/repositories/everest/FStar/ulib/FStar.Seq.Properties.fst(716,0-723,49): (Error) Identifier not found: [na](Also see: (5,9-5,11))] (FIXME)

Without opening FStar.Seq, the error is just

F*: subprocess exited.

(without openeing a split buffer). While running fstar.exe Test.fst from the command line just outputs:

./Test.fst(5,9-5,11) : (Error) Identifier not found: [na]

in both cases
Or maybe this is due to a configuration error on my part?

@kkohbrok
Copy link
Author

kkohbrok commented Feb 2, 2017

When using hints, the error message becomes:

Warning (emacs): F* checker reported issues in other files: [/home/kk/repositories/everest/FStar/ulib/FStar.Seq.Properties.fst(716,0-723,49): (Error) Identifier not found: [na](Also see: <
input>(5,9-5,11))] (FIXME)

@s-zanella
Copy link
Contributor

This seems to be an issue with F* itself, not fstar-mode.el

$ cat transcript
#push 1 0
module M
open FStar.Seq
let x = x 
#end #done-ok #done-nok

$ cat transcript | bin/fstar.exe --in M.fst
desugar_partial_module curmod=None
[...]/FStar.Seq.Properties.fst(716,0-723,49): (Error) Identifier not found: [x](Also see: <input>(3,8-3,9))
#done-nok

@s-zanella
Copy link
Contributor

Closing this since we're tracking it in FStar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants