Skip to content

No output while running tests when Python extension is also installed #802

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

Closed
adityasharad opened this issue Mar 22, 2021 · 0 comments · Fixed by #803
Closed

No output while running tests when Python extension is also installed #802

adityasharad opened this issue Mar 22, 2021 · 0 comments · Fixed by #803
Labels
bug Something isn't working VSCode

Comments

@adityasharad
Copy link
Contributor

Describe the bug
When both the CodeQL extension and the ms-python extension are installed, there is no output or logging when running tests. A while after starting a test, it goes back to the "grey stop symbol" icon (from "blue ellipsis").
(originally observed by @tausbn)

To Reproduce

  • Install CodeQL for VS Code 1.4.3 or later.
  • Install the VS Code Python extension.
  • Open a CodeQL workspace (e.g. github/codeql) and run tests from the Test Explorer view.

Expected behavior

  • The tests run, the Test Explorer shows the status, and the Output windows show the logs.

Diagnosis

The VS Code Python extension has a dependency that overrides String.prototype.startsWith for the entire VS Code Node process. This breaks code (in our extension or others) that depends on the 2-argument version of startsWith.
@alexet has filed upstream issues at microsoft/vscode-python#15744 and simonepri/pidtree#13.

Workaround
Affected users may uninstall or disable the VS Code Python extension to work around this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working VSCode
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant