In Windows, the autocomplete is failing to appear for some basic python statements, like import, def, with, for, etc. It yields a message -- Omni completion (^O^N^P) Pattern not found on Ctrl+Space press. It doesn't work for both, gvim and vim in Windows terminal.
<Environment: 3.8.6 in C:\Users\EA\AppData\Local\Programs\Python\Python38> (C:\Users\EA\AppData\Local\Programs\Python\Python38\python.exe)
Settings
omnifunc=jedi#completions
Last set from ~\vimfiles\plugged\jedi-vim\autoload\jedi.vim line 738
completeopt=menuone,longest,preview
Last set from ~\vimfiles\plugged\jedi-vim\plugin\jedi.vim line 36
Messages maintainer: Bram Moolenaar <Bram@vim.org>
Traceback (most recent call last):
File "C:\Users\EA\vimfiles\plugged\jedi-vim\pythonx\jedi_vim.py", line 194, in wrapper
return func(*args, **kwargs)
File "C:\Users\EA\vimfiles\plugged\jedi-vim\pythonx\jedi_vim.py", line 337, in completions
vim.command('return ' + strout)
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2019' in position 1643: ordinal not in range(256)
Issue
In Windows, the autocomplete is failing to appear for some basic python statements, like
import
,def
,with
,for
, etc. It yields a message-- Omni completion (^O^N^P) Pattern not found
on Ctrl+Space press. It doesn't work for both, gvim and vim in Windows terminal.On Ubuntu 20.04 everything works well.
Steps to reproduce