srusskih / SublimeJEDI

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

Nothing happen and no error reported #74

Closed daniele-niero closed 11 years ago

daniele-niero commented 11 years ago

Hello,

I installed SublimeJedi through Package Control but it seems like the plugin is doing nothing.

No matter what I try to set in the settings, the plugin simply stay silent, don't work and don't report errors either...

Is there something I can do to at least get some logs or error and trying to understand what is going wrong?

I'm a windows 7 and I trying to autocomplete with python2.6

srusskih commented 11 years ago

daemon write logs to daemon.log file, and if too be true, I have no idea where this file is on the windows :(

Also sublime text console should contains error too.

I'll try to run it on windows, maybe I could got something about this situation

daniele-niero commented 11 years ago

Thanks,

The console doesn't show anything. I understand this is hard to debug, without better informations, but really I don't know where to find them, if any.

May a firewall interfere with this plugin? it did with some others I tried.

daniele-niero commented 11 years ago

I have found the deamon.log file, this is the error I get, using Sublime Text 2:

2013-08-12 14:37:07,917: INFO : started. cache directory - C:\Users\daniele.niero.LOST_BOYS_GAMES\AppData\Roaming\Jedi\Jedi\UserFiles, extra folders - ['D:/dev/KZ4/Tools/kin/PythonTools', 'D:/dev/KZ4/Tools/MayaTools/Guerrilla/Tools', 'D:/dev/KZ4/Tools/MayaTools/3rdParty/Python/Lib/site-packages'], complete_function_params - all 2013-08-12 14:37:07,934: ERROR : failed to process line Traceback (most recent call last): File "jedi_daemon.py", line 295, in process_line(line) File "jedi_daemon.py", line 234, in process_line action_type: JediFacade(data).get(action_type) TypeError: init**() keywords must be strings

krya commented 11 years ago

@daniele-niero could you insert print statement just before that line? @srusskih why do we need a facade in the first place here? :)

daniele-niero commented 11 years ago

@krya I did manually delete anything in the log file and then tried SublimeJedi again. That was the only lines there were in the log at that point.

daniele-niero commented 11 years ago

I found what is the issue: SublimeJedi is not compatible with Python 2.6 (or any one prior python 2.7)

Unfortunately Python 2.6 is still alive and used.

srusskih commented 11 years ago

Ok. Could you please write some notes about this, please?

daniele-niero commented 11 years ago

The python I'm usign is python 2.6 and so I have set it as the interpreter to use in the settings. that didn't work so I tied with a different version of python (2.7) and the plugin started to work without any problem.

In the mean time I tried also Anaconda, which is heavily taken from SublimeJedi. I had the same problem. The author suggested me to start Anaconda's php server from a command line and see what happen. I got an error about cmp_to_key module, not present in functools... that rang a bell. cmp_to_key has been introduced in python 2.7. I fixed this problem and I found another similar. I wasn't able to fix all of them (I don't have time for this now, unfortunately)

So I suspected that the same issue was actually happening with SublimeJedi and that's when I tried to let SublimeJedi to use python2.7 instead of python2.6, but obviously this cannot be considered a solution.

srusskih commented 11 years ago

Thanks. I'll make an investigation :)

schlamar commented 11 years ago

:) I have in an unrelated codebase:

def convert_kwargs(kwargs):
    ''' Python < 2.7 cannot deal with unicode kwargs,
    so they must be converted to str.

    '''
    str_kwargs = dict()
    for key, value in kwargs.iteritems():
        str_kwargs[str(key)] = value
    return str_kwargs
srusskih commented 11 years ago

Yeap. I thought about the same solution, but choose simplest solution :)

I think all depends on how often we will use this.

srusskih commented 11 years ago

Feel free reopen the issue, if it still does not works

SmartManoj commented 5 years ago

Package Control: The dependency 'markupsafe' is not currently installed; installing... Package Control: The dependency 'markupsafe' is not available Package Control: The dependency 'markupsafe' could not be installed or updated

srusskih commented 5 years ago

it looks like issue with Package Control

I see "markupsafe" in PC https://github.com/wbond/package_control_channel/blob/master/repository/dependencies.json#L396

I can't do anything here.