Skip to content

Panic on primitive_docs.rs search #1131

Open
@Leorii

Description

@Leorii

Panic occurs when typing a std module name.

Example

impl Display for MyStruct {
    fn fmt(&self, f: &mut fm

'thread 'searcher' panicked at 'Failed load file "$HOME/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/std/src/primitive_docs.rs": Os { code: 2, kind: NotFound, message:
"No such file or directory" }', $HOME/.cargo/registry/src/github.yoyoweb123.workers.dev-1ecc6299db9ec823/racer-2.1.38/src/racer/core.rs:816:14\nnote: run with RUST_BACKTRACE=1 environment variable to display a backtrace\n'

Thoughts

I believe this might have something to do with #1130. The completion does still work (it attempts to find the source from the original rust directory layout), but then I think it still tries to find the source from the new layout and fails at that.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions