Closed fx-kirin closed 10 months 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.
vim.list
Filename.parse
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
What the commit of your installed completor? I think the problem can not be reproduced in the lasted commit. Please update.
Sometimes a exception raises when it try to parse file path. I figured out the reason was that
vim.list
object was passed toFilename.parse
method by reading the log. I'll leave more information while I search the data flow later on.completor.log
The error raises from here.
https://github.com/maralla/completor.vim/blob/0b5b7992408ee6077ea923402d5eb3982b7af6ce/pythonx/completers/common/filename.py#L104