Can VS Code be debugged if the path contains certain symbols? (Python)

As the title says ... Is it a bug?

--The confirmed version is as follows.

I don't use any debuggable language other than Python, so I don't know the other languages ...

Symbols are removed from the path at the start of debugging

Terminal


PS C:\Users\User\Documents\○ Personal files>  & 'C:\Program Files\Python38\python.exe' 'c:\Users\User\.vscode\extensions\ms-python.python-2020.10.332292344\pythonFiles\lib\python\debugpy\launcher' '62606' '--' 'c:\Users\User\Documents\Personal files\test.py'
Traceback (most recent call last):
  File "C:\Program Files\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
    cli.main()
  File "c:\Users\User\.vscode\extensions\ms-python.python-2020.10.332292344\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 430, in main
    run()
  File "c:\Users\User\.vscode\extensions\ms-python.python-2020.10.332292344\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 267, in run_file
    runpy.run_path(options.target, run_name=compat.force_str("__main__"))
  File "C:\Program Files\Python38\lib\runpy.py", line 264, in run_path
    code, fname = _get_code_from_file(run_name, path_name)
  File "C:\Program Files\Python38\lib\runpy.py", line 234, in _get_code_from_file
    with io.open_code(decoded_path) as f:
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\Users\\User\\Documents\\Personal files\\test.py'
PS C:\Users\User\Documents\○ Personal files> 

The symbol (○) has disappeared from the path passed to python.exe. Until now, I could use Japanese as usual, so the circle symbol seems to be useless. I'm in trouble ...

Isn't there a way to do it without renaming the folder?

Let's verify which character disappears

Let's check where the Shift JIS symbol is erased. The content of the Python code is only print ("success ").

0_Half-width kana


PS C:\Users\Ika3\Documents\for test>  cd 'c:\Users\Ika3\Documents\for test'; & 'C:\Program Files\Python38\python.exe' 'c:\Users\Ika3\.vscode\extensions\ms-python.python-2020.10.332292344\pythonFiles\lib\python\debugpy\launcher' '63779' '--' 'c:\Users\Ika3\Documents\for test\0_Half-width canary\test.py' 
Traceback (most recent call last):
(abridgement)
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\Users\\Ika3\\Documents\\for test\\0_Half-width canary\\test.py'
PS C:\Users\Ika3\Documents\for test\0_Half-width kana. "", ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・ ・> 

1_Ordinary sign


PS C:\Users\Ika3\Documents\for test>  cd 'c:\Users\Ika3\Documents\for test'; & 'C:\Program Files\Python38\python.exe' 'c:\Users\Ika3\.vscode\extensions\ms-python.python-2020.10.332292344\pythonFiles\lib\python\debugpy\launcher' '63788' '--' 'c:\Users\Ika3\Documents\for test\1_Ordinary symbol ,. ,. :;? !! ` ^  ̄_ ヽ ヾ ゝ ゞ 〃 〆 〇 ー / \ ~ | () [] [] {} <> 《》 “” [] + - = < > ¥ $ ¢ £% # & * @ 〒〓¬Å\test.py' 
Traceback (most recent call last):
(abridgement)
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\Users\\Ika3\\Documents\\for test\\1_Ordinary sign\u3000 ,. ,. :;? !! ` ^  ̄_ ヽ ヾ ゝ ゞ 〃 〆 〇 ー / \ ~ | () [] [] {} <> << >> "" "" [] +-= <> \ $ ¢ £% # &
*@〒〓¬Å\\test.py'
PS C:\Users\Ika3\Documents\for test\1_Ordinary symbol ,. ,. ・: ;? !! ヽ ` ¨ ^  ̄_ ヽ ヾ ゝ ゞ 〃 仝 〆 〇 ー -- / \ ~ ∥ |… ‥'' "" () [] [] {} <> << >> "" "" [] +- ± × ÷ = ≠ < > ≦ ≧ ∞ ∴♂♀ ° ′ ″ ℃ ¥ $ ¢ £% # & * @ § ☆ ★ ○ ● ◎ ◇ ◆ □ ■ △ ▲ ▽ ▼ ※ ⊇⊂⊃∪∩∧∨¬⇒⇔∀∃ ・ ∠⊥⌒∂∇≡ ≒ ≪≫√∽∝∵∫∬Å ‰ ♯♭ ♪ † ‡¶◯>

