question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Run Test | Debug Test disappear on save, then re-appear when tabbing on/off the file.

See original GitHub issue

vscode_weird_test_button_behavior

Environment data

  • VS Code version: 1.27.2
  • Extension version (available under the Extensions sidebar): 2018.8.0
  • OS and version: Ubuntu 16.04
  • Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.3
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): venv

Actual behavior

I have 2 files, test_vscode1.py and test_vscode2.py. I first discover the unit tests to get the Run Test | Debug Test buttons. Next, I remove the i = 0 line and re-save the file. The Run Test | Debug Test disappears permanently if I stay on this file. Next, I tab to the test_vscode1.py file and back to the test_vscode2.py file and the Run Test | Debug Test buttons re-appear.

Expected behavior

Don’t make the Run Test | Debug Test buttons disappear on save.

Steps to reproduce:

  1. See the description above

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

Just a bunch of nose discovery stuff, don't think it's useful

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

devlogs.txt

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:10
  • Comments:25

github_iconTop GitHub Comments

8reactions
DonJayamannecommented, Dec 10, 2018

@amittleider Please could you try adding the following setting into your settings.json file: "python.jediEnabled":false Let me know how that goes

1reaction
kimadelinecommented, Jul 29, 2021

Fixed by #16769, we don’t have code lenses anymore:

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Code's "Run Test | Debug Test" option missing ...
Check your options to confirm that the Go test explorer is enabled: Preferences > Settings > User Settings > find "go test enable...
Read more >
Secrets of the ABAP Debugger: Advanced ABAP Debugging ...
Goal of this blog post The ABAP debugger is a powerful tool helping to examine your ABAP code at runtime. Besides the common...
Read more >
Debugging with GDB - sourceware.org
Execute commands from file file . The contents of this file is evaluated exactly as the source command would. See Command files. -eval-command...
Read more >
Run unit tests with Test Explorer - Visual Studio (Windows)
Run tests after every build​​ To run your unit tests after each local build, open the settings icon in the Test Explorer toolbar...
Read more >
PySimpleGUI
There is a separate Readme file for the WxPython version. ... Make your development progress in a way you can run and test...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found