pylance-release icon indicating copy to clipboard operation
pylance-release copied to clipboard

Symlink would block pylance from working

Open maple3142 opened this issue 1 year ago • 1 comments

Type: Bug

  1. In an empty folder, create hello.py:
import os

print('hello')
  1. Open vscode at that folder and pylance works fine (hover works)
  2. In terminal, create a symlink by ln -s / test
  3. Reload vscode
  4. Hover no longer works and you can see pylance is in D state in htop (probably due to high IO)

Wondering if it is possible to tell pylance to stop following some symlinks as vscode's search.followSymlinks doesn't appear to work.

Extension version: 2024.3.2 VS Code version: Code 1.90.0 (89de5a8d4d6205e5b11647eb6a74844ca23d2573, 2024-06-04T19:33:54.889Z) OS version: Windows_NT x64 10.0.19045 Modes: Remote OS version: Linux x64 5.15.150.1-maple3142-WSL2+ Remote OS version: Linux x64 5.15.150.1-maple3142-WSL2+

System Info
Item Value
CPUs AMD Ryzen 5 3600 6-Core Processor (12 x 3593)
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
Load (avg) undefined
Memory (System) 31.91GB (12.37GB free)
Process Argv --crash-reporter-id aa21353d-66ad-438a-993d-24fe1d5157e9
Screen Reader no
VM 21%
Item Value
Remote WSL: Arch
OS Linux x64 5.15.150.1-maple3142-WSL2+
CPUs AMD Ryzen 5 3600 6-Core Processor (12 x 0)
Memory (System) 23.47GB (20.88GB free)
VM 0%
Item Value
Remote WSL: Arch
OS Linux x64 5.15.150.1-maple3142-WSL2+
CPUs AMD Ryzen 5 3600 6-Core Processor (12 x 0)
Memory (System) 23.47GB (20.86GB free)
VM 0%

maple3142 avatar Jun 13 '24 01:06 maple3142

use "python.analysis.exclude": ["**/test"]

ln -s / test will make us to scan whole drive and time it takes to scan whole drive will be based on your drive's size and io perf.

heejaechang avatar Jun 13 '24 01:06 heejaechang