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

Fix raw kernel running other languages #12111

Merged
merged 6 commits into from
Jun 3, 2020

Conversation

rchiodo
Copy link

@rchiodo rchiodo commented Jun 2, 2020

For #11919

This finishes the work to support other languages. Note, there's no tests for it. (other than some basic unit tests for kernel picking). We don't install dotnet on the azure machine nor do we test the language tokenization.

I feel like this is okay at this time as we're not officially supporting any other languages yet.

I'm going to add another issue for 'testing' other languages.
https://github.com/microsoft/vscode-python/issues/12112

@rchiodo
Copy link
Author

rchiodo commented Jun 2, 2020

Duh I forgot to mention, I also made it possible to switch kernels without having a notebook open.

This allows the user to actually switch to a kernel that works in case the one in the notebook won't start.

@@ -46,11 +47,19 @@ export class NotebookProvider implements INotebookProvider {
disposables.push(
interactiveWindowProvider.onDidChangeActiveInteractiveWindow(this.checkAndDisposeNotebook, this)
);
// this.rawNotebookProvider
Copy link
Author

Choose a reason for hiding this comment

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

Doh. This should be fixed.

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 used if the initial kernel doesn't run. After I fixed the kernel running I didn't hit this again.


In reply to: 434219118 [](ancestors = 434219118)

Copy link
Author

Choose a reason for hiding this comment

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

Maybe I should write a test that mimics a failure in the kernel on startup.


In reply to: 434219880 [](ancestors = 434219880,434219118)

@sonarcloud
Copy link

sonarcloud bot commented Jun 3, 2020

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
0.0% 0.0% Duplication

@rchiodo rchiodo merged commit a4415fa into master Jun 3, 2020
@rchiodo rchiodo deleted the rchiodo/kernel_launch_other_languages branch June 3, 2020 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog No news entry required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants