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

Try to make better diagnostics #21

Open
genericptr opened this issue Oct 4, 2022 · 0 comments
Open

Try to make better diagnostics #21

genericptr opened this issue Oct 4, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@genericptr
Copy link
Owner

genericptr commented Oct 4, 2022

Right now there is a sub standard implementation for diagnostics that doesn't work well enough. CodeTools is simply not good enough as it only returns a single error and stops but maybe we can run the node tree and find errors to show which don't stop the parser (see TCodeToolManager.CheckSyntax).

Some ideas to custom syntax checking:

  • Detect if units exist.
  • Detect if types or identifiers in code blocks exist.
  • Detect invalid mode switches.
  • Optional: detect if case is wrong for known identifiers.
  • Wrong number of parameters (or types? in function calls (no overloads match)
@genericptr genericptr added the enhancement New feature or request label Oct 4, 2022
@genericptr genericptr self-assigned this Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant