Always use the same jedi environment#4687
Conversation
Fix completion.py to always pass the same environment to jedi, instead of letting it infer a default one. Fixes microsoft#4505
Codecov Report
@@ Coverage Diff @@
## master #4687 +/- ##
========================================
- Coverage 77% 77% -<1%
========================================
Files 447 449 +2
Lines 21343 22892 +1549
Branches 3491 3800 +309
========================================
+ Hits 16344 17401 +1057
- Misses 4995 5471 +476
- Partials 4 20 +16
|
|
This fixes #4504 . I'd be happy to add tests, but I'm not exactly sure how yet. As far as I can tell, the only provider that triggers this call is the |
|
Closing & re-opening to ensure Travis CI kicks in |
|
Closing & re-opening to ensure Travis CI kicks in |
|
Closing & re-opening to ensure Travis CI kicks in |
This reverts commit 77995ff.
|
@selimb I accidentally merged your PR, and had to revert the commit. |
|
@DonJayamanne thanks for the approval! I'm just waiting on permission from my employer to sign the agreement. |
|
@DonJayamanne Done! |
* Update tpn distro and 3rd party notices * Pin to beta version of PTVSD (#4836) Update version of PTVSD * Add ignore button to the MacInterpreterSelectedAndNoOtherInterpreters… (#4808) Add ignore button to the MacInterpreterSelectedAndNoOtherInterpretersDiagnostic & MacInterpreterSelectedAndHaveOtherInterpretersDiagnostic diagnostic message to provide the ability to opt out of the warning. (Fixing related issue #4448) * Generalize test results service (#4813) * Generalize test results service * News entry * Fix gulp errors * Updated status icons * Added tests * fix names for run above and run below code lenses (#4879) * Fix multiline comments with text on first line. (#4884) * Cherry-pick 26a7b9c * cherry pick from master branch * Revert "Revert "Always use the same jedi environment (#4687)" (#4850)" This reverts commit 0268ef4. * Update change log entries * Bump ptvsd to 4.2.5 (#4904) * Bump version of PTVSD to 4.2.5 * Changes to capabilities * Ensure output panel does not steal focus due to ls errors (#4919) For #4868 <!-- If an item below does not apply to you, then go ahead and check it off as "done" and strikethrough the text, e.g.: - [x] ~Has unit tests & system/integration tests~ --> - [x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR) - [x] Title summarizes what is changing - [x] Has a [news entry](https://github.com/Microsoft/vscode-python/tree/master/news) file (remember to thank yourself!) - [n/a] Has sufficient logging. - [n/a] Has telemetry for enhancements. - [n/a] Unit tests & system/integration tests are added/updated - [n/a] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate - [n/a] [`package-lock.json`](https://github.com/Microsoft/vscode-python/blob/master/package-lock.json) has been regenerated by running `npm install` (if dependencies have changed) - [n/a] The wiki is updated with any design decisions/details. * Fix change log * Bump pinned version of Language Server * Release for march 2018 (#4931) * New version * Updated change log * Same logic for stable and beta (#4964) * Point release for March 2018 (#4965) * Capture telemetry when tests are disabled (#4997) For #4801 * Update change log
* release: March 2019 point release with debugger fixes (#5056) Update change log Capture telemetry when tests are disabled (#4997) Point release for March 2018 (#4965) Same logic for stable and beta (#4964) Release for march 2018 (#4931) Bump pinned version of Language Server Fix change log Ensure output panel does not steal focus due to ls errors (#4919) Bump ptvsd to 4.2.5 (#4904) Update change log entries Revert "Revert "Always use the same jedi environment (#4687)" (#4850)" cherry pick from master branch Cherry-pick 26a7b9c Fix multiline comments with text on first line. (#4884) fix names for run above and run below code lenses (#4879) Generalize test results service (#4813) Add ignore button to the MacInterpreterSelectedAndNoOtherInterpreters… (#4808) Pin to beta version of PTVSD (#4836) Update tpn distro and 3rd party notices
* release: (24 commits) Bump extension version Bump language server Track telemetry when switching to and from LS (#5164) Point release with fixes for Debugger (#5160) March 2019 point release with debugger fixes (#5056) Update change log Capture telemetry when tests are disabled (#4997) Point release for March 2018 (#4965) Same logic for stable and beta (#4964) Release for march 2018 (#4931) Bump pinned version of Language Server Fix change log Ensure output panel does not steal focus due to ls errors (#4919) Bump ptvsd to 4.2.5 (#4904) Update change log entries Revert "Revert "Always use the same jedi environment (#4687)" (#4850)" cherry pick from master branch Cherry-pick 26a7b9c Fix multiline comments with text on first line. (#4884) fix names for run above and run below code lenses (#4879) ...
Fix completion.py to always pass the same environment to jedi, instead of letting it infer a default one.
For #4504
Has telemetry for enhancements.package-lock.jsonhas been regenerated by runningnpm install(if dependencies have changed)The wiki is updated with any design decisions/details.