Giter Site home page Giter Site logo

Comments (7)

fsouza avatar fsouza commented on August 25, 2024 1

@Shougo any way we can figure a different solution for that? RUST_SRC_PATH is not required when using rustup (and the rust-src component).

from vim-racer.

Freyskeyd avatar Freyskeyd commented on August 25, 2024

Same for me on MacOsx

from vim-racer.

Shougo avatar Shougo commented on August 25, 2024

Please check racer find-definition {line} {column} {file} works.

from vim-racer.

vext01 avatar vext01 commented on August 25, 2024

Alright, here is the problem:

$ racer find-definition 3 src/main.rs 34
RUST_SRC_PATH environment variable must be set to point to the src directory of a rust checkout. E.g. "/home/foouser/src/rust/src"

Once set:

$ racer find-definition 3 34 src/main.rs 
MATCH a,2,8,src/main.rs,Let,let a = 1;
END

So I think you need to mention this in your README.md.

from vim-racer.

vext01 avatar vext01 commented on August 25, 2024

Deoplete-rust (a similar plugin) uses a vim variable for this. Not sure if that's a better route or not...

let g:deoplete#sources#rust#rust_source_path='/path/to/rust/src'

https://github.com/sebastianmarkow/deoplete-rust

from vim-racer.

Shougo avatar Shougo commented on August 25, 2024

OK. It should be.
I don't know why the error check is not implemented.

from vim-racer.

Shougo avatar Shougo commented on August 25, 2024

@Shougo any way we can figure a different solution for that? RUST_SRC_PATH is not required when using rustup (and the rust-src component).

If you have the different solution, please send the pull request.

from vim-racer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.