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

Interleaving bug in the Language Server in Emacs #3693

Open
briangmilnes opened this issue Jan 23, 2025 · 0 comments
Open

Interleaving bug in the Language Server in Emacs #3693

briangmilnes opened this issue Jan 23, 2025 · 0 comments

Comments

@briangmilnes
Copy link
Contributor

/// Foo is not available in d'' called from d when c is missing.
module LangServerBug
val a : int -> int
val b : int -> int
val c : int -> int

let foo i = i < 1000000
val d : int -> int

module LangServerBug
let a i = i
let b i = i
(* let c i = i // intentionally left blank *)

let d'' (i:nat{foo i}) = i

let d (i:nat) = d'' i

Line breaks are required for this (otherwise dancing frog).

Compile as expected but the language server says:

Forge: VALIDATE _build/fstar/fst/checked/LangServerBug.fsti.checked
F
orge: VALIDATE _build/fstar/fst/checked/LangServerBug.fst.checked

  • Error 233 at src/fstar/fst/LangServerBug.fst(7,0-7,21):
    • Expected the definition of c to precede [d]

1 error was reported (see above)

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

1 participant