racer icon indicating copy to clipboard operation
racer copied to clipboard

thread 'searcher' panicked at 'called `Option::unwrap()` on a `None` value'

Open davesque opened this issue 6 years ago • 2 comments

Trying to use racer with deoplete-rust. Getting these option unwrapping panicks all over the place. Here's one reliable way to duplicate at least one of them:

With racer v2.1.28:

  1. Run racer on this file:
$ git clone https://github.com/rust-lang/rust
$ cd rust
$ git checkout 91642e3ac0120c8e9cdd5f3c85ad03f3bf1b8b69
$ racer complete 1 0 src/libsyntax/util/parser.rs
PREFIX 0,0,
thread 'searcher' panicked at 'called `Option::unwrap()` on a `None` value', /rustc/412f43ac5b4ae8c3599e71c6972112e9be4758fa/src/libcore/macros/mod.rs:15:40
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
ERROR 2019-11-25T21:27:39.310446000Z: racer: Search thread panicked: Any
END

davesque avatar Nov 25 '19 21:11 davesque

By the way, I just tried this with the latest racer built from source at c2255dc8f43575ad969db4b7645b7ee912dc5e78 and it's doing the same thing.

davesque avatar Nov 25 '19 22:11 davesque

any news? How to fix?

peterwillcn avatar Sep 12 '20 07:09 peterwillcn