-
Notifications
You must be signed in to change notification settings - Fork 168
GoTo Definition always fails #185
Comments
Also there is the constantly-rolling circle in the left-bottom corner (RLS: working). |
That the spinner is still going suggests that analysis has not copleted which is why goto def is not working. Could try enabling logging to try and some more information about what is going wrong please? Instructions are in debugging.md. |
@nrc I updated the nightly rust, reinstalled the extension (0.3.2) and found in the log
But the "rustc --version" command runs successfully in both Windows' cmd and PowerShell. |
@AnyCPU can you try a |
Just tried it, and still does not work :(
|
I still have the error even with rustc 1.23.0-nightly (e21df8020 2017-11-13) |
@Geobert I use the latest versions of Windows 10 Pro 64 bit, VS Code, Rust (rls) extensions, Visual Studio build tools. It works. |
Do I need to be on nightly toolchain for that? I'll check my options when back home. Thanks! |
@Geobert Being on the nightly is recommended now. |
You were right, stuck in the middle of the config file, stable was specified |
|
@Geobert |
updated to 01-27, still not working, I'm using MS C++ build tools 2015 |
with
But I've run cargo +nightly check with no error on https://github.com/cobalt-org/cobalt.rs |
@Geobert its a new laptop and with rustup and vscode only |
I've been landing a bunch of patches to help here. They're currently on master but not yet in nightly. I have one more bigger thing to land and will then update the rustup nightlies. Unfortunately that process takes a while so it might be a few days to a week before the nightly reflects the improvements. |
@nrc I updated nightly. Some cases are repaired, but not all. let a = Arc::new(5);
let b = a.clone(); Definition of "Arc" and "new" is found, but definition of "clone" isn't because of wrong path. |
Still broken with cobalt.rs project does not have any code navigation. |
Does anybody has any workaround on this, I can't use RLS since end of january :( |
Just find out about Not much of a help, I'm afraid: https://gist.github.com/Geobert/07ccc3d6dbb429305f3f1793cc1d66f9 |
Seen a new nightly but still broken :( (still cobalt.rs project)
https://gist.github.com/Geobert/892ef0dbec18e22c482ca1fbd3999ca1 |
OMG, found why by reinstalling my system (unrelated issue to solve). In order to build cobalt, in the terminal I need to call 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat' otherwise it will not build because of onig-sys If I launch VSCode in a bat file:
it works! |
Thanks to @alexheretic the RLS will report an error squiggle in case a dependency cannot be built by Cargo. I believe this is not an issue so will close this but feel free to reopen/comment if that's still the case! |
Rust: rustc 1.23.0-nightly (59d484575 2017-11-03)
Rust rls: 0.3.1
OS: Windows 10 Pro 64 bit latest
It always fails. But it is able to show symbol names in tooltips.
The text was updated successfully, but these errors were encountered: