microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.59k stars 29.03k forks source link

pydev debugger: critical: unable to get real case for file #123575

Closed Joymaker closed 3 years ago

Joymaker commented 3 years ago

Issue Type: Bug

the debugger gives the three level Traceback listed below, but then operates successfully. python.bat sets a bunch of environment variables, then calls a conda_base\python.exe which is a Python 3.6

Debug config:

{
  "name": "suitename-cmd",
  "type": "python",
  "python": "C:\\Users\\Ken\\Desktop\\Richardson\\molprobity\\build\\bin\\python.bat",
  "env": {
    "CLIBD_MON": "C:\\Users\\Ken\\Desktop\\Richardson\\MolProbity\\modules\\chem_data\\mon_lib",
    "MMTBX_CCP4_MONOMER_LIB": "C:\\Users\\Ken\\Desktop\\Richardson\\MolProbity\\modules\\chem_data\\geostd"
   },
  "request": "launch",
  "program": "..\\command_line\\suitename.py",
  "args": ["-chart", "-causes", "test\\2xLk.pdb", "noinc=true"],  // cannot be blank for CCBTX argparse
  "console": "integratedTerminal"
},  

Traceback: pydev debugger: critical: unable to get real case for file. Details: filename: ..\command_line drive: parts: ['..', 'command_line'] (please create a ticket in the tracker to address this). Traceback (most recent call last): File "c:\Users\Ken.vscode\extensions\ms-python.python-2021.5.829140558\pythonFiles\lib\python\debugpy_vendored\pydevd\pydevd_file_utils.py", line 221, in _get_path_with_real_case return _resolve_listing(drive, iter(parts)) File "c:\Users\Ken.vscode\extensions\ms-python.python-2021.5.829140558\pythonFiles\lib\python\debugpy_vendored\pydevd\pydevd_file_utils.py", line 184, in _resolve_listing dir_contents = cache[resolved_lower] = os.listdir(resolved) FileNotFoundError: [WinError 3] The system cannot find the path specified: ''

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "c:\Users\Ken.vscode\extensions\ms-python.python-2021.5.829140558\pythonFiles\lib\python\debugpy_vendored\pydevd\pydevd_file_utils.py", line 226, in _get_path_with_real_case return _resolve_listing(drive, iter(parts)) File "c:\Users\Ken.vscode\extensions\ms-python.python-2021.5.829140558\pythonFiles\lib\python\debugpy_vendored\pydevd\pydevd_file_utils.py", line 184, in _resolve_listing dir_contents = cache[resolved_lower] = os.listdir(resolved) FileNotFoundError: [WinError 3] The system cannot find the path specified: '' pydev debugger: critical: unable to get real case for file. Details: filename: ..\command_line drive: parts: ['..', 'command_line'] (please create a ticket in the tracker to address this). Traceback (most recent call last): File "c:\Users\Ken.vscode\extensions\ms-python.python-2021.5.829140558\pythonFiles\lib\python\debugpy_vendored\pydevd\pydevd_file_utils.py", line 221, in _get_path_with_real_case return _resolve_listing(drive, iter(parts)) File "c:\Users\Ken.vscode\extensions\ms-python.python-2021.5.829140558\pythonFiles\lib\python\debugpy_vendored\pydevd\pydevd_file_utils.py", line 184, in _resolve_listing dir_contents = cache[resolved_lower] = os.listdir(resolved) FileNotFoundError: [WinError 3] The system cannot find the path specified: ''

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "c:\Users\Ken.vscode\extensions\ms-python.python-2021.5.829140558\pythonFiles\lib\python\debugpy_vendored\pydevd\pydevd_file_utils.py", line 226, in _get_path_with_real_case return _resolve_listing(drive, iter(parts)) File "c:\Users\Ken.vscode\extensions\ms-python.python-2021.5.829140558\pythonFiles\lib\python\debugpy_vendored\pydevd\pydevd_file_utils.py", line 184, in _resolve_listing dir_contents = cache[resolved_lower] = os.listdir(resolved) FileNotFoundError: [WinError 3] The system cannot find the path specified: '' -----------------command line reporting-----------------

VS Code version: Code 1.56.0 (cfa2e218100323074ac1948c885448fdf4de2a7f, 2021-05-04T22:09:06.405Z) OS version: Windows_NT x64 10.0.19042

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz (4 x 2904)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.91GB (5.85GB free)| |Process Argv|--crash-reporter-id 889c7dd7-c738-45c7-b906-a5b389a5572e| |Screen Reader|no| |VM|0%|
Extensions (9) Extension|Author (truncated)|Version ---|---|--- restructuredtext|lex|153.0.0 python|ms-|2021.5.829140558 vscode-pylance|ms-|2021.5.1 jupyter|ms-|2021.6.811652604 cpptools|ms-|1.3.1 printcode|nob|3.0.0 platformio-ide|pla|2.3.2 serenade|ser|1.4.9 rst-vscode|tht|3.0.1
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 pythonvspyt678:30270856 pythonvspyt602:30300191 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 pythonvspyt639:30300192 pythontb:30283811 vspre833cf:30267465 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 pythondataviewer:30285071 vscus158cf:30286554 bridgeflight:30299254 ```
JacksonKearl commented 3 years ago

\extPython