#How to edit ZLS config.json?
1 messages · Page 1 of 1 (latest)
change true to false or vice versa, also: note that most of the config values can (and probably should) be changed in your editor
I have never used json, but set the file to ```json
{
"use_comptime_interpreter": true,
"inlcude_at_in_builtins": true
}
which seems correct?
also, how do I reload zls?
or how do I check if these changes have been applied
that depends on your editor, the vscode extension has a command to restart the server for example
zls doesn't advertise the applied config
ah, that's a shame
so ideally we'd want an error that triggers one of these two
@ is included in builtin
I had a particular error with a comptime function
or a function rather taking a type as input, that is excsluveily executed at comptime
zls was not detecting it, but the actual compiler was
the comptime interpreter is very new and very experimental
hoping that the use_comptime_interpreter switch would have caught it, but it doesn't seem to
ah
so best leave it off for now?
it's disabled by default for a reason, yea
alright
I guess I just accept that comptime code will have a lot of errors uncaught by zls
and hope that isn't the case for non-comptime code?
the comptime interpreter is only for extracting type information, afaik it doesn't actually check anything