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

Update/reinstall if module was installed or exists #5738

Merged
merged 8 commits into from May 4, 2021
Merged

Conversation

DonJayamanne
Copy link
Contributor

@DonJayamanne DonJayamanne commented May 3, 2021

For #4758

When re-installing for the second time ask user to re-install/update the package.
Requires a corresponding change in Python extension (that will be done seprately - separate repo, hence separate PR)

When ipykernel is detected (already found but we cannot import it), or if we have previously installed this, then the following error message is displayed;
Screen Shot 2021-05-03 at 16 34 04

@codecov-commenter
Copy link

codecov-commenter commented May 3, 2021

Codecov Report

Merging #5738 (690dbba) into main (f14c5a3) will decrease coverage by 0%.
The diff coverage is 61%.

@@          Coverage Diff           @@
##            main   #5738    +/-   ##
======================================
- Coverage     72%     72%    -1%     
======================================
  Files        403     403            
  Lines      26865   26932    +67     
  Branches    3914    3926    +12     
======================================
- Hits       19564   19488    -76     
- Misses      5653    5804   +151     
+ Partials    1648    1640     -8     
Impacted Files Coverage Δ
src/client/api/types.ts 100% <ø> (ø)
src/client/common/types.ts 100% <ø> (ø)
src/client/telemetry/index.ts 63% <ø> (ø)
...lient/datascience/telemetry/interpreterPackages.ts 77% <41%> (-7%) ⬇️
src/client/common/installer/productInstaller.ts 47% <42%> (-7%) ⬇️
src/client/api/pythonApi.ts 57% <69%> (-7%) ⬇️
.../datascience/notebook/notebookControllerManager.ts 83% <83%> (-1%) ⬇️
...science/jupyter/kernels/kernelDependencyService.ts 85% <88%> (-5%) ⬇️
src/client/common/utils/localize.ts 95% <100%> (+<1%) ⬆️
src/client/datascience/constants.ts 99% <100%> (+<1%) ⬆️
... and 35 more

@DonJayamanne DonJayamanne marked this pull request as ready for review May 3, 2021 23:25
@DonJayamanne DonJayamanne requested a review from a team as a code owner May 3, 2021 23:25
@DonJayamanne
Copy link
Contributor Author

@IanMatthewHuff thanks, i now know not to ignore the failures.

@DonJayamanne DonJayamanne force-pushed the issue4758 branch 2 times, most recently from 980b128 to a35bafa Compare May 4, 2021 16:51
return controller;
} catch (ex) {
// We know that this fails when we have xeus kernels installed (untill that's resolved thats one instance when we can have duplicates).
sendTelemetryEvent(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you install the xeus kernel, then everythings falls over. You cannot run any notebook, because we end up with duplicate kernels in our code.
This ensures we never end up in a situtaion where we're completely broken because of one bad apple.
Have a separate issue for handling xeus python kernels.

@IanMatthewHuff @rchiodo

Copy link
Member

Choose a reason for hiding this comment

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

Good catch @DonJayamanne I should install that kernel as well just to have for testing.

@DonJayamanne DonJayamanne merged commit 67b9d88 into main May 4, 2021
@DonJayamanne DonJayamanne deleted the issue4758 branch May 4, 2021 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants