-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fallback to jedi when using python 2.7, <=3.5 #15734
Conversation
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.
Minor cleanup in dependencies, otherwise LGTM!
Codecov Report
@@ Coverage Diff @@
## main #15734 +/- ##
=======================================
Coverage 64% 65%
=======================================
Files 557 551 -6
Lines 26730 26370 -360
Branches 3887 3806 -81
=======================================
- Hits 17292 17257 -35
+ Misses 8708 8382 -326
- Partials 730 731 +1
|
if (serverType === LanguageServerType.JediLSP && interpreter && interpreter.version) { | ||
if (interpreter.version.major < 3 || (interpreter.version.major === 3 && interpreter.version.minor < 6)) { | ||
sendTelemetryEvent(EventName.JEDI_LANGUAGE_SERVER_FALLBACK); | ||
serverType = LanguageServerType.Jedi; | ||
} | ||
} |
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 should probably mention this in JediLSP
description in package.json
.
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 don't have a description for the individual values in the LS field. May be we can change it (field type) to be better described. Although there still no consensus on how to provide enum descriptions in json.
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.
I see, we can skip this for now I guess.
* Fallback to jedi when using 2.7 * Address comments. * Update jedi-language-server to latest again
* Fallback to jedi when using 2.7 * Address comments. * Update jedi-language-server to latest again
In this PR:
jedi
andjedi-language-server
installation.jedi-language-server
to latest.jedi < 0.18
for 2.7 and <= 3.5.Closes #15735
Closes #15724
Closes #15731