From 56a88b8b885227d04f07eeda47ee7332acaf9fc4 Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Thu, 26 Oct 2023 11:53:34 -0700 Subject: [PATCH] Trim ends before add lines to logs from create env output (#22358) closes https://github.com/microsoft/vscode-python/issues/22321 --- .../creation/provider/condaCreationProvider.ts | 2 +- .../creation/provider/venvCreationProvider.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/pythonEnvironments/creation/provider/condaCreationProvider.ts b/src/client/pythonEnvironments/creation/provider/condaCreationProvider.ts index 9dff50c5586d..d923179fac73 100644 --- a/src/client/pythonEnvironments/creation/provider/condaCreationProvider.ts +++ b/src/client/pythonEnvironments/creation/provider/condaCreationProvider.ts @@ -106,7 +106,7 @@ async function createCondaEnv( out.subscribe( (value) => { const output = splitLines(value.out).join('\r\n'); - traceLog(output); + traceLog(output.trimEnd()); if (output.includes(CONDA_ENV_CREATED_MARKER) || output.includes(CONDA_ENV_EXISTING_MARKER)) { condaEnvPath = getCondaEnvFromOutput(output); } diff --git a/src/client/pythonEnvironments/creation/provider/venvCreationProvider.ts b/src/client/pythonEnvironments/creation/provider/venvCreationProvider.ts index 61850e404c3d..7f854690f467 100644 --- a/src/client/pythonEnvironments/creation/provider/venvCreationProvider.ts +++ b/src/client/pythonEnvironments/creation/provider/venvCreationProvider.ts @@ -123,7 +123,7 @@ async function createVenv( out.subscribe( (value) => { const output = value.out.split(/\r?\n/g).join(os.EOL); - traceLog(output); + traceLog(output.trimEnd()); if (output.includes(VENV_CREATED_MARKER) || output.includes(VENV_EXISTING_MARKER)) { venvPath = getVenvFromOutput(output); }