diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index e04ffc931c39..4f78bea4d688 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -45,7 +45,7 @@ jobs: matrix: # We're not running CI on macOS for now because it's one less matrix entry to lower the number of runners used, # macOS runners are expensive, and we assume that Ubuntu is enough to cover the UNIX case. - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest] steps: # Need the source to have the tests available. - name: Checkout diff --git a/src/client/activation/jedi/languageClientFactory.ts b/src/client/activation/jedi/languageClientFactory.ts index 5d1abebcb207..42996f9f4fd5 100644 --- a/src/client/activation/jedi/languageClientFactory.ts +++ b/src/client/activation/jedi/languageClientFactory.ts @@ -1,11 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. +import { exec } from 'child_process'; import * as path from 'path'; import { LanguageClient, LanguageClientOptions, ServerOptions } from 'vscode-languageclient/node'; import { EXTENSION_ROOT_DIR, PYTHON_LANGUAGE } from '../../common/constants'; import { Resource } from '../../common/types'; +import { sleep } from '../../common/utils/async'; import { IInterpreterService } from '../../interpreter/contracts'; import { PythonEnvironment } from '../../pythonEnvironments/info'; import { ILanguageClientFactory } from '../types'; @@ -29,6 +31,13 @@ export class JediLanguageClientFactory implements ILanguageClientFactory { }; console.log(`Jedi Language Server options: ${JSON.stringify(serverOptions)}`); + const child = exec(`${serverOptions.command} ${lsScriptPath}`, (error, stdout, stderr) => { + console.log(`stdout: ${stdout}`); + console.log(`stderr: ${stderr}`); + console.log(`ERROR:`, error); + }); + await sleep(5000); + child.kill(); return new LanguageClient(PYTHON_LANGUAGE, languageClientName, serverOptions, clientOptions); }