zed icon indicating copy to clipboard operation
zed copied to clipboard

Error highlighting in glsl webgl

Open sedghi opened this issue 1 year ago • 4 comments

Check for existing issues

  • [X] Completed

Describe the feature

I don't see the error highlighting in glsl code when i intentionally introduce an error

If applicable, add mockups / screenshots to help present your vision of the feature

Here i have removed the ; and it doesn't highlight it

CleanShot 2024-05-03 at 10 33 34@2x

sedghi avatar May 03 '24 14:05 sedghi

I can't check right now but I think this is because syntax errors are not reported by glsl_analyzer?

jansol avatar May 06 '24 12:05 jansol

There are VS Code extensions for highlighting WebGL errors, so I suppose it is technically possible.

sedghi avatar May 06 '24 13:05 sedghi

It is possible and Zed supports it too, if the language server that is being used reports error spans.

It just seems this particular one does not do that.

jansol avatar May 06 '24 13:05 jansol

I see, maybe the vscode extensions use another language server, I haven't looked deep

sedghi avatar May 06 '24 13:05 sedghi