Skip to content

Update to Jedi 0.17 #11252

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

Merged
merged 4 commits into from
Apr 21, 2020
Merged

Update to Jedi 0.17 #11252

merged 4 commits into from
Apr 21, 2020

Conversation

PeterJCLaw
Copy link

@PeterJCLaw PeterJCLaw commented Apr 18, 2020

For #11221

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
  • Title summarizes what is changing.
  • Has a news entry file (remember to thank yourself!).
  • Appropriate comments and documentation strings in the code.
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated.
  • Test plan is updated as appropriate.
  • package-lock.json has been regenerated by running npm install (if dependencies have changed).
  • The wiki is updated with any design decisions/details.

Light testing locally suggests that this works for simple cases, but I've not done any in-depth testing.

PR partly to get an initial CI run against the updated Jedi.

lf chosen to match package{,-lock}.json
This includes updating to the latest parso too.
davidhalter/jedi#1548 is actually fixed
upstream, but as-yet unreleased.
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
1.2% 1.2% Duplication

@codecov-io
Copy link

codecov-io commented Apr 20, 2020

Codecov Report

Merging #11252 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #11252   +/-   ##
=======================================
  Coverage   61.08%   61.08%           
=======================================
  Files         601      601           
  Lines       33085    33085           
  Branches     4671     4671           
=======================================
  Hits        20209    20209           
  Misses      11858    11858           
  Partials     1018     1018           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1768483...2f0d1e1. Read the comment docs.

@@ -596,6 +596,7 @@ def _process_request(self, request):
line=request["line"] + 1,
column=request["column"],
path=request.get("path", ""),
project=jedi.get_default_project(os.path.dirname(path)),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Btw What upstream issue is this for?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jedi 0.17.0 introduced project support, so the signature for jedi.Script changed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is true, however this specific change is to work around davidhalter/jedi#1548, which is fixed but not yet released. There miiight be some benefit to removing this line when the fix is released (so people can continue to use 0.16 if they really need to for some reason), but as @kimadeline mentions, projects are the direction that Jedi is going.

Ideally I think we'd pass in the actual project root (which VSCode knows) rather than getting jedi to guess it, however I couldn't immediately see that in the available data. This spelling keeps the existing behaviour, though we may be able to do better in the future.

@kimadeline kimadeline merged commit f1f2dfd into microsoft:master Apr 21, 2020
@PeterJCLaw PeterJCLaw deleted the jedi-0.17 branch April 21, 2020 19:33
@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants