Open Eternity-Yarr opened 7 years ago
Can you please try running this with RUST_LOG=racer=trace
as an environment variable and share that output?
A playground with a minimal repro of the issue would also be helpful.
i think that for the whole trace output this part is relevant for current issue:
ERROR:racer: Search thread paniced: Any
DEBUG:racer::core: find_definition_ for |"x"| |"ok"| Field
DEBUG:racer::ast: visit_expr expr(4294967295: x)
DEBUG:racer::ast: expr is a path P[x]
DEBUG:racer::ast: resolve_ast_path P[x]
DEBUG:racer::nameres: resolve_path_with_str P[x]
DEBUG:racer::nameres: resolve_path P[x] "/home/user/projects/rqh/src/main.rs" 1708 ExactMatch
DEBUG:racer::nameres: resolve_name x "/home/user/projects/rqh/src/main.rs" 1708 ExactMatch Both
DEBUG:racer::nameres: search_local_scopes PathSegment { name: "x", types: [] } "/home/user/projects/rqh/src/main.rs" 1708 ExactMatch Both
DEBUG:racer::nameres: searching scope Both start: 1702 point: 1708 'x' "/home/user/projects/rqh/src/main.rs" ExactMatch local: true, session: Session { .. }
DEBUG:racer::typeinf: get_type_of match Match ["x", "/home/user/projects/rqh/src/main.rs", 4648, true, FnArg, [], [] ||x| x.ok() )
i'll try to make an minimal repro shortly
https://gist.github.com/Eternity-Yarr/b09c5190542989ce88925192624089bd here is minimal repro.
if i run RUST_BACKTRACE=1 RUST_LOG=racer=trace racer find-definition 9 28 main.rs
, racer crashes
Thanks!
What's happening here is that #697 is causing racer to find a definition for x
where previously it wouldn't have.
Edit: My original statement was wrong. We're failing to find the beginning of the statement, and that's where the crash is occurring.
i'm on
I'm trying to find a definition of
.ok()
by running:on line: