Skip to content

Debugger don't see the file in the same folder #24582

@Semkem

Description

@Semkem

Type: Bug

I'm trying to run the "main.py" file from the tutorial on the official vs code fastapi website and get an error in the terminal that the "models.py" is missing, althrough it is present and is not marked as missing in the "main.py" file code itself. When I hover the cursor over the word "models" in the "main.py" file itself, it shows that such a module exists, but the terminal says that it doesn't.

VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.26100
Modes:

System Info
Item Value
CPUs Intel(R) Pentium(R) CPU N3710 @ 1.60GHz (4 x 1600)
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) 3.91GB (0.34GB free)
Process Argv --crash-reporter-id b5ea168d-09d7-402c-8c78-8700867e9754
Screen Reader no
VM 0%
Extensions (28)
Extension Author (truncated) Version
vscode-intelephense-client bme 1.12.6
python-environment-manager don 1.2.4
gitlens eam 16.0.5
vscode-pull-request-github Git 0.100.3
go gol 0.42.1
cloudcode goo 2.22.0
vscode-docker ms- 1.29.3
vscode-language-pack-ru MS- 1.95.2024103009
vscode-kubernetes-tools ms- 1.3.18
data-workspace-vscode ms- 0.5.0
mssql ms- 1.26.0
sql-bindings-vscode ms- 0.4.0
sql-database-projects-vscode ms- 1.4.4
autopep8 ms- 2024.0.0
debugpy ms- 2024.12.0
python ms- 2024.20.0
vscode-pylance ms- 2024.12.1
remote-containers ms- 0.388.0
remote-wsl ms- 0.88.5
remote-explorer ms- 0.4.3
remote-server ms- 1.5.2
vscode-github-issue-notebooks ms- 0.0.130
sqltools mtx 0.28.3
vscode-yaml red 1.15.0
luna-paint Tyr 0.16.0
intellicode-api-usage-examples Vis 0.2.9
vscodeintellicode Vis 1.3.2
php-debug xde 1.35.0
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530

Metadata

Metadata

Assignees

Labels

area-terminalbugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions