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

Build error highlighting directly in the editor #59

Open
Dima-369 opened this issue Aug 2, 2024 · 1 comment
Open

Build error highlighting directly in the editor #59

Dima-369 opened this issue Aug 2, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Dima-369
Copy link

Dima-369 commented Aug 2, 2024

First, thanks for this great plugin!


One little thing:

I notice how syntax errors are correctly annotated as an error in the right scroll bar.

CleanShot 2024-08-02 at 11 53 52@2x

Which sets the error count in the top right for the file analysis:

CleanShot 2024-08-02 at 11 56 16@2x


Is the same possible for build errors? It is great that the link in the build output is already clickable, but it would be even more convenient if it would be shown as a 'highlighted error'.

That way, the Next Highlighted Error action would also properly work.

CleanShot 2024-08-02 at 11 53 39@2x

@Dima-369 Dima-369 changed the title Is it possible to display build errors in the scrollbar? Is it possible to display build errors as 'highlighted errors' and in the scrollbar? Aug 2, 2024
@Dima-369
Copy link
Author

Dima-369 commented Aug 2, 2024

I found this guide: https://kristoff.it/blog/improving-your-zls-experience/

It does help in displaying those compile errors, but I need to manually trigger a save which is suboptimal, but definitely helpful and an improvement so far.

And I notice how zig build --summary all only displays 1 error at max accumulated across all files, but I assume this is more an implementation detail. This leads to the error highlighting to not be as strong as one expects from languages like Java/Kotlin.

@FalsePattern FalsePattern added the enhancement New feature or request label Aug 6, 2024
@FalsePattern FalsePattern changed the title Is it possible to display build errors as 'highlighted errors' and in the scrollbar? Build error highlighting directly in the editor Aug 6, 2024
@FalsePattern FalsePattern added the help wanted Extra attention is needed label Oct 14, 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 help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants