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

Error when cmdmatch completing Unite subcommands #1155

Closed
thalesmello opened this issue May 3, 2016 · 1 comment
Closed

Error when cmdmatch completing Unite subcommands #1155

thalesmello opened this issue May 3, 2016 · 1 comment

Comments

@thalesmello
Copy link
Contributor

Problems summary

I have forked the original unite-cmdmatch in order to get it to work with subcommands completion. I got some level of success. If I type :help un<c-o> I get a Unite source with possible completions for the help command, which the original plugin wasn't capable of doing.

However, for some reason still unknown to me, if I try to get the completions for the Unite command itself, I get an error message.

If I type :Unite c<c-o> I get the following error:

Error detected while processing function <SNR>129_call_unite..unite#start..unite#start#standard..unite#candidates#_recache..unite#init#_candidates_source:
line    3:
E716: Key not present in Dictionary: default_kind, 'is_dummy' : 0, 'is_matched' : 1, 'is_multiline' : 0, 'unite__is_marked' : 0, }
E15: Invalid expression: { 'kind' : source.default_kind, 'is_dummy' : 0, 'is_matched' : 1, 'is_multiline' : 0, 'unite__is_marked' : 0, }
Press ENTER or type command to continue

I suspect that, somehow, Unite is trying to interpret the text it receives as input from the source, as I have only found this behaviour to happen in Unite command itself.

Expected

Unite should be able to complete the list of parameters it receives from the source.

Environment Information

  • OS: Mac OS X El Captain
  • Vim version: NVIM 0.1.2-dev

Provide a minimal .vimrc with less than 50 lines (Required!)

" Your minimal .vimrc
call dein#add('Shougo/unite.vim')
call dein#add('thalesmello/unite-cmdmatch')
cm <c-o> <Plug>(unite_cmdmatch_complete)

The reproduce ways from Vim starting (Required!)

  1. Type in :Unite (notice the space at the end of the command)
  2. Press Ctrl + O
  3. You should get an error message

Screen shot (if possible)

screen shot 2016-05-03 at 04 07 09

## Upload the log messages by `:redir` and `:message`

:message

Error detected while processing function <SNR>129_call_unite..unite#start..unite#start#standard..unite#candidates#_recache..unite#init#_candidates_source:
line    3:
E716: Key not present in Dictionary: default_kind, 'is_dummy' : 0, 'is_matched' : 1, 'is_multiline' : 0, 'unite__is_marked' : 0, }
E15: Invalid expression: { 'kind' : source.default_kind, 'is_dummy' : 0, 'is_matched' : 1, 'is_multiline' : 0, 'unite__is_marked' : 0, }
Press ENTER or type command to continue

:redir

"~/.vimrc.bundles.local"
"~/.vimrc.bundles.local" 52L, 1976C written% 
@thalesmello
Copy link
Contributor Author

thalesmello commented May 3, 2016

#443 Might be relevant

@Shougo Shougo closed this as completed in 7ae5ee3 May 3, 2016
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

1 participant