maralla/completor.vim

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

Closed this issue · 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.

pat = list(PAT.finditer(base))

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