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

CtrlPMRUFiles shows 'ERROR: Failed to evaluate expression' #37

Open
dsummersl opened this issue Jul 6, 2017 · 2 comments
Open

CtrlPMRUFiles shows 'ERROR: Failed to evaluate expression' #37

dsummersl opened this issue Jul 6, 2017 · 2 comments

Comments

@dsummersl
Copy link

dsummersl commented Jul 6, 2017

I tried the instructions in https://github.com/nixprime/cpsm#options to setup the builtin CtrlPMRUFiles in neovim:

let g:ctrlp_map = ''
nnoremap <silent> <C-o> :let g:cpsm_match_empty_query = 0<CR>:CtrlPMRUFiles<CR>
nnoremap <silent> <c-p> :let g:cpsm_match_empty_query = 1<CR>:CtrlP<CR>

When I start neovim and issue <C-o> I see the error ERROR: Failed to evaluate expression. However, when I start neovim and issue <C-p> followed by <C-o> I don't get any error (but the list presented doesn't show any MRU entries that I can detect).

I'm not sure even how to debug this - any suggestions?

@dsummersl
Copy link
Author

A solution I'm using at the moment: turn off cpsm for MRU:

let g:ctrlp_map = ''
nnoremap <silent> <c-p> :unlet! g:ctrlp_match_func<CR>:CtrlPMRUFiles<CR>
nnoremap <silent> <c-o> :let g:ctrlp_match_func = {'match': 'cpsm#CtrlPMatch'}<CR>:CtrlP<cr>

@nixprime
Copy link
Owner

I can't reproduce this on the most recent neovim package on Ubuntu 16.04 ("0.2.1-dev"). Can you update to the latest version of cpsm, run "nvim -V9log", invoke CtrlPMRU with cpsm, and then find the traceback in the generated "log" file?

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