JulianEberius / SublimePythonIDE

ST3 only: A rewrite of SublimeRope for ST3, uses the Rope library to add python completions and refactoring to ST3
GNU General Public License v2.0
267 stars 38 forks source link

Can't tell if it even works #14

Closed ellmo closed 10 years ago

ellmo commented 11 years ago

I haven't used SublimeRope before ( actually I've only started learning python... again ) so I don't really know what I should be expecting from this plugin, but I don't see anything new.

I'm using OSX and there are no new options on the toolbar, when I type I experience massive slowdowns on each letter as if the plugin was scanning for possible autocompletions, but it only shows ST3 built-in snippets. I've tried to get autocompletion to show me functions / methods like print, input or [].append

I would like Some kind of a readme on how to set up the plugin and the features it gives – where to look for them and how to use them.

JulianEberius commented 11 years ago

Hi,

Sorry there is no documentation for know, except for the comments in the source code and the settings file. Please open ST3's console and add the error messages here, it seems like your ST3 cannot connect to the completion server, but without any output it is impossible to tell. Do you use a special firewall on OSX?

Julian

t4ec commented 11 years ago

Hi,

I have experienced same issue. There are huge slowdowns during typing. I use default OSX firewall.

Please see error from ST3 console:

Traceback (most recent call last): File "/Users/t4ec/Library/Application Support/Sublime Text 3/Installed Packages/Python IDE.sublime-package/sublime_python.py", line 99, in send_heartbeat File "X/xmlrpc/client.py", line 1090, in call File "X/xmlrpc/client.py", line 1419, in __request File "X/xmlrpc/client.py", line 1132, in request File "X/xmlrpc/client.py", line 1143, in single_request File "X/xmlrpc/client.py", line 1255, in send_request File "X/xmlrpc/client.py", line 1285, in send_content File "X/http/client.py", line 1045, in endheaders File "X/http/client.py", line 890, in _send_output File "X/http/client.py", line 828, in send File "X/http/client.py", line 806, in connect File "X/socket.py", line 424, in create_connection File "X/socket.py", line 415, in create_connection ConnectionRefusedError: [Errno 61] Connection refused

UPDATE: After switching firewall off nothing has changed, same error.

dskinner commented 11 years ago

just a note, I use this plugin as well and would get huge slowdowns. Was due to the server not being able to start. The server would randomly die and not want to start again but I never really looked into it.

The only time this would happen from a fresh start is if I had the project configured incorrectly pointing to my virtual environment using relative paths. I had some changes I made to show the actual error on server start as well as support relative paths but I lost them in an migration.

So the first worthwhile thing to do in my opinion is log what happens when trying to start the server to the sublime console so the errors aren't so vague :)

I'm on linux by the way

JulianEberius commented 11 years ago

Hi,

I just pushed a new branch "server_debugging". If you are still interested, check out this branch and set the flag SERVER_DEBUGGING (line 27 in sublime_python.py) to True.

Hopefully, SublimePythonIDE will then start to print the server's stderr to ST3's console and we can diagnose the problem.

Julian

triklozoid commented 11 years ago

I got the same problem on linux with "python_interpreter" linked to virtualenv. I switched it to "" and it helps.

ripperdoc commented 10 years ago

I can add that I'm also not able to use the virtualenv interpreter, adding the path just makes the "go to definition" etc break and do nothing (how come no errors printed to console, why fail silently?). So currently, not able to use SublimeIDE for most of my projects as the rely on virtualenvs.

AJamesPhillips commented 10 years ago

hi @JulianEberius thanks for working on this project. I'd like to use it as the autocomplete is looking good but I need to suppress some PEP8 warnings, I had a quick look through the code and found ignore_code() function, could you explain how to use this to suppress some warnings. Thanks. (Can open as separate issue if you want).

JulianEberius commented 10 years ago

These issues should be fixed with the recent changes (slowness as well as "connection refused"). Feel free to reopen if you still have issues (though a more specific new issue name would be nicer).