Skip to content
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

test_completions_custom_path fails with jedi 0.9.0 (Spyder 3) #6447

Closed
jitseniesen opened this issue Feb 13, 2018 · 6 comments
Closed

test_completions_custom_path fails with jedi 0.9.0 (Spyder 3) #6447

jitseniesen opened this issue Feb 13, 2018 · 6 comments

Comments

@jitseniesen
Copy link
Member

The test_completions_custom_path fails if jedi 0.9.0 is installed and succeeds with jedi 0.10.2. This test was introduced in PR #4962 by @rlaverde to fix #4410, a bug with code completion. As I understand it, the feature that the test is written for requires jedi 0.10.0 or higher. Spyder only requires jedi 0.9.0. This affects both the master and the 3.x branch.

One possible solution is to the test if jedi 0.9.x is installed. This is done with another test in the same PR.

Alternatively, we could require jedi 0.10.0. This would simplify our code base and ensure that everybody profits from the bug fix (the original bug seems to have taken quite some effort to be tracked down). For the record, jedi 0.10.0 was released February 2017 on PIP and May 2017 on conda.

We could also take the first approach for Spyder 3.x and the second approach for Spyder 4.x. Bumping the requirement in a minor release is perhaps too big a change in this case.

Suggestions?

@ccordoba12
Copy link
Member

The test_completions_custom_path fails if jedi 0.9.0 is installed and succeeds with jedi 0.10.2

We need to demand 0.10 for that test. The requirement to use custom paths with Jedi 0.10+ is already in our code.

We could also take the first approach for Spyder 3.x and the second approach for Spyder 4.x

Yep, since 3.x is maintenance, we can't bump the minimal Jedi version to 0.10, but we can do that for 0.4. I think we could even use 0.11 to remove other patches as well.

@CAM-Gerlach
Copy link
Member

CAM-Gerlach commented Feb 13, 2018

Oops, sorry for the mess above...me and my fat fingers.

BTW, I know that the ever-troublesome test_introspection in test_editor_introspection also requires jedi 0.9.0 (by the way, the latter has been failing for at least a couple weeks now, but as it doesn't run on our CIs I've just been manually skipping it locally until my key work items for 3.2.7 are complete).

@ccordoba12
Copy link
Member

the latter has been failing for at least a couple weeks now

It's passing for me locally in Python 3 and PyQt5.

@CAM-Gerlach
Copy link
Member

@ccordoba12 Ah, looks like your just-merged #6433 fixed it. Thanks!

@jitseniesen
Copy link
Member Author

Yep, since 3.x is maintenance, we can't bump the minimal Jedi version to 0.10, but we can do that for 0.4.

Okay, I'll prepare two separate PRs.

@jitseniesen jitseniesen changed the title test_completions_custom_path fails with jedi 0.9.0 test_completions_custom_path fails with jedi 0.9.0 (Spyder 3) Feb 17, 2018
@jitseniesen
Copy link
Member Author

I created issue #6474 so that I don't forget about the second PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants