Skip to content

Commit 0d56551

Browse files
authored
Fix messages not showing up in insiders (microsoft#4632)
Add some more logging for issue #4424 For #4424 <!-- 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!) - [x] Has sufficient logging. - [ ] Has telemetry for enhancements. - [ ] Unit tests & system/integration tests are added/updated - [ ] [Test plan](https://github.com/Microsoft/vscode-python/blob/master/.github/test_plan.md) is updated as appropriate - [ ] [`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) - [ ] The wiki is updated with any design decisions/details.
1 parent f0c17fe commit 0d56551

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

build/webpack/common.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ exports.nodeModulesToExternalize = [
2222
'request',
2323
'request-progress',
2424
'source-map-support',
25-
'file-matcher',
2625
'diff-match-patch',
2726
'sudo-prompt',
2827
'node-stream-zip',

build/webpack/common.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export const nodeModulesToExternalize = [
2424
'request',
2525
'request-progress',
2626
'source-map-support',
27-
'file-matcher',
2827
'diff-match-patch',
2928
'sudo-prompt',
3029
'node-stream-zip',

news/3 Code Health/4424.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add more logging to diagnose issues getting the Python Interactive window to show up

src/client/datascience/history.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,8 @@ export class History implements IHistory {
427427
}
428428

429429
private async submitCode(code: string, file: string, line: number, id?: string, editor?: TextEditor) : Promise<void> {
430+
this.logger.logInformation(`Submitting code for ${this.id}`);
431+
430432
// Transmit this submission to all other listeners (in a live share session)
431433
if (!id) {
432434
id = uuid();
@@ -448,6 +450,7 @@ export class History implements IHistory {
448450

449451
// Make sure we're loaded first.
450452
try {
453+
this.logger.logInformation('Waiting for jupyter server and web panel ...');
451454
await this.loadPromise;
452455
} catch (exc) {
453456
// We should dispose ourselves if the load fails. Othewise the user
@@ -661,11 +664,17 @@ export class History implements IHistory {
661664
}
662665

663666
private async loadJupyterServer(restart?: boolean): Promise<void> {
667+
this.logger.logInformation('Getting jupyter server options ...');
668+
664669
// Extract our options
665670
const options = await this.historyProvider.getNotebookOptions();
666671

672+
this.logger.logInformation('Connecting to jupyter server ...');
673+
667674
// Now try to create a notebook server
668675
this.jupyterServer = await this.jupyterExecution.connectToNotebookServer(options);
676+
677+
this.logger.logInformation('Connected to jupyter server.');
669678
}
670679

671680
private generateSysInfoCell = async (reason: SysInfoReason): Promise<ICell | undefined> => {

0 commit comments

Comments
 (0)