Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Cannot import modules in logpoint #694

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

Open
hsm207 opened this issue Apr 11, 2025 · 0 comments
Open

Cannot import modules in logpoint #694

hsm207 opened this issue Apr 11, 2025 · 0 comments
Labels
triage-needed Needs assignment to the proper sub-team

Comments

@hsm207
Copy link

hsm207 commented Apr 11, 2025

Type: Bug

Behaviour

Writing the following in a log point:

{import inspect; __file__ + ":" + str(inspect.currentframe().f_lineno)}:

Throws an invalid syntax error in the console:

invalid syntax (, line 1)

Steps to reproduce:

  1. Write any python script
  2. Add a logpoint as described above
  3. Launch the script with the debugger
  4. View the result in the Debug Console

Diagnostic data

launch.json configuration

{
            "name": "Backend: InvokeAI",
            "type": "debugpy",
            "request": "launch",
            "program": "/opt/anaconda3/envs/sd/bin/invokeai-web",
            "args": ["--root", "~/InvokeAI/invokeai_root"
                    ],
            "console": "integratedTerminal",
            "env": {
              "PYTORCH_ENABLE_MPS_FALLBACK": "1",
            },
            "justMyCode": false,
            "presentation": {
              "hidden": false,
              "group": "InvokeAI",
              "order": 1
            }
        },

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

No output

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

No Output

Extension version: 2025.5.2025031101
VS Code version: Code - Insiders 1.99.0-insider (Universal) (99c9c6c8eb0aef3fce659b0fac1ff3130c4e34a4, 2025-03-28T21:28:51.696Z)
OS version: Darwin arm64 24.3.0
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.11
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
System Info
Item Value
CPUs Apple M1 Max (10 x 2400)
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
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 7, 6, 5
Memory (System) 32.00GB (0.08GB free)
Process Argv --crash-reporter-id d6db5e29-a46a-4d2a-b36f-b9c07a24e7ba
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551:31249597
vscod805cf:30301675
c4g48928:30535728
2i9eh265:30646982
962ge761:30841072
dsvsc014:30777825
dsvsc015:30821418
h48ei257:31000450
pythontbext0:30879054
cppperfnew:30980852
dwnewjupytercf:31046870
pythonrstrctxt:31093868
nativeloc1:31118317
e80f6927:31120813
dwcopilot:31158714
c3hdf307:31184662
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
g012b348:31231168
copilothoveron:31262361
pythoneinst12:31251391
treesitterini:31278752
bgtreat:31252123
c7cif404:31281427
31787653:31262186
3e8i5726:31271747
pythonpulldiag:31258010
6gi0g917:31259950
edits451:31274658
996jf627:31264550
pythonrdcb7:31268811
gh9da704:31280609
747dc170:31275146
aj496949:31278748
generatesymbolt:31280541
convertfstringf:31280702
gendocf:31280703

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Apr 11, 2025
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

No branches or pull requests

1 participant