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
A collection of specs which produce generic "could not parse module" errors #145
Comments
I have found another generic parse error, with this code:
The : should of course be |->, but this is a real typo I made which resulted in a generic parse error. Recording this because these real-world experience issues aren't very valuable until someone wants to go through and fix all the generic parse errors, then they become super valuable. |
Another. Here, I stubbed out a function with a constant value then forgot to remove the constant value after implementing it.
|
This generic parse error occurs when forgetting a comma while defining a new record value:
|
Here there's a generic parse error when leaving a dangling comma after the list of variables (encountered when deleting/reordering variables):
|
A generic parse error occurs if the terminating line of
|
Missing parenthesis at "Cardinality(ProcSet" leads to generic parser error. --------------- MODULE ParseError -------------
Inv == Cardinality(waitset) < Cardinality(ProcSet /\ waitset \subseteq ProcSet
=================================================== |
Using only one = in a LET causes a generic parser error
|
Using only one = in any definition causes a generic parser error
|
Forgetting to delete the multi-line comment closing symbols causes a generic parser error
|
Forgetting an ELSE in and IF-THEN-ELSE statement causes a generic parser error
|
@ahelwer I have the same issue with the 1.5.6 version. |
@lestarcdog Can you check if the current nightly still show the regression? |
@lemmy The regression issue is gone in the 1.5.7 version. The Parsing Errors panel shows the specific error message and also the error is highlighted in the editor. Thanks. |
Fixed with commit 77f1c69 |
This code gives a generic "Could not parse module" error:
The error is the use of == instead of =, an easy mistake for a new user (or long-time user, in this case!) to make. Ideally the parser would identify the error in a user-friendly way.
The text was updated successfully, but these errors were encountered: