Skip to content
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

Terminal warning for no config debugging, twice #590

Closed
Yoyokrazy opened this issue Feb 6, 2025 · 2 comments · Fixed by #597
Closed

Terminal warning for no config debugging, twice #590

Yoyokrazy opened this issue Feb 6, 2025 · 2 comments · Fixed by #597
Assignees
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@Yoyokrazy
Copy link

Yoyokrazy commented Feb 6, 2025

Type: Bug

Behaviour

warning diagnostic asking to relaunch the terminal for no config debugging, after the terminal says no config debugging was already contributed.

Image

Steps to reproduce:

  1. Have python debugger ext with no config debugging
  2. Open vscode repo, with only ts files open and a terminal in view.
  3. Open a notebook with a python cell
  4. See warning appear on the terminal

Diagnostic data

launch.json configuration

XXX

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

2025-02-06 11:39:40.114 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-02-06 11:39:40.115 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-02-06 11:39:40.115 [info] Experiment 'pythonTestAdapter' is active
2025-02-06 11:39:40.115 [info] Native locator: Refresh started
2025-02-06 11:39:40.115 [info] > pyenv which python
2025-02-06 11:39:40.115 [info] cwd: .
2025-02-06 11:39:41.594 [info] Python interpreter path: ~\AppData\Local\Programs\Python\Python311\python.exe
2025-02-06 11:39:49.114 [info] Native locator: Refresh finished in 45834 ms
2025-02-06 11:39:55.621 [info] Starting Pylance language server.
2025-02-06 11:44:32.572 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-02-06 11:44:32.574 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-02-06 11:44:32.574 [info] Experiment 'pythonTestAdapter' is active
2025-02-06 11:44:32.574 [info] Native locator: Refresh started
2025-02-06 11:44:32.697 [info] > pyenv which python
2025-02-06 11:44:32.697 [info] cwd: .
2025-02-06 11:44:33.915 [info] Python interpreter path: ~\AppData\Local\Programs\Python\Python311\python.exe
2025-02-06 11:44:54.335 [info] Starting Pylance language server.
2025-02-06 11:45:02.355 [info] Native locator: Refresh finished in 30560 ms
2025-02-06 13:45:55.308 [info] > conda info --json
2025-02-06 13:46:05.772 [info] Native locator: Refresh started
2025-02-06 13:46:06.319 [info] Native locator: Refresh finished in 546 ms
2025-02-06 14:51:44.905 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-02-06 14:51:44.923 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-02-06 14:51:44.925 [info] Experiment 'pythonTestAdapter' is active
2025-02-06 14:51:44.926 [info] Native locator: Refresh started
2025-02-06 14:51:47.214 [info] > pyenv which python
2025-02-06 14:51:47.214 [info] cwd: .
2025-02-06 14:52:34.179 [info] > conda info --json
2025-02-06 14:52:39.073 [info] Python interpreter path: ~\AppData\Local\Programs\Python\Python311\python.exe
2025-02-06 14:52:39.687 [info] Native locator: Refresh finished in 58060 ms
2025-02-06 14:52:51.828 [info] Starting Pylance language server.
2025-02-06 14:53:18.664 [info] Experiment 'pythonRecommendTensorboardExt' is active
2025-02-06 14:53:18.664 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-02-06 14:53:18.664 [info] Experiment 'pythonTestAdapter' is active
2025-02-06 14:53:18.664 [info] Native locator: Refresh started
2025-02-06 14:53:18.809 [info] > pyenv which python
2025-02-06 14:53:18.809 [info] cwd: .
2025-02-06 14:53:33.932 [info] Python interpreter path: ~\AppData\Local\Programs\Python\Python311\python.exe
2025-02-06 14:53:45.551 [info] Native locator: Refresh finished in 28014 ms
2025-02-06 14:53:47.177 [info] > conda info --json
2025-02-06 14:53:48.067 [info] Starting Pylance language server.

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

2025-02-06 13:45:56.253 [info] Attempting to use temp directory for noConfigDebugAdapterEndpoints, dir name: noConfigDebugAdapterEndpoints-7ea3f1804c320d5a9d05
2025-02-06 14:52:34.110 [info] Attempting to use temp directory for noConfigDebugAdapterEndpoints, dir name: noConfigDebugAdapterEndpoints-736025c0a984abcaca51
2025-02-06 14:53:49.118 [info] Attempting to use temp directory for noConfigDebugAdapterEndpoints, dir name: noConfigDebugAdapterEndpoints-3a0d93863f742d55cfba

Extension version: 2025.0.0
VS Code version: Code - Insiders 1.98.0-insider (edd39c48ec3c81b5f8c6ddf1893a95acf8662187, 2025-02-06T05:04:30.184Z)
OS version: Windows_NT x64 10.0.26100
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.9
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Unknown
System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i7-1265U (12 x 2688)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.83GB (12.80GB free)
Process Argv --crash-reporter-id a1a3a7b6-5c3c-46e6-8403-0fcf483f7d3c
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
vsaa593:30376534
py29gd2263:31024238
c4g48928:30535728
a9j8j154:30646983
962ge761:30841072
pythonnoceb:30776497
dsvsc014:30777825
dsvsc015:30821418
pythonmypyd1:30859725
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:30980852
pythonait:30973460
dwnewjupyter:31046869
nativerepl1:31134653
pythonrstrctxt:31093868
nativeloc1:31118317
e80f6927:31120813
iacca1:31150324
notype1:31143044
dwcopilot:31158714
h409b430:31177054
c3hdf307:31184662
6074i472:31201624
9064b325:31222308
copilot_t_ci:31222730
ecdi0152:31231688
g012b348:31231168

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Feb 6, 2025
@eleanorjboyd
Copy link
Member

@Tyriar, what is the logic for showing the relaunch warning? I might be attempting contribute multiple times at each activation event for the terminal but is this an incorrect way of doing so?

@eleanorjboyd eleanorjboyd self-assigned this Feb 7, 2025
@Tyriar
Copy link
Member

Tyriar commented Feb 7, 2025

@eleanorjboyd you're probably doing the right thing here. The first part says what's there, the second part says what's changed, which can include the thing above. You could make the description more unique, but depending on what you're doing that might just confuse things further.

For example, when copilot updates you might expect the copilot-debug message to appear again if it needs to add a different entry to the PATH:

Image

At the point it would give the same message since we don't want to get into specifying the full path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants