davidhalter / jedi

Awesome autocompletion, static analysis and refactoring library for python
http://jedi.readthedocs.io
Other
5.78k stars 508 forks source link

ValueError: `line` parameter is not in a valid range. #1379

Closed fgheng closed 5 years ago

fgheng commented 5 years ago

hello, i am using neovim with plugin coc, this plugin using jedi as python completor, but when i use, it shows below

[coc.nvim] Jedi error: Traceback (most recent call last):
  File "completion.py", line 624, in watch
    response = self._process_request(rq)
  File "completion.py", line 574, in _process_request
    sys_path=sys.path, environment=self.environment)
  File "/home/forever/Software/anaconda3/envs/keras/lib/python3.7/site-packages/jedi/api/__init__.py", line 132, in __init__
    raise ValueError('`line` parameter is not in a valid range.')
ValueError: `line` parameter is not in a valid range.

do you know what happend? thank you very much

davidhalter commented 5 years ago

I have no idea. Probably the given column is indeed wrong, as the error suggests. Are you dealing with unicode?

fgheng commented 5 years ago

maybe, i rewrite my vim config and the problem does not occur, i do not know what happend, emm.

thank you very much

davidhalter commented 5 years ago

No idea what the problem was. But these kind of problems should probably be reported to the jedi-vim/youcompleteme tracker first.

choucavalier commented 3 years ago

Still having this error raised today

sndmndss commented 4 months ago

Any fix?