Vscode-rust: Bad autocompletion for iterators

Created on 23 Jul 2019  路  5Comments  路  Source: rust-lang/vscode-rust

into_iter(), iter(), and iter_mut() methods on Vec<T>, [T; N] etc types return iterators. But autocompletion is missing for these iterators.

Screenshot_20

Screenshot_21

Most helpful comment

I'm having the same issue

All 5 comments

I'm having the same issue

Same issue for string literals

image

I've researched the issue a bit and it seems that it's a part of a larger issue with how the rust compiler is at the moment. There is a discussion here: https://github.com/rust-lang/rls/issues/6

So any progress on this issue? It creates a lot of pain!

Irrelevant to the project itself, but rust-analyzer works perfectly and is great workaround. There are stability issues (it keeps crashing and restarting) and it uses a bit more processing power so I don't like using it as much as RLS, but it gets the work done. It has perfect type inference and works flawlessly with iterables, and pretty much everything I've thrown at it. It makes working with iterables completely different experience.

Install the rust-analyzer extension and change rust-client.engine to rust-analyzer in settings.

Was this page helpful?
0 / 5 - 0 ratings