-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
"null" (string type) in zls.json causes crash #1129
Comments
Would you be able to reproduce the issue with a debug build of ZLS? |
Huh!? I replaced it with a debug build and it works fine. And, When I revert to the original, still get the same error.. Both 0.11.0-dev.378+5457cec |
Tried new |
@20kano Just to check do you have the comptime interpreter option enabled? If so, disable it. |
It has been off. |
Okay, any chance of seeing the code that it is crashing with. |
|
This seems to happen when |
I haven't been able to reproduce it, but the error trace points to an Might be able to catch it with a log.debug("createDocumentFromURI -> file_path: {s}", .{file_path}); in
. |
|
Makes me wanna have a look at your |
{
"$schema": "https://raw.githubusercontent.com/zigtools/zls/master/schema.json",
"enable_snippets": true,
"enable_ast_check_diagnostics": false,
"enable_autofix": false,
"enable_import_embedfile_argument_completions": false,
"semantic_tokens": "full",
"enable_inlay_hints": false,
"inlay_hints_show_builtin": false,
"inlay_hints_exclude_single_argument": false,
"inlay_hints_hide_redundant_param_names": false,
"inlay_hints_hide_redundant_param_names_last_token": false,
"operator_completions": true,
"warn_style": false,
"highlight_global_var_declarations": false,
"use_comptime_interpreter": false,
"include_at_in_builtins": false,
"skip_std_references": false,
"max_detail_length": 1048576,
"prefer_ast_check_as_child_process": true,
"record_session": false,
"record_session_path": "null",
"replay_session_path": "null",
"builtin_path": "null",
"zig_lib_path": "/home/tsukasa/lang/zig/lib/zig",
"zig_exe_path": "/home/tsukasa/lang/zig/zig",
"build_runner_path": "/home/tsukasa/.cache/zls/build_runner.zig",
"global_cache_path": "null",
"build_runner_global_cache_path": "null"
} |
For example, |
Here,
|
Works, Thanks! |
Zig Version
0.11.0-dev.2571+31738de28
Zig Language Server Version
0.11.0-dev.378+5457cec
Steps to Reproduce
I have just started it..
I can't tell if it's a bug or a problem with my settings...
Expected Behavior
No error.
Actual Behavior
The text was updated successfully, but these errors were encountered: