StellaHuang95 on localization
update data structure (compare)
StellaHuang95 on localization
get rid of duplicate code (compare)
StellaHuang95 on localization
add localization support (compare)
{}
to be treated as code, and we haven't seen enough demand to prioritise the work (of significantly modifying our Python parser) over other items. We'll take your comment as a vote in favour. Thanks!
{}
means a lot of parser work. It might be an acceptable intermediate solution to extend the parser that it just accepts the prefix f
for strings (like f''
and f""
), so that the parsing after the f-string is less impacted than now an that the "invalid syntax" red lines go away.
simplejson
package from PyPIsitecustomize.py
file to your Python 2.5 install that contains:import simplejson, sys
sys.modules['json'] = simplejson
Most of the problems that may occur with Python 2.5 are fixable in the .py files in our code, so feel free to modify those. We're open to merging pull requests to maintain Python 2.5 support (provided it doesn't impact later versions), but at this point we are no longer testing against Python 2.5 or 3.0.start
it just does nothing. I'm just using a simple hello world and trying to hit a breakpoint in the print instruction but nothing happens
start without debugging
it actually runs the code. It just seems that nothing is run if I just press F5
or click on Start
warning: Debugger speedups using cython not found. Run '"C:\Python27.15-x64\python.exe" "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Microsoft\Python\Core\Packages\ptvsd\pydevd\setup_cython.py" build_ext --inplace' to build.
C:\windows\system32>"C:\Python37-x64\python.exe" "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\Extensions\Microsoft\Python\Core\Packages\ptvsd\pydevd\setup_cython.py" build_ext --inplace
running build_ext
building '_pydevd_bundle.pydevd_cython' extension
creating build
creating build\temp.win-amd64-3.7
creating build\temp.win-amd64-3.7\Release
creating build\temp.win-amd64-3.7\Release\_pydevd_bundle
C:\Program Files (x86)\Microsoft Visual Studio\Preview\Professional\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Python37-x64\include -IC:\Python37-x64\include "-IC:\Program Files (x86)\Microsoft Visual Studio\Preview\Professional\VC\Tools\MSVC\14.14.26428\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\Preview\Professional\VC\Tools\MSVC\14.14.26428\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17134.0\cppwinrt" /Tc_pydevd_bundle/pydevd_cython.c /Fobuild\temp.win-amd64-3.7\Release\_pydevd_bundle/pydevd_cython.obj
pydevd_cython.c
_pydevd_bundle/pydevd_cython.c(28837): error C2039: 'exc_type': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28838): error C2039: 'exc_value': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28839): error C2039: 'exc_traceback': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28846): error C2039: 'exc_type': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28847): error C2039: 'exc_value': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28848): error C2039: 'exc_traceback': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28849): error C2039: 'exc_type': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28850): error C2039: 'exc_value': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28851): error C2039: 'exc_traceback': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28896): error C2039: 'exc_type': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28897): error C2039: 'exc_value': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28898): error C2039: 'exc_traceback': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28899): error C2039: 'exc_type': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28900): error C2039: 'exc_value': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(28901): error C2039: 'exc_traceback': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(29032): error C2039: 'exc_type': is not a member of '_ts'
c:\python37-x64\include\pystate.h(209): note: see declaration of '_ts'
_pydevd_bundle/pydevd_cython.c(29033): error C2039: 'exc_value': is not a member of '_ts'
c:\python37-x64\include\pystate.
ptvsd
team to expand that. Feel free to post issues on https://github.com/Microsoft/ptvsd requesting it :)
Microsoft.Python.LanguageServer
executable. How could I run this to verify that this is ok for my platform? Do I need any additional dependencies or specific building steps?./Microsoft.Python.LanguageServer
but there is no any output