Commit Graph
2296 Commits
Author SHA1 Message Date
Ilya.Kazakevich d48ce2af51 PY-27267: swap diff in pytest (Sync tcmessages and add test)
Actual and expected are in wrong order.
Fixed on tcmessages side, test added.

Use swapdiff in pytest.ini to switch it back
2018-08-24 17:56:25 +03:00
Alexander Koshevoy 51c5586d97 PY-18029 Move auto-generated Thrift structures to com.jetbrains.python.console.protocol package 2018-08-22 23:16:40 +03:00
Alexander Koshevoy f557409430 PY-18029 Fix Thrift to work with Jython 2.7.1
Jython 2.7.1rc1 uses the new bytecode value of `LOAD_ATTR` command. It matches the bytecode value for CPython 2.7. Previous Jython 2.7.0 release (and 2.7.1 betas) contained the bytecode value taken from CPython 2.5.
2018-08-22 23:16:40 +03:00
Alexander Koshevoy 6ec3ff167f PY-18029 Fix TTransportException on Python Console restart 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 6de6e4ab07 PY-18029 Fix Jython and PyPy errors by replacing sys.getsizeof() invocation with len() 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 85075bc691 PY-18029 Fix Thrift to work with Jython
* Change relative import `from .lexer import *` that Jython fails on to the absolute import
* Provide special treatment for generating `__init__` function in Jython using `org.python.core.PyBytecode`
2018-08-22 23:16:40 +03:00
Alexander Koshevoy 3447bf33b7 PY-18029 Use TSingleThreadedServer instead of TThreadedServer 2018-08-22 23:16:40 +03:00
Alexander Koshevoy ea01237229 PY-18029 Fix broken encapsulation for rpc_client field of InterpreterInterface in _rpc_server method
Also fix possible race condition for setting and accessing `InterpreterInterface.rpc_client` field.
2018-08-22 23:16:40 +03:00
Alexander Koshevoy 4f0f3f5b31 PY-18029 _jetbrains_ply and _jetbrains_thrift renamed to _shaded_ply and _shaded_thrift respectively 2018-08-22 23:16:40 +03:00
Alexander Koshevoy b6235504f3 PY-18029 Remove irrelevant comments 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 293749d5df PY-18029 Make Python console process terminate when the main thread stops 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 3cc6f118d8 PY-18029 Make PythonConsoleBackendService.getArray throw UnsupportedArrayTypeException 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 82457d6510 PY-18029 Rename thrift_communication to protocol and explicitly name protocol entities there 2018-08-22 23:16:40 +03:00
Alexander Koshevoy c375d018cf PY-18029 Move communication scripts from pydev_console to _pydev_comm package 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 7609ab5459 PY-18029 Update logger category after thrift package renaming 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 8069e977c3 PY-18029 Fix Python unittests for Python Console 2018-08-22 23:16:40 +03:00
Alexander Koshevoy b65b8f1798 PY-18029 Add explanation for enable_thrift_logging() method 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 0dc7fca983 PY-18029 Fix completion for IPython console 2018-08-22 23:16:40 +03:00
Alexander Koshevoy b59159d78e PY-18029 Fix IPython console 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 9dc2f17d6e PY-18029 Rename Python Console Thrift services
* Rename `PythonConsole` to `PythonConsoleBackendService`.
* Rename `IDE` to `PythonConsoleFrontendService`.
2018-08-22 23:16:40 +03:00
Alexander Koshevoy 5bafd02a11 PY-18029 Comments added to link pydevd_thrift.py and pydevd_xml.py files 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 1f88db7ed7 PY-18029 Fix unconventional method parameter name and remove unused argument 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 7a86836302 PY-18029 Remove temporary comments and correct documentation for pydevd_thrift methods 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 0212297426 PY-18029 Move methods for building Python console protocol structures from pydevd_vars to pydevd_thrift 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 338b9fc572 PY-18029 Remove pydev_run_in_console.py
This script is no longer used in PyCharm but it requires changes after switching to new transport.
2018-08-22 23:16:40 +03:00
Alexander Koshevoy 7dba25bb00 PY-18029 Remove obsolete todos and commented-out code from .py files 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 3aaae389a6 PY-18029 Handle TBidirectionalClientTransport.close() more strictly
Set `_is_closed` flag on `TBidirectionalClientTransport.close()` method execution.
2018-08-22 23:16:40 +03:00
Alexander Koshevoy ed7371ac47 PY-18029 Remove obsolete todos 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 35c14d4919 PY-18029 Rename MultiplexedSocketReader methods
Rename MultiplexedSocketReader methods to depict their logic more accurately.
2018-08-22 23:16:40 +03:00
Alexander Koshevoy b8d065a083 PY-18029 Remove unused local variable 2018-08-22 23:16:40 +03:00
Alexander Koshevoy c651760610 PY-18029 Remove unused sz argument 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 2c78bdb784 PY-18029 Cleanup console thrift documentation 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 2986b28f28 PY-18029 Shadow thriftpy and ply modules
Add `_jetbrains_` prefix to `thriftpy` and `ply` module names to shadow the original package names that could be used in the user codebase.
2018-08-22 23:16:40 +03:00
Alexander Koshevoy bdc5a3b50e PY-18029 Move thriftpy to third-party dependencies for Python helpers 2018-08-22 23:16:40 +03:00
Alexander Koshevoy a8f83044a2 PY-18029 Fix Python console for Docker and Docker Compose
* Use `server` mode for Python console.
* Support `port` parameter for `server` mode.
* Wait for `server` to be started and then try to connect.
2018-08-22 23:16:40 +03:00
Alexander Koshevoy ad8e9d0436 PY-18029 Finish Python Console improvements 2018-08-22 23:16:40 +03:00
Alexander Koshevoy e53664704e PY-18029 Catch up changes for PY-29468 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 51f617151a PY-18029 Synchronous process of client requests from different threads 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 29b064ada5 PY-18029 Fix for problem with overlapping reads from different threads 2018-08-22 23:16:40 +03:00
Alexander Koshevoy d45d732059 PY-18029 Remove superfluous value prefix with class name 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 0cf8352574 PY-18029 Fix-up for initial pydev console changes 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 9b99c525da PY-18029 do_get_completions() method added to BaseInterpreterInterface 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 5cf8ece2cb PY-18029 Fix-up for initial pydev console changes 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 37970d548d PY-18029 Fix-up for Thrift on PyCharm helpers side under construction 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 9efbfda7f0 PY-18029 Fix-up for temporary copy of thriftpy module 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 6e3f2d2d75 PY-18029 Fix-up for temporary copy of thriftpy module 2018-08-22 23:16:40 +03:00
Alexander Koshevoy e92781d7bb PY-18029 Fix-up for the initial console.thrift commit 2018-08-22 23:16:40 +03:00
Alexander Koshevoy d4c1dc28f3 PY-18029 Fix-up for initial pydev console changes 2018-08-22 23:16:40 +03:00
Alexander Koshevoy ebf9cd5577 PY-18029 Fix-up for the initial console.thrift commit 2018-08-22 23:16:40 +03:00
Alexander Koshevoy 010e0e8d51 PY-18029 Python console Thrift communication implemented on Python side
A fix-up required for Python console tests!
2018-08-22 23:16:40 +03:00