tht13 / Python-vscode

A Python language pack for Visual Studio Code
MIT License
17 stars 11 forks source link

Undefined variable #42

Open benivalotker opened 4 years ago

benivalotker commented 4 years ago

Issue Type: Bug

hi, when uses all variable in init.py file (from some package), the script file from outside import this package and getting an error in VC. visual code error - "Undefined variable 'exception_class'".

python itself run this code well.

Extension version: 0.2.3 VS Code version: Code 1.43.2 (0ba0ca52957102ca3527cf479571617f0de6ed50, 2020-03-24T07:38:38.248Z) OS version: Windows_NT x64 10.0.18362

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz (4 x 2494)| |GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|7.90GB (1.02GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|