Skip to content

Support Goto Definition in vscode #450

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

Closed
zhouzq-thu opened this issue Apr 15, 2023 · 4 comments
Closed

Support Goto Definition in vscode #450

zhouzq-thu opened this issue Apr 15, 2023 · 4 comments

Comments

@zhouzq-thu
Copy link

The rust-analyzer supports goto definition was fixed by rust-analyzer:14561.
However, opencv-rust doesn't support for now.

@twistedfall
Copy link
Owner

Do you have an idea what needs to be done to support it? I'm not using rust-analyzer personally so I'm might be a bit disconnected from how it works. But I checked previously and at least code hints worked correctly.

@zhouzq-thu
Copy link
Author

zhouzq-thu commented Apr 18, 2023

Goto definition works fine for the functions like dnn::get_available_backends, but can't goto the right place for the traits (member functions) like model.set_preferable_backend. Maybe the rust-analyzer still has some bugs.

@jackos
Copy link

jackos commented Apr 24, 2023

@zhouzq-thu latest rust-analyzer released yesterday fixed this for me

@zhouzq-thu
Copy link
Author

Yes, it works now. Thanks for sharing.

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

No branches or pull requests

3 participants