forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Python commands are printed twice in the output channel #7160
Copy link
Copy link
Closed
Labels
area-editor-*User-facing catch-allUser-facing catch-allbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buggood first issueverification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
area-editor-*User-facing catch-allUser-facing catch-allbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buggood first issueverification-neededVerification of issue is requestedVerification of issue is requestedverifiedVerification succeededVerification succeeded
Environment data
Expected behaviour
Python commands should only be displayed once in the "Python" output channel.
Actual behaviour
Some Python commands (for example linting or formatting) are displayed twice.
Steps to reproduce:
vscode-python/src/client/common/process/logger.ts
Line 19 in 39cf9e0
vscode-python/src/client/common/process/proc.ts
Line 184 in 39cf9e0
this.emit('exec', file, args, options);is only hit once, but the debugger stops twice onlogger.logProcess().Cause
We register 2 'exec' listeners to the python process:
createorcreateActivatedEnvironmentmethod inPythonExecutionFactory:vscode-python/src/client/common/process/pythonExecutionFactory.ts
Lines 31 to 37 in 39cf9e0
await this.processServiceFactory.create:vscode-python/src/client/common/process/processFactory.ts
Lines 21 to 26 in 39cf9e0