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

complete enum constructors #418

Open
c-cube opened this issue Oct 28, 2015 · 1 comment
Open

complete enum constructors #418

c-cube opened this issue Oct 28, 2015 · 1 comment

Comments

@c-cube
Copy link

c-cube commented Oct 28, 2015

I have the impression racer does not complete constructor names.
For instance, racer complete core::option::Opt finds the type Option correctly, but racer complete core::option::Option::Som does not find the constructor Some (nor does racer complete Option::Som in a file in which option is implicitely in scope).

@phildawes
Copy link
Collaborator

Doing an Option::Som completion in an editor works. I'm not sure why command line doesn't
E.g. /tmp/file.rs

fn main() {
    ::std::option::Option::Som
}
% racer complete 2 30 /tmp/file.rs 
PREFIX 27,30,Som
MATCH Some,173,4,/usr/local/src/rust/src/libcore/option.rs,EnumVariant,Some(T)
END

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

2 participants