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

Implement Diagnostics #1

Open
5 tasks
AnHeuermann opened this issue Dec 19, 2023 · 0 comments
Open
5 tasks

Implement Diagnostics #1

AnHeuermann opened this issue Dec 19, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers LS - Client Language Server - Client capability LS - Server Language Server - Server capability

Comments

@AnHeuermann
Copy link
Member

AnHeuermann commented Dec 19, 2023

Description

PublishDiagnostics Notification

The modelica-tree-sitter can find most semantic errors. Publish these diagnostics.
The OpenModelica Compiler could be used to get additional diagnostics and specific error messages.

Desired Features

Implement generation of Diagnostics similar to https://github.com/microsoft/vscode-extension-samples/blob/main/lsp-sample/server/src/server.ts#L147C27-L182:

  • Add server/src/util/diagnostics.ts for translation of tree to Diagnostics.
  • Add unit test in server/src/util/test/diagnostics.test.ts
  • Call diagnostics generation from analyze
  • Server tests
  • Client end to end tests
@AnHeuermann AnHeuermann changed the title Highlight errors Implement Diagnostics Feb 8, 2024
@AnHeuermann AnHeuermann added enhancement New feature or request good first issue Good for newcomers LS - Server Language Server - Server capability LS - Client Language Server - Client capability labels Feb 8, 2024
@AnHeuermann AnHeuermann moved this from Ready to In progress in Modelica Language Server Apr 19, 2024
@AnHeuermann AnHeuermann moved this from In progress to Ready in Modelica Language Server Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers LS - Client Language Server - Client capability LS - Server Language Server - Server capability
Projects
Status: Ready
Development

No branches or pull requests

1 participant