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

Improve error messages for semantic errors #10

Open
maxhoerstr opened this issue Jan 25, 2023 · 0 comments
Open

Improve error messages for semantic errors #10

maxhoerstr opened this issue Jan 25, 2023 · 0 comments
Labels
enhancement New feature or request priority: low This issue has a low priority

Comments

@maxhoerstr
Copy link
Collaborator

Currently not all semantic error messages are printed correctly or at all. Due to the fact that the semantic check is executed after the parsing, a way of saving the context infos had to be implemented. Currently, not all informations about the specific parts of the program are saved. Find a way to preserve the context information for every bit of PFDL code in the SemanticErrorChecker to provide proper error messages.

An example for this issue is shown below:

image

The attribute not an attribute is not defined in the Struct Color. The error highlight should appear in the same row as the attribute and not at the Struct name. Currently, the SemanticErrorChecker do not have enough information to display it at the correct position.

@maxhoerstr maxhoerstr added enhancement New feature or request priority: low This issue has a low priority labels Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: low This issue has a low priority
Projects
None yet
Development

No branches or pull requests

1 participant