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

tlauc wipes the file if there is invalid syntax #14

Closed
bugarela opened this issue May 17, 2024 · 3 comments · Fixed by #15
Closed

tlauc wipes the file if there is invalid syntax #14

bugarela opened this issue May 17, 2024 · 3 comments · Fixed by #15

Comments

@bugarela
Copy link

I had a syntax issue on my file, and when running tlauc, all the contents of said file were erased 😬

$ cat test.tla
------ MODULE test ----
foo == invalid,
=======================
$ tlauc test.tla
Error: Failed to correctly parse input TLA⁺ file; use --force flag to bypass this check.
Syntax errors might occur on or near the following lines: [2].
$ cat test.tla
$
@ahelwer
Copy link
Contributor

ahelwer commented May 17, 2024

Woaoaaaah yes this is very bad!!!

@ahelwer
Copy link
Contributor

ahelwer commented May 17, 2024

Easy fix but very embarrassing! Thanks for the report. Will cut a release shortly. Bug was introduced in #10.

@bugarela
Copy link
Author

Luckily I found it in a 10-line file that I could easily rewrite, so don't worry about it! Hopefully you fixed it before anyone suffered from it.

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

Successfully merging a pull request may close this issue.

2 participants