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

Unite throws errors when I call :Unite citation(i.e. without specifying sub-menu) #22

Open
lukelbd opened this issue Sep 19, 2018 · 1 comment

Comments

@lukelbd
Copy link

lukelbd commented Sep 19, 2018

Perhaps this is unintended usage? But when I call :Unite <args> citation instead of (e.g.) :Unite <args> citation/key, so as to choose one option from the menu, I observe some odd behavior:

If I do this for the first time after opening a new Vim session, I get no error.

If I do this after the first time, I get the following error message:

[Citation] citation sources
[unite.vim] function unite#helper#call_unite[33]..unite#start[1]..unite#start#standard[50]..unite#candidates#_recache[74]..<SNR>174_recache_candidates_l
oop[42]..<SNR>174_get_source_candidates[40]..385, line 4
[unite.vim] Vim(return):E731: using Dictionary as a String
[unite.vim] Error occurred in gather_candidates!

If I choose an option from the sub-menu directly via my :Unite call (i.e., via :Unite citation/key), the plugin works fine.

Btw thanks for writing this thing, it is in general awesome.

@lukelbd lukelbd changed the title Unite throws errors when I call :Unite citation, without specifying menu Unite throws errors when I call :Unite citation, i.e. without specifying sub-menu Sep 19, 2018
@lukelbd lukelbd changed the title Unite throws errors when I call :Unite citation, i.e. without specifying sub-menu Unite throws errors when I call :Unite citation(i.e. without specifying sub-menu) Sep 19, 2018
@rafaqz
Copy link
Owner

rafaqz commented Sep 20, 2018

Thanks! I never noticed because I never use it more than once, and only run the test once...

It probably difficult to solve as there is some interaction with Unite happening there. But I'll have a look when I get time (ie probably not for ages given my current workload...)

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