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
Rust GoTo support doesn't work with standard library #1912
Comments
I don't know if is a limitation of ping @jwilm |
@palango can you please provide the output from Thanks! |
Ok, thanks for the responses. Tell me if you need anything else.
|
While you have vim open, can you do a |
|
Hmm. And do you have a RUST_SRC_PATH env var set? |
@jwilm: No, it's not set. Update: seems like that was the problem, when I set it it works fine. |
@palango That's not supposed to be necessary :P. Well, I guess that's the workaround in the mean time. This is a bug in either ycmd's rust completer or racerd. Would you mind sharing your racerd/ycmd (both stdout and stderr) logs from when you had the issue? They could be useful for tracking down the issue. You might have to recreate it since ycm doesn't keep log files by default. You can get their location via |
This also highlights the need for additional information in :YcmDebugInfo so I can just ask people to provide that in the future :). Thanks!!! |
Do you want the logs with the |
Without the environment variable set, please. |
Seems to be my bad, I might have tried it on functions and/or macros. Even with the env variable deleted it works fine for structs and traits. I understand that functions are hard to match, but macros should be doable? |
Functions should be fine. There's not support in racer for macros, yet. |
I attached a new log, this time without the env variable set. Some strange behaviour I noticed now, in the following code. GoTo on the
|
Awesome information. Thanks for providing all of that in addition to the initial report. |
@jwilm any updates on this? I am affected by the same problem. let mut guess = String::new();
io::stdin().read_line(&mut guess)
.expect("Failed to read line");
let guess: u32 = guess.trim().parse()
.expect("Please type a number"); trim() and parse() are neither being autocompleted nor I am able to jump to definition with But I can see other completions that work (trim and parse are not found in that list) I do not have |
RLS support has been merged. |
When using the rust plugin the GoTo command works fine as long as I jump in the project or the dependency crates. However, I can't follow links to the standard library. When I try this I get the following message:
The rust sources are there and set by
g:ycm_rust_src_path
and completion works fine. I'm on MacVim 7.4 (88) with YCM installed today.The text was updated successfully, but these errors were encountered: