Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

GotoDef failed to complete successfully #94

Closed
topecongiro opened this issue Jul 22, 2017 · 9 comments
Closed

GotoDef failed to complete successfully #94

topecongiro opened this issue Jul 22, 2017 · 9 comments

Comments

@topecongiro
Copy link

When I use Go to Definition (f12) few times, rls fails with the following error message:

[Error - 23:53:49] Request textDocument/definition failed.
  Message: GotoDef failed to complete successfully
  Code: -32601 

Environment

  • Visual Studio Code: 1.14.2
  • rls: 0.1.0-nightly (ee92edb 2017-07-22)
  • rls-vscode: 0.1.0
  • OS: Arch Linux (4.11.9-1)
@topecongiro
Copy link
Author

After creating this issue I found a very similar one in #74.
However, I am using the latest rls which should include the fix (rust-lang/rls@220116c), but it is still giving the same error messages.

@nrc
Copy link
Member

nrc commented Jul 23, 2017

What project were you looking at? When you tried to goto def, which symbol were you on?

@mominul
Copy link

mominul commented Jul 25, 2017

I always see this kind of error to occur when I ctrl+click on any std functions.

@doxxx
Copy link

doxxx commented Jul 25, 2017

I get this error when I hold down Control and mouse over comments. Also when hovering over the derive or ... in #[derive(...)] lines. And keywords like impl or fn.

@doxxx
Copy link

doxxx commented Jul 25, 2017

Updating to the latest rust nightly toolchain (rustc 1.20.0-nightly (598eddf4f 2017-07-24)) resolved these errors for me.

@doxxx
Copy link

doxxx commented Jul 25, 2017

Although I still get a slightly different error when hovering of std types like std::fs::File at actual usage sites:

[Error - 6:13:27 PM] Request textDocument/definition failed.
  Message: GotoDef failed to complete successfully
  Code: -32603 

@topecongiro
Copy link
Author

@nrc I was looking at rustfmt, rust, and my personal project. Symbols were local variables, macros, functions and structs, both internal and external.

However, when I start vscode from the shell, the issue seems disappear.

@nrc
Copy link
Member

nrc commented Aug 7, 2017

This should be fixed with latest RLS

@nrc nrc closed this as completed Aug 7, 2017
@doxxx
Copy link

doxxx commented Aug 7, 2017

Verified using rustc/rls nightly ba1d065ff 2017-08-06.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants