Commit Graph

135 Commits

Author SHA1 Message Date
Egor.Eliseev
8eb7aff612 PY-36151 Can't create Pool in multiprocessing in Python Console
Merge-request: IJ-MR-117377
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

GitOrigin-RevId: a2770b4c9eede71c732e251f1f1bfddcad4bd36b
2023-12-11 13:17:05 +00:00
Egor Eliseev
468d1b6aa5 PY-57783 Print RuntimeError for AsyncioInteractiveConsole
IJ-CR-102796

GitOrigin-RevId: 0fa707774a9055727e1c380be15a57b59b8cbf51
2023-02-21 10:10:52 +00:00
Egor Eliseev
a7f952c863 PY-39157 Add Asyncio REPL
Add '-m asyncio' flag handling.
Add new asyncio InteractiveConsole implementation.

IJ-CR-97777

GitOrigin-RevId: a3b7f79a7bed5d120fc0f7a073c214d1f2572084
2022-11-08 20:55:55 +00:00
Andrey Lisin
c210c28ab5 PY-49453 Replace the rest of deprecated methods in debugger
(cherry picked from commit f6f7f0ffed6cd2d51410e9fe07267f813b4c4ff1)

IJ-MR-22034

GitOrigin-RevId: eff02449dcab685184cb9c7d4e86fb9766fb5196
2022-05-24 13:07:16 +00:00
Alexander Koshevoy
1c979e5aa3 PY-51691 Fix "NameError: name 'traceback' is not defined" on handling user-code triggered exception in Python Console
GitOrigin-RevId: 0b3e745842f32bd01fce2bd4fcafaa438f70177e
2021-12-01 16:15:51 +00:00
Egor Eliseev
928032de8c PY-31820 Execution queue in Python Console
Add execution queue to Python Console

GitOrigin-RevId: 5b007c72720e2e3dd2c1edf6ca499cfe2c8967cd
2021-09-30 11:50:53 +00:00
Elizaveta Shashkova
31e4f64e54 PY-49160 Get rid of classes with the same names in Python Console backend and add brief docs
GitOrigin-RevId: 1ebf7b62c8e05744a7cf1dd5ac6c2b3f6bf58686
2021-06-07 16:27:45 +00:00
Elizaveta Shashkova
729f4f5982 PY-30650 Revert frame caching in Python Console
Frame caching revealed several concurrency issues, both on Java and Python side. Implement proper frame caching later

GitOrigin-RevId: 7f0affb4891005e6a6500478c8cdb05df1bb406b
2020-10-21 12:39:58 +00:00
Elizaveta Shashkova
8cfe5a0921 PY-30650 Add frame caching for Python Console
Add frame caching, because platform UI loads Variables View twice for the same command. Also fix corresponding issues: 1. Updating & reading variables values from different threads on Python side should be synchronised 2. Report loaded async values to all value nodes, not only to the last one

GitOrigin-RevId: 3b67282fc3afe1cbdd175edd6d5f34a59ef493af
2020-10-16 14:34:08 +00:00
Elizaveta Shashkova
26ecad60eb IDEA-CR-58711: PY-38658 Breakpoints don't work if a module is named protocol.py
Do not add protocol.py to ignored files during automatic generation

Signed-off-by: Elizaveta Shashkova <Elizaveta.Shashkova@jetbrains.com>

