-
-
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
PR: Send Spyder python path to introspection plugins #4962
PR: Send Spyder python path to introspection plugins #4962
Conversation
Hello @rlaverde! Thanks for updating the PR. Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated on August 30, 2017 at 00:09 Hours UTC |
3efe697
to
b23d8aa
Compare
@@ -30,6 +30,8 @@ | |||
except ImportError: | |||
jedi = None | |||
|
|||
JEDI_010 = [int(i) for i in jedi.__version__.split('.')] >= [0, 10, 0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have programs.is_module_installed
exactly for this :-)
spyder/app/tests/test_mainwindow.py
Outdated
@@ -110,7 +111,7 @@ def main_window(request): | |||
# (it's faster and less memory consuming not to use it!) | |||
marker = request.node.get_marker('use_introspection') | |||
if marker: | |||
os.environ['SPY_TEST_USE_INTROSPECTION'] = 'True' | |||
os.environ['SPY_TEST_USE_INTROSPECTION'] = 'USE_INTROSPECTION' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change this to True
. That could fix the failing test below.
The way to implement this for Rope is the following:
|
spyder/app/tests/test_mainwindow.py
Outdated
@@ -110,7 +111,7 @@ def main_window(request): | |||
# (it's faster and less memory consuming not to use it!) | |||
marker = request.node.get_marker('use_introspection') | |||
if marker: | |||
os.environ['SPY_TEST_USE_INTROSPECTION'] = 'True' | |||
os.environ['SPY_TEST_USE_INTROSPECTION'] = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be 'True'
, not True
.
85dafe8
to
1f3cd95
Compare
I was trying to fix it without success 😞 I'll also try to move it to an editor test, maybe loading the main window is what's causing it to timeout. |
9164e61
to
a3ef289
Compare
@rlaverde, I think that adding the test to test_rope_plugin.py and test_jedi_plugin.py is easier and simpler than testing completion in our widgets. |
dad09dc
to
7698e01
Compare
Yes, I'll give a last try to the integration test and I'll do that (the test is running pretty well in my local configuration, I don't know way CI is failing 😞 ) |
@rlaverde Have you tried to debug those tests via SSH on Travis (https://docs.travis-ci.com/user/running-build-in-debug-mode/) and RDP on AppVeyor (https://www.appveyor.com/docs/how-to/rdp-to-build-worker/)? |
7698e01
to
fc03f98
Compare
…ed in the process enviroment.
fc03f98
to
9e775dc
Compare
9e775dc
to
aa9ac51
Compare
editor.introspector.plugin_manager.close() | ||
|
||
|
||
@pytest.mark.skipif(True, reason="This test fails too much in the CI :(") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove this condition and change the one below to
not JEDI_010 or os.environ.get('CI', False)
so we can run this test locally.
@ccordoba12 It works for me 👍 🎉 , I tested opening and closing projects and changing the PYTHONPATH. |
Unfortunately it doesn't work for me. After I cloned from github , I switched to the 3.x branch. Version is 3.2.2.dev0. It works if I create a new project, but with my existing project which has different modules in different folders, it doesn't work. I add those folders into the PYTHONPATH. |
Oh I see... Didn't know that :) |
You can do
|
53dfcec
to
25a5c3b
Compare
Hi guys, Finally managed to test your solution and am happy to report that this fixed the issue for me!! 👍 Thanx a lot, looking forward to the next version! sincerely, |
Yes it works for me, too!! |
Great news!! Thanks a lot to you for helping us to test this :-) |
Fixes: #4410
Supersedes #4915
Undo some changes of #4263
At the moment the spyder path is only used by jedi