Skip to content
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

goto on mod item crash #219

Open
mkaput opened this issue Jan 27, 2025 · 0 comments
Open

goto on mod item crash #219

mkaput opened this issue Jan 27, 2025 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@mkaput
Copy link
Member

mkaput commented Jan 27, 2025

Problem

goto on mod a when there is a file a.cairo panics every time

called Option::unwrap() on a None value
stack backtrace:
   0: _rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::panicking::panic
   3: core::option::unwrap_failed
   4: cairo_lang_semantic::items::function_with_body::expr_semantic
   5: salsa::Cycle::catch
   6: salsa::derived::slot::Slot<Q,MP>::execute
   7: salsa::derived::slot::Slot<Q,MP>::read
   8: <salsa::derived::DerivedStorage<Q,MP> as salsa::plumbing::QueryStorageOps<Q>>::fetch
   9: <DB as cairo_lang_semantic::db::SemanticGroup>::expr_semantic::__shim
  10: cairo_language_server::lang::defs::SymbolDef::find
  11: cairo_language_server::lang::usages::FindUsages::collect
  12: cairo_language_server::ide::navigation::references::references
  13: <lsp_types::request::References as cairo_language_server::server::routing::traits::BackgroundDocumentRequestHandler>::run_with_snapshot
  14: core::ops::function::FnOnce::call_once{{vtable.shim}}
  15: core::ops::function::FnOnce::call_once{{vtable.shim}}
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.
 207.776628459s ERROR cairo_language_server::server::routing: request 250 errored: caught panic in LSP worker thread

Steps

No response

Possible Solution(s)

No response

Notes

No response

Scarb Version


@mkaput mkaput added the bug Something isn't working label Jan 27, 2025
@mkaput mkaput added this to the Goto milestone Jan 27, 2025
@mkaput mkaput moved this to Triage in CairoLS Jan 27, 2025
@mkaput mkaput added this to CairoLS Jan 27, 2025
@mkaput mkaput moved this from Triage to Backlog in CairoLS Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant