Skip to content

Is ZLS supposed to give error when re-assigning const? #1914

Answered by Techatrix
ziontee113 asked this question in Q&A
Discussion options

You must be logged in to vote

This has been a long ongoing issue with ZLS because it does not perform semantic analysis of your code yet. We currently only report syntax errors and errors that reported by zig ast-check. There is a enable_build_on_save config option in ZLS that will run zig build on your project whenever you save a document and report back any compilation errors. Until Zig can provide incremental compilation, you may have to wait a bit until diagnostics show up depending on the size of your project.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ziontee113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants