cpsm icon indicating copy to clipboard operation
cpsm copied to clipboard

CtrlPMRUFiles shows 'ERROR: Failed to evaluate expression'

Open dsummersl opened this issue 8 years ago • 2 comments

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 avatar Jul 06 '17 11:07 dsummersl

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>

dsummersl avatar Jul 07 '17 13:07 dsummersl

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?

nixprime avatar Oct 31 '17 03:10 nixprime