2_Full-width numbers, etc.


PS C:\Users\Ika3\Documents\for test>  cd 'c:\Users\Ika3\Documents\for test'; & 'C:\Program Files\Python38\python.exe' 'c:\Users\Ika3\.vscode\extensions\ms-python.python-2020.10.332292344\pythonFiles\lib\python\debugpy\launcher' '63734' '--' 'c:\Users\Ika3\Documents\for test\2_Double-byte characters 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\test.py' 
success
PS C:\Users\Ika3\Documents\for test\2_Double-byte characters 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz> 

3_Ordinary kana kana


PS C:\Users\Ika3\Documents\for test>  cd 'c:\Users\Ika3\Documents\for test'; & 'C:\Program Files\Python38\python.exe' 'c:\Users\Ika3\.vscode\extensions\ms-python.python-2020.10.332292344\pythonFiles\lib\python\debugpy\launcher' '63742' '--' 'c:\Users\Ika3\Documents\for test\3_Ordinary kana kana Bepe Almost Pomami Mumemoyayuyuyoyorarirurerowa
I'm sorry, I'm sorry, I'm sorry, I'm sorry, I'm sorry, I'm sorry, I'm sorry, I'm sorry, I'm sorry, I'm sorry, I'm sorry, I'm sorry, I'm sorry. Ka\test.py' 
success
PS C:\Users\Ika3\Documents\for test\3_Ordinary kana kana Bepe Almost Pomami Mumemo Yayu Yuyo Yorari Rurero ゎ Wow ゑ
Iweeookagakigikugukegekogosazajijisuzusezesozotadachijitsuzutedetodonaninune nohabapahibipifubupuhebepehobopomamimume yayuyoyorarirurero wa wa ヱ>

4_Greek letters


PS C:\Users\Ika3\Documents\for test>  cd 'c:\Users\Ika3\Documents\for test'; & 'C:\Program Files\Python38\python.exe' 'c:\Users\Ika3\.vscode\extensions\ms-python.python-2020.10.332292344\pythonFiles\lib\python\debugpy\launcher' '63747' '--' 'c:\Users\Ika3\Documents\for test\4_Greek letters ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψω\test.py' 
success
PS C:\Users\Ika3\Documents\for test\4_Greek letters ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψω> 

5_Cyrillic


PS C:\Users\Ika3\Documents\for test>  cd 'c:\Users\Ika3\Documents\for test'; & 'C:\Program Files\Python38\python.exe' 'c:\Users\Ika3\.vscode\extensions\ms-python.python-2020.10.332292344\pythonFiles\lib\python\debugpy\launcher' '63754' '--' 'c:\Users\Ika3\Documents\for test\5_Cyrillic АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЯабвгдеёжзий клмно прстуфхцчшщъыьэюя\test.py' 
success
PS C:\Users\Ika3\Documents\for test\5_Cyrillic АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЯабвгдеёжзий клмно прстуфхцчшщъыьэюя> 

6_Ruled line


PS C:\Users\Ika3\Documents\for test>  cd 'c:\Users\Ika3\Documents\for test'; & 'C:\Program Files\Python38\python.exe' 'c:\Users\Ika3\.vscode\extensions\ms-python.python-2020.10.332292344\pythonFiles\lib\python\debugpy\launcher' '63797' '--' 'c:\Users\Ika3\Documents\for test\6_Ruled line\test.py' 
Traceback (most recent call last):
(abridgement)
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\Users\\Ika3\\Documents\\for test\\6_Ruled line\\test.py'
PS C:\Users\Ika3\Documents\for test\6_Ruled line ─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂> 

7_Machine-dependent characters


