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

Code completion errors for non trivial types #1590

Open
TomzBench opened this issue Nov 12, 2019 · 2 comments
Open

Code completion errors for non trivial types #1590

TomzBench opened this issue Nov 12, 2019 · 2 comments

Comments

@TomzBench
Copy link

TomzBench commented Nov 12, 2019

I am curious if my setup is broken, or perhaps code completion is currently not able to resolve certain types. If have a simple type wrapped in Arc<Mutex< T >> for example, I cannot receive completions for the T. I have a simple repo producing the issue here: https://github.com/TomzBench/ycm-rust-example ...And I confirmed other people see the same behaviour.

Here is a screen shot depicting wrong completion set for a type struct Thing {n:u32}
ycm-rust-rls-issue

@bennetthardwick
Copy link
Contributor

This is currently on the racer roadmap as racer-rust/racer#829. It's happening because it doesn't know how to handle std::ops::Deref.

There's another issue for all the irrelevant completions (racer-rust/racer#165) - specifically private members - but it's quite quiet.

@TomzBench
Copy link
Author

Oh I see. Thank you for the references.

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

2 participants