-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code completion breaks with Spyder 3 for modules added through the Python path manager #4141
Comments
Please update Jedi to 0.9.0 and try again (Spyder doesn't work with Jedi 0.10.0 yet). |
Jedi 0.9.0 seems not working at all. Jedi 0.8.1 works in this case: If I add my own custom directory in the Python Path manager It used to work with Python 2.7 and Spyder 2.3.1..... How to investigate the break ? |
That's very strange. All our tests are passing with Jedi 0.9.
Thanks for the example. We'll take a look at it.
Jedi support was introduced in Spyder 2.3.3, so completions were provided by Rope, not Jedi. |
In this configuration, Jedi works well with custom packages from PythonPathManager:
|
@rlaverde, please take a look at this one. |
It seems like PythonCustomPath are not loaded before the start of Jedi.... |
Test is simple: if you add a folder in Python Custom Folder and import a module from this folder: ----> It seems module were not loaded in Jedi..... |
We're probably not adding Spyder's PYTHONPATH to the list of paths used by Jedi. |
I found the jedi plugin : Could not find where Spyder JEDI is loading the Spyder's PYTHONPATH Do you have an idea where it can be located in Spyder code (I can do a small workaround). |
In Jedi plugin, Can we add PYTHONPath here in that part ?
|
That's not enough if changes are made to Spyder's PYTHONPATH while it's running. @rlaverde is working now on a better solution. |
Thank you so much.
This is the most useful feature of Spyder !
On 22 Mar 2017, at 08:59, Carlos Cordoba <[email protected]> wrote:
Closed #4141 via 669b6b4.
―
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
👍 Glad to hear you like it :-) |
You can't imagine how much time saving is auto-completion.....
Carlos Cordoba wrote:
…
👍 Glad to hear you like it :-)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4141 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AR0kEBtbWy9a1aWiRPRXIQmagOlleodSks5roTn3gaJpZM4L-47g>.
|
Sure I know, I just didn't know people were using it along with our Python path manager. |
Usage of Python path manager:
Create customize packages in /MyPythonPath/
for rapid testing, utilities function,...
Carlos Cordoba wrote:
…
Sure I know, I just didn't know people were using it along with our
Python path manager.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4141 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AR10pwH-cdjnf8f4e6Ng27--NPf9KyiGks5roT_ugaJpZM4L-47g>.
|
Sorry Guys... I am confused. Is there an "official" solution to the issue, or not? :-) |
There is, but we haven't released it yet. It will be part of Spyder 3.1.4 (our next release). |
Thanks. |
No, 3.1.4 will be released in a couple of days. Spyder 2 is unmaintained now. |
I am still having this issue running the latest Spyder version (3.1.4) through Anaconda on the latest version of OSX. Is this fixed? Anything else I can try? |
You need to update Jedi to fix a previous error with that package in Anaconda. |
FYI |
I have just installed a fresh Anaconda 2-4.4.0 and am unable to get intellisense (method popup) working on some objects (object.options for packages like odbc). Intellisense works completely in the python console, but not in iPython or the Spyder editor. import pyodbc as odbc
# intellisense works here
cnxn = odbc.connect(r'Driver={SQL Server};Server=n1; Database=xyz;Trusted_Connection=yes;')
# here onwards object method popups only work within python console - not Spyder or iPython
cursor = cnxn.cursor() # intellisense only works on python console
cursor.execute('Select....') # intellisense only works on python console I've added the $PYTHONPATH variable value inside PYTHONPATH manager as well. Intellisense in Spyder works when the imported package is directly addressed. Is intellisense meant to work against all derived objects? |
@glennbaptista, unfortunately code completion doesn't work everywhere in the Editor. This is a limitation inherent to the dynamic nature of Python, so there's little we can do about it, sorry. |
Thank you Carlos. That aspect (partial code completion) was not clear from all the trails I googled on this problem. Most seemed to find a fix and so I uninstalled everything and reinstalled the latest anaconda-python in a futile attempt :). It appears that if the object class is not directly known, no attempt is made to precompile and determine it's class. Thanks you once again for the time you take in all the threads to answer all the queries so completely - it really does help everyone. |
Description
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Spyder 2.3 and Python 2.7 work well and Jedi auto-complete does not break.
Please provide any additional information below
Version and main components
Dependencies
The text was updated successfully, but these errors were encountered: