vscode-tlaplus icon indicating copy to clipboard operation
vscode-tlaplus copied to clipboard

TLAPM parser unexpected identifier **outside** of module definition

Open lemmy opened this issue 3 months ago • 2 comments

Our TLA+ VSCode extension reports unexpected identifiers outside the module definition. This seems to be an LSP bug, since TLAPS does not report such errors when the same module is parsed on the command line.

Image
SPDX-FileCopyrightText: Copyright (c) 1234 THE TLA+ MEGACORP. All rights reserved.

----- MODULE Foobar -----
=====
markus@avocado [08:53:03] [~/src/TLA/_community/tool-qualification-suite/testgen] [main *]
-> % opam exec -- tlapm --version 
d6365cd

markus@avocado [08:53:07] [~/src/TLA/_community/tool-qualification-suite/testgen] [main *]
-> % opam exec -- tlapm Foobar.tla
(* created new ".tlacache/Foobar.tlaps/Foobar.thy" *)
(* fingerprints written in ".tlacache/Foobar.tlaps/fingerprints" *)
File "./Foobar.tla", line 3, character 1 to line 5, character 5:
[INFO]: All 0 obligation proved.

lemmy avatar Sep 22 '25 15:09 lemmy

/cc @kape1395

lemmy avatar Sep 22 '25 15:09 lemmy

Indeed, the error is reported by the TLAPM LSP, and the TLAPM itself doesn't report the error on the CLI. Will investigate.

kape1395 avatar Sep 24 '25 04:09 kape1395