GitOrigin-RevId: a2075419ea118ac66a2061ebeb8d2e15198e645a
2020-02-25 09:05:49 +00:00
Elizaveta Shashkova
47395ba426 IDEA-CR-51285: PY-37124 Rename Python Console util files with pydev prefix
GitOrigin-RevId: 50fd68a8768a194c7aaec750fb44964d05d0cebb
2019-08-12 20:04:58 +03:00
Rustam Vishnyakov
123242c4b2 EditorConfig documentation test
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
2019-06-16 04:03:21 +03:00
Egor Zhdan
c1813cfb52 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-16 04:02:08 +03:00
Anna Kozlova
91f7445298 constructor reference: don't ignore constructor parameters during method reference inference (IDEA-185578)
GitOrigin-RevId: e836468e05db28157713e9edd3c70382f8ecdebc
2019-06-13 03:15:49 +03:00
Egor Zhdan
39d2d77155 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-13 03:14:35 +03:00
Julia Beliaeva
3fee046d20 [vcs-log] cleanup RootCellRenderer
GitOrigin-RevId: bba216626193ac756cd133b8ae9bc4e577abea42
2019-06-10 04:10:14 +03:00
Eldar Abusalimov
dcaeb8f8c7 OC-4061: ApplicationUtil: Make runWithCheckCanceled() return result
GitOrigin-RevId: 3aa9f23cc5097e644eddf82a4faca669759b4760
2019-06-10 04:09:35 +03:00
Elizaveta Shashkova
a4e5a2193c PyDev: Fix for #PyDev-860: pydev console doesn't die after eclipse crash
GitOrigin-RevId: 6966d6ac5ea115f741268b09796484bcc3c43011
2019-06-07 17:10:26 +03:00
Elizaveta Shashkova
d7bd9cf2ad PY-31451 Fix hidden IPython variables after Console update 2019-02-18 22:29:49 +03:00
Anton Bragin
68dbcde8f0 PY-29742 Jupyter notebooks support redesigned
Changes necessary to provide new scientific notebooks support with separated source code editor and output preview.
2019-02-18 22:29:45 +03:00
Alexander Koshevoy
17ac07087b PY-32819 Fix ignoring updates of global variables in Python console 2018-11-23 18:42:03 +03:00
Elizaveta Shashkova
1aec31a592 PY-32531 (refix PY-31650) TypeError: argument of type 'NoneType' is not iterable
Revert saving module by its name and fix name when running with Python Console
2018-11-07 14:19:34 +03:00
Elizaveta Shashkova
c34146bd34 PY-31650 Do not override original module when saving __main__ 2018-10-30 15:44:36 +03:00
Alexander Koshevoy
afe529a1f8 Make PyDev debugger independent from Thriftpy library
- Extract `get_ipython_hidden_vars()` and `console_exec()` methods from pydevconsole.py to pydev_console_integration.py.
- Make `DebugConsole` derive from `BaseCodeExecutor`.
2018-09-04 12:02:28 +03:00
Alexander Koshevoy
09a1da7eea Extract Command PyDev class to pydev_console_types.py 2018-09-04 12:02:28 +03:00
Alexander Koshevoy
a62968901b Extract CodeFragment PyDev class to pydev_console_types.py 2018-09-04 12:02:28 +03:00
Alexander Koshevoy
0dfa56eee4 Extract StdIn PyDev classes of to pydev_stdin.py 2018-09-04 12:02:28 +03:00
Elizaveta Shashkova
c8864c4f08 Fix saving variables after "Run with Python Console" 2018-08-30 12:31:12 +03:00
Elizaveta Shashkova
04fafbb47d PY-31405 Save main module and update variables after exception in file run in Console 2018-08-30 12:31:12 +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
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
b65b8f1798 PY-18029 Add explanation for enable_thrift_logging() method 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
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
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
51f617151a PY-18029 Synchronous process of client requests from different threads 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
Alexander Koshevoy
0231afbf64 PY-18029 Thrift on PyCharm helpers side under construction 2018-08-22 23:16:40 +03:00
likaiguo
84cc39af85 Ignore unicode error in Python Console 2018-08-08 15:42:51 +03:00
Elizaveta Shashkova
c25e0b5778 Disable IPython completion for speed (PY-30222) and correct types showing (PY-30611)
IPython completion works very slow in some cases and becomes useless. It's better to make completion less detailed, but
2018-07-17 12:51:13 +03:00
Elizaveta Shashkova
23d832154c Attribute error while loading matplotlib with qt5 (PY-26652)
Detect PyQt backend for Qt api
2017-12-12 17:10:27 +03:00
Elizaveta Shashkova
d7e088bbe8 Handle connection errors properly (PY-21426) 2017-12-07 16:06:39 +03:00
Elizaveta Shashkova
41305bba5c "Show command line afterwards" doesn't work with Remote Interpreter (PY-21426)
Wait for handshake event before sending a notification about console start
2017-12-06 17:32:19 +03:00
Elizaveta Shashkova
bfbbb8a750 No interactive output from IPython console (PY-26479)
Do not patch sys.stdout to postpone banner showing, just call an appropriate function before execution of greeting message.
2017-12-04 14:50:26 +03:00
Elizaveta Shashkova
11482b4ba8 Updates from PyDev: Fix for case when python-future is installed and provides a dummy 'builtins' module even on Python 2. #PyDev-845 2017-10-19 20:22:58 +03:00