microsoft / ptvsd

Python debugger package for use with Visual Studio and Visual Studio Code.
Other
548 stars 68 forks source link

sys.argv sends in unicode instead of string #2079

Closed rADikal8e7 closed 4 years ago

rADikal8e7 commented 4 years ago

Environment data

Actual behavior

Using Remote-SSH ext on local and python ext 2020.3.62207 on remote. sys.argv is of type unicode. It should have been of type str in python2

repr(sys.argv)
"[u'/root/lib/basic_sanity.py', u'-logicaldict', u'logical_dict.yml', u'-build', u'na', u'-skip_dependency']"

Expected behavior

It should match the behavior of python ext v:2020.1.58038 and send it as type str.

repr(sys.argv)
"['/root/lib/basic_sanity.py', '-logicaldict', 'logical_dict.yml', '-build', 'na', '-skip_dependency']"

Steps to reproduce:

  1. Load the PTVSD version(2020.3.62207-dev) as mentioned in #1706
  2. check the repr(sys.argv) from the debug console on vs code to be unicode.