srusskih / SublimeJEDI

awesome Python autocompletion with SublimeText
MIT License
938 stars 109 forks source link

jedi goto errors #177

Closed diveru4i closed 9 years ago

diveru4i commented 9 years ago

For some reasons in one of the recent versions of the package the goto functionality stopped working for me. What could it be?

Traceback (most recent call last):
  File "./sublime_plugin.py", line 356, in run_
  File "./sublime_jedi/go_to.py", line 84, in run
  File "./sublime_jedi/utils.py", line 211, in ask_daemon
  File "./sublime_jedi/utils.py", line 121, in __init__
  File "./sublime_jedi/utils.py", line 233, in get_settings
  File "./sublime_jedi/utils.py", line 325, in expand_path
ValueError: zero length field name in format
srusskih commented 9 years ago

Do you use master-branch version or 0.8.0 ?

diveru4i commented 9 years ago

0.8.0

srusskih commented 9 years ago

thx for the answer. looks like same issue was fixed in master-branch. will create 0.8.1 as soon as can

diveru4i commented 9 years ago

The exact problem is with this line

subl_vars['$project'] = view.window().project_file_name()

>> 'Window' object has no attribute 'project_file_name'
srusskih commented 9 years ago

ok. looks like plugin is broken for ST2

diveru4i commented 9 years ago

The problem exists only in 0.8.0. Master branch works great as before.

srusskih commented 9 years ago

that's really odd, case project_file_name() exists only in ST3

srusskih commented 9 years ago

178 fixed

srusskih commented 9 years ago

0.8.1 created before #178 fix