PS C:\Users\Ika3\Documents\for test>  cd 'c:\Users\Ika3\Documents\for test'; & 'C:\Program Files\Python38\python.exe' 'c:\Users\Ika3\.vscode\extensions\ms-python.python-2020.10.332292344\pythonFiles\lib\python\debugpy\launcher' '63768' '--' 'c:\Users\Ika3\Documents\for test\7_Machine-dependent characters Ⅰ Ⅱ Ⅲ Ⅳ Ⅴ Ⅵ Ⅶ Ⅷ Ⅸ Ⅹ ㍉ ㌔ ㌢ ㍍ ㌘ ㌧ ㌃ ㌶ ㍑ ㍗ ㌍ ㌦ ㌣ ㌫ ㍊ ㌻ ㎜ ㎝ ㎞ ㎎ ㎏\test.py' 
Traceback (most recent call last):
(abridgement)
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\Users\\Ika3\\Documents\\for test\\7_Machine-dependent characters Ⅰ Ⅱ Ⅲ Ⅳ Ⅴ Ⅵ Ⅶ Ⅷ Ⅸ Ⅹ ㍉ ㌔ ㌢ ㍍ ㌘ ㌧ ㌃ ㌶ ㍑ ㍗ ㌍ ㌦ ㌣ ㌫ ㍊ ㌻ ㎜ ㎝ ㎞ ㎎ ㎏\\test.py'
PS C:\Users\Ika3\Documents\for test\7_Model-dependent character ①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ · ㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡㍻ "" №㏍℡㊤㊥㊦㊧㊨㈱㈲㈹㍾㍽㍼ ≒ ≡∫∮Σ √⊥∠∟⊿∵∩∪> 

result

Is it related to Unicode kettle? maybe? I don't know anything about that, so the results are different! I can only say ...

Disappear

--0_ Half-width kana ¡" ”, ・ ・ ・ ・ ・ ・ ・ ・ ・

―― 1_ Ordinary sign ・ ゜ ´¨―-∥… ‥'' “” ± × ÷ ≠ ≦ ≧ ∞ ∴♂♀ ° ′ ″ ℃ § ☆ ★ ○ ● ◎ ◇ ◆ □ ■ △ ▲ ▽ ▼ * → ⊂⊃∪∩∧∨⇒⇔∀∃ ・ ∠⊥⌒∂∇≡ ≒ ≪≫√∽∝∵∫∬ ‰ ♯♭ ♪ † ‡¶◯

―― 6_ Ruled line (annihilation) ─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂

―― 7_ Machine-dependent characters ①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳ ・ №℡ ≒ ≡∫∮∑√⊥∠∟⊿∵∩∪

Not disappear

--0_ Half-width kana -Sashisuseso Sashisuseso Sashisuseso Sashisuseso Sashisuseso Sashisuseso Sashisuseso Sashisuseso Sashisuseso Sashisuseso Sashisuseso Sashisuseso Sashisuseso Sashisuseso

―― 1_ Ordinary sign ,. ,. :;? !! ` ^  ̄_ ヽ ヾ ゝ ゞ 〃 〆 〇 ー / \ ~ | () [] [] {} <> << >> "" [] +-= <> \ $ ¢ £% # & * @ 〒〓¬Å

―― 2_ Double-byte number system

―― 7_ Machine-dependent characters ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡㍻〝〟㏍㊤㊥㊦㊧㊨㈱㈲㈹㍾㍽㍼

Reference page

https://seiai.ed.jp/sys/text/java/shiftjis_table.html

Recommended Posts

Can VS Code be debugged if the path contains certain symbols? (Python)
Have python check if the string can be converted / converted to int
Try touching the micro: bit with VS Code + Python
If you want Python completion in VS Code, Microsoft Python Language Server is the best story
The story that Python stopped working with VS Code (Windows 10)
I want to be able to run Python in VS Code
Python with VS Code (Windows 10)
Debug Python with VS Code
Python standard module that can be used on the command line
[Python] Code that can be written with brain death at the beginning when scraping as a beginner