Closed 0--key closed 8 years ago
Hello, and thank you for the report! This is a bug in Rope. Sadly, the current maintainers of Rope are pretty explicit in that they do not care about fixing these types of bugs, so there is very little Elpy can do. The next release of Elpy will ignore all errors thrown by Rope, which should fix this problem, too.
Hello. Thanks a lot.
As I see, there is used rope in Python3. Rope does not support python3 currently, just use rope_py3k
Yes it is venv with Python3 inside. Thank you for wise suggestion.
Configuration
Virtualenv........: (/usr/local/share/DVCS/lib/Python/venv/) RPC Python........: 3.4.3 (/usr/local/share/DVCS/lib/Python/venv/bin/python) Interactive Python: python (/usr/local/share/DVCS/lib/Python/venv/bin/python) Emacs.............: 24.3.1 Elpy..............: 1.10.0 Jedi..............: 0.9.0 Rope..............: 0.10.3 Importmagic.......: 0.1.3 Autopep8..........: 0.1.3 Syntax checker....: flake8 (/usr/local/share/DVCS/lib/Python/venv/bin/flake8)
Traceback
Traceback (most recent call last): File "/home/antony/.emacs.d/elpa/elpy-1.10.0/elpy/ropebackend.py", line 100, in call_rope _kwargs) File "/usr/local/share/DVCS/lib/Python/venv/lib/python3.4/site-packages/rope/contrib/codeassist.py", line 97, in get_calltip pyname = fixer.pyname_at(offset) File "/usr/local/share/DVCS/lib/Python/venv/lib/python3.4/site-packages/rope/contrib/fixsyntax.py", line 51, in pyname_at pymodule = self.get_pymodule() File "/usr/local/share/DVCS/lib/Python/venv/lib/python3.4/site-packages/rope/base/utils.py", line 11, in _wrapper setattr(self, name, func(self, args, *_kwds)) File "/usr/local/share/DVCS/lib/Python/venv/lib/python3.4/site-packages/rope/contrib/fixsyntax.py", line 27, in get_pymodule self.resource.read() == code: File "/usr/local/share/DVCS/lib/Python/venv/lib/python3.4/site-packages/rope/base/resources.py", line 111, in read return fscommands.file_data_to_unicode(data) File "/usr/local/share/DVCS/lib/Python/venv/lib/python3.4/site-packages/rope/base/fscommands.py", line 208, in file_data_to_unicode result = _decode_data(data, encoding) File "/usr/local/share/DVCS/lib/Python/venv/lib/python3.4/site-packages/rope/base/fscommands.py", line 218, in _decode_data encoding = read_str_coding(data) File "/usr/local/share/DVCS/lib/Python/venv/lib/python3.4/site-packages/rope/base/fscommands.py", line 260, in read_str_coding return _find_coding(source[:second]) File "/usr/local/share/DVCS/lib/Python/venv/lib/python3.4/site-packages/rope/base/fscommands.py", line 270, in _find_coding if text[start] not in '=:': TypeError: 'in' requires string as left operand, not int
Rope Debug Information