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

Wrong marker on literal string with same name as variable #408

Closed
yajo opened this issue Jul 25, 2024 · 1 comment
Closed

Wrong marker on literal string with same name as variable #408

yajo opened this issue Jul 25, 2024 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@yajo
Copy link

yajo commented Jul 25, 2024

Type: Bug

Behaviour

image

Steps to reproduce:

  1. Debug some code where a literal string has the same name as a variable.

Diagnostic data

launch.json configuration

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Run selected test",
      "type": "python",
      "request": "launch",
      "console": "internalConsole",
      "internalConsoleOptions": "openOnFirstSessionStart",
      "justMyCode": false,
      "subProcess": true,
      "preLaunchTask": "Dependency services",
      "program": "${env:PRJ_DATA_DIR}/venv/odoo-${env:ODOO_VERSION}/bin/odoo",
      "args": [
        "--dev=qweb,xml",
        "--stop-after-init",
        "--workers=0",
        "--test-file=${file}",
        "--test-tags=.${selectedText}"
      ]
    }
  ]
}

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

python.log

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

2024-07-25 07:25:32.772 [info] Name: Python Debugger
2024-07-25 07:25:32.772 [info] Module: debugpy
2024-07-25 07:56:42.853 [info] Name: Python Debugger
2024-07-25 07:56:42.853 [info] Module: debugpy
2024-07-25 08:21:01.479 [info] Name: Python Debugger
2024-07-25 08:21:01.479 [info] Module: debugpy
2024-07-25 08:27:34.056 [info] Name: Python Debugger
2024-07-25 08:27:34.056 [info] Module: debugpy
2024-07-25 08:37:19.497 [info] Name: Python Debugger
2024-07-25 08:37:19.497 [info] Module: debugpy

Extension version: 2024.9.12041012
VS Code version: Code 1.91.0 (ea1445cc7016315d0f5728f8e8b12a45dc0a7286, 2024-07-01T18:52:41.959Z)
OS version: Linux x64 6.6.41
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.14
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): VirtualEnvironment
System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i7-1360P (16 x 1683)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 2
Memory (System) 15.29GB (9.46GB free)
Process Argv --crash-reporter-id b63bfa16-331f-4806-adea-efa40e7321e8
Screen Reader no
VM 0%
DESKTOP_SESSION gnome
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome
XDG_SESSION_TYPE wayland
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
da93g388:31013173
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
2f103344:31071589
impr_priority:31102340
refactort:31101459
ccplt:31103426
pythonrstrctxtcf:31103194

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jul 25, 2024
@paulacamargo25 paulacamargo25 added bug Issue identified by VS Code Team member as probable bug and removed triage-needed Needs assignment to the proper sub-team labels Jul 25, 2024
@paulacamargo25
Copy link
Contributor

Duplicated of: #401

@paulacamargo25 paulacamargo25 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants