Completion incorrectly finds core context, not task context, with core flags #239

Closed
bitprophet opened this Issue Apr 29, 2015 · 0 comments

Projects

None yet

1 participant

@bitprophet
Member

E.g. completing inv -c mycollection mytask - or inv --debug mytask - doesn't show mytask flags, but instead shows core flags, due to some issue with the partial parsing during completion.

Specifically, the partial parsing doesn't know what the core flags are for some reason, e.g. it starts off, looks at -c (or --debug or whatever), goes "dafuq is this?" and bails too early. What was expected, and what happens when core flags are not involved, is that this parsing step sees the task name, switches to its context, then bails on the partial flag.

@bitprophet bitprophet added the Bug label Apr 29, 2015
@bitprophet bitprophet added a commit that closed this issue Apr 29, 2015
@bitprophet bitprophet Needed a more fully stocked parser for completion.
Could have fixed this by updating the outer scope's parser
variable, but eh, this is cleaner anyway and less disruptive.

Fixes #239
8ecf4ba
@bitprophet bitprophet added a commit that referenced this issue Apr 29, 2015
@bitprophet bitprophet Changelog re #239 be7e6f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment