maralla / completor.vim

Async completion framework made ease.
MIT License
1.27k stars 63 forks source link

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

Closed fx-kirin closed 10 months ago

fx-kirin commented 5 years ago

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

maralla commented 5 years ago

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