completor.vim icon indicating copy to clipboard operation
completor.vim copied to clipboard

Passing vim.list to Filename.parse raises a exception.

Open fx-kirin opened this issue 6 years ago • 1 comments

Sometimes a exception raises when it try to parse file path. I figured out the reason was that vim.list object was passed to Filename.parse method by reading the log. I'll leave more information while I search the data flow later on.

completor.log

2019-04-16 09:57:36,423 [INFO][/home/zenbook/.cache/dein/.cache/.vimrc/.dein/pythonx/completers/common/filename.py] start filename parse:     shutil.copy('./data_backup/Jrichie
2019-04-16 09:57:36,423 [INFO][/home/zenbook/.cache/dein/.cache/.vimrc/.dein/pythonx/completers/common/filename.py] completions: [({'word': 'JRichie1h1.hst', 'abbr': '', 'menu': '[F]'}, -978)]
2019-04-16 09:57:36,430 [INFO][/home/zenbook/.cache/dein/.cache/.vimrc/.dein/pythonx/completers/common/filename.py] start filename parse: <vim.list object at 0x7fbba7eea180>

The error raises from here.

https://github.com/maralla/completor.vim/blob/0b5b7992408ee6077ea923402d5eb3982b7af6ce/pythonx/completers/common/filename.py#L104

fx-kirin avatar Apr 16 '19 01:04 fx-kirin

What the commit of your installed completor? I think the problem can not be reproduced in the lasted commit. Please update.

maralla avatar May 11 '19 05:05 maralla