Skip to content
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

No auto-completion for macro results #338

Closed
Noah11012 opened this Issue Jun 12, 2018 · 4 comments

Comments

Projects
None yet
4 participants
@Noah11012
Copy link

Noah11012 commented Jun 12, 2018

When using a macro such as vec! and then trying to call a method on the vector, no auto-completion comes up.

Code:

fn main() {
    let v = vec![1, 2, 3];
    v. // No auto-completion appears
}
@nrc

This comment has been minimized.

Copy link
Member

nrc commented Jun 12, 2018

This is a problem with Racer, which is embedded in the RLS. I don't think there is anything actionable here - Racer can't be made to understand macros, but eventually we will use the compiler instead.

@nrc nrc closed this Jun 12, 2018

@JeanMertz

This comment has been minimized.

Copy link

JeanMertz commented Aug 11, 2018

eventually we will use the compiler instead.

Thanks for this. Being new to rust, I like learning a language through exploration, and auto-completion in my editor makes it possible for me to gradually go down the rabbit hole of the standard library and what I can do with what type. Hitting this while working on some toy code, I was also confused by this.

I am curious to hear if there's some kind of up-to-date roadmap on what has already been done on the compiler side to support this (or basically all RLS features), and what still has to be done?

@JeanMertz

This comment has been minimized.

Copy link

JeanMertz commented Aug 11, 2018

Also a quick follow-up. Is this the same reason why the following doesn't work?

screen shot 2018-08-11 at 14 21 58

screen shot 2018-08-11 at 14 32 18

Any way to find out what works, and what doesn't work (aside from trying, but then I'm wondering if I should file a bug report, or not)? I looked over in the Racer repository, but couldn't find anything in the documentation about this.

@lnicola

This comment has been minimized.

Copy link

lnicola commented Aug 30, 2018

@JeanMertz your latter sample isn't a macro, so you should probably file an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.