Skip to content

Crash due to unwrap on None in tree_error_analysis #5

Description

@VictosVertex

Another crash resulted due to an unsafe unwrap

[2024-07-18T08:07:40Z INFO  asp_lsp] Time needed for first time generating the document: 18.901181ms
[2024-07-18T08:07:40Z INFO  asp_lsp::semantics] Time needed for starting up semantic analysis: 41.787µs
[2024-07-18T08:07:40Z INFO  asp_lsp::semantics] Time needed for semantic analysis: 21.278323ms
[2024-07-18T08:07:40Z INFO  asp_lsp::semantics] Time needed for semantic analysis cleanup: 683.397µs
thread 'main' panicked at src/diagnostics/tree_error_analysis.rs:43:22:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Error - 10:07:40 AM] The ASP language server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions