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

Diagnostics #4

Open
Tracked by #1
z80dev opened this issue Sep 18, 2023 · 0 comments
Open
Tracked by #1

Diagnostics #4

z80dev opened this issue Sep 18, 2023 · 0 comments

Comments

@z80dev
Copy link
Collaborator

z80dev commented Sep 18, 2023

For any given contract, we want to report to the user as many compilation errors and warnings as possible.

This will allow users' editors to display these errors clearly when rendering contract source code.

Implementation note: if a language is single file only (for example HTML) then diagnostics are cleared by the server when the file is closed.

This supports both Errors and Warnings, such as deprecated language features (things like ZERO_ADDR which have been replaced by empty(address))

LSP API Methods

  • textDocument/publishDiagnostic

Handling Multiple Errors

While the compiler will only report one error as the cause for a failure in compilation, it is possible we may be able to evaluate the contract by some other heuristic and detect additional errors not reported by the compiler as a cause for compilation failure.

@z80dev z80dev mentioned this issue Sep 18, 2023
6 tasks
@z80dev z80dev changed the title Error Checking Diagnostics Sep 25, 2023
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

No branches or pull requests

1 participant