Commit Graph

3571 Commits

Author SHA1 Message Date
Natalia.Murycheva
c4b259368d [PyCharm Tables] PY-73641 ... in tables instead of values #PY-73252 Fixed
* fixed polars case

GitOrigin-RevId: 259d170d79afbddf97a99e62b27685255aaf6d12
2024-07-05 16:32:23 +00:00
Pavel Karateev
7309a62c8c PCQA-466 Specify pydevd test envs in tox.ini
We can avoid specifying versions here, but ...

1. It won't be possible to run tests locally without checking what
   versions are supported (going to TeamCity config)
2. It won't be possible to specify dependencies for each Python
   version separately when it is required (not yet, but will be soon)

Hardcoding Python versions in two places for `pydevd` tests looks
ugly, but at the moment I have no better ideas. Will investigate as
a separate task in PCQA-447


(cherry picked from commit cc9e50cd7a742b8265497cdc56a49a6be0db38a8)

IJ-MR-138586

GitOrigin-RevId: 717d434d6fd72a6cb6ac0a361917ad22e8e62687
2024-07-03 17:30:19 +00:00
Natalia.Murycheva
f721a69556 PY-73641 ... in tables instead of values
* added setter option for max_rows

GitOrigin-RevId: 3cedda6ac4e9aa4dfcb0bda80111198bf8341e0a
2024-07-02 22:14:44 +00:00
Natalia.Murycheva
873b88a98f PY-72210 minor changes
* removed unnecessary get_value_counts for statistics, as it's redundant
    * removed the corresponding test
* fixed computing VISUALIZATION_DATA for tables in DataView, now visualizations are shown
* minor cleanup: got rid of unused variables

GitOrigin-RevId: 1772fd5cad8ba5777795460fca484e90d0ccef82
2024-07-02 22:14:40 +00:00
ekaterina.itsenko
16c75007f3 [pycharm] PY-71967 Remove unused imports
GitOrigin-RevId: 4c5e1094d1b86eb6b473daed599e37cab5f8dba3
2024-07-02 19:14:38 +00:00
ekaterina.itsenko
997640f4ac [pycharm] PY-71967 Fix sorting and indices
GitOrigin-RevId: 37769066f814b5406684ba7d0d4276309aa28dd4
2024-06-28 17:37:07 +00:00
ekaterina.itsenko
a490bab8c2 [pycharm] PY-70312 Fix everything except charts
GitOrigin-RevId: dc4ef94d776105260e0b4d0965a08bfaf1165268
2024-06-28 15:04:17 +00:00
Andrey Lisin
a7c8aaa04c PY-73427 Check if shape attribute is safe to access before evaluating it
GitOrigin-RevId: cf74c2c49235f60811ed9419a96dabe081f74b70
2024-06-28 14:58:59 +00:00
Andrey Lisin
5c4c5ad909 Revert "PY-73427 Experiment: always load self variable in safe manner"
This reverts commit dcdf3d070f71e3ad47055fc7620d4d53e5fc3c4f.

GitOrigin-RevId: 3f33fd05916cc4bed1c5f9ed9a2a30e608d94f76
2024-06-28 14:58:56 +00:00
Andrey Lisin
209c9d230e IJ-CR-138109 Acquire lock for entire get_instance() call
This modification streamlines the code as the lock needs to be obtained during the `update_handlers()` call regardless.

GitOrigin-RevId: c5d1d7ce9d3f5c3b81b63b8e6c4a26a72db3e666
2024-06-28 10:51:40 +00:00
Nikita.Ashihmin
7d6b08211f PY-71958 Plots(fix): Interactive mode in Python Plots show plot of fixed size, ignores figsize
GitOrigin-RevId: 48c072bcbfb6825dce0c0a8ecce5c046a88419d9
2024-06-28 09:06:32 +00:00
Andrey Lisin
fb6b4f42d4 PY-73549 Make initialization of variable handlers thread-safe
GitOrigin-RevId: eb4e0b566015efe92ed91604f20f38b64e74143b
2024-06-27 12:21:44 +00:00
Andrey Lisin
01c2920b53 PY-73427 Experiment: always load self variable in safe manner
GitOrigin-RevId: dcdf3d070f71e3ad47055fc7620d4d53e5fc3c4f
2024-06-25 18:21:10 +00:00
ekaterina.itsenko
2fc8ea1630 [pycharm] PY-71967 Add impl (except sorting in outputs -- to fix)
GitOrigin-RevId: ac079eefe71d7b32daa5e95eaef9c986ab842294
2024-06-24 20:29:15 +00:00
Pavel Karateev
b96f453d8d PY-73047 Raise RuntimeError if we cannot check if a thread is alive
(cherry picked from commit e6181c8db2d6efb2e2f010b705a72036e8e54f38)

IJ-MR-137093

GitOrigin-RevId: 03e1cab2b663399ba9569153cd8a28892a78283a
2024-06-21 14:38:43 +00:00
Pavel Karateev
2efd9fd5e2 PY-73047 Use Thread.is_alive instead of Thread._is_stopped in Python 3.13
`Thread._is_stopped` was removed in https://github.com/python/cpython/pull/114839 in Python 3.13

(cherry picked from commit d568bc288aed00268ffeef137b9b901f480964ef)

IJ-MR-137093

GitOrigin-RevId: aa8b27b09db85f69b44d6fbbd333f8ec32489d33
2024-06-21 14:38:38 +00:00
Andrey Lisin
c05ea7c662 PY-60597 Add public API functions to __all__
GitOrigin-RevId: 943d414d52a4199bd28ad0317a658e18290bc297
2024-06-21 13:48:34 +00:00
Nikita.Ashihmin
2abc99f0b6 PY-73280 Jupyter(fix) MatplotlibDeprecationWarning: The interactive_bk attribute was deprecated emitted using Pytest
GitOrigin-RevId: b8315dc475f0ea3e7ca228c34fb833c0d9b85353
2024-06-19 17:04:32 +00:00
Andrey Lisin
a42f335cf4 PY-60597 Set global debugger to None and clear thread local info when stopping tracing
The global debugger reference should be set to `None` right away. Otherwise, the reference to the stopped debugger can leak to `ThreadTracer` leading to skipped breakpoints. The same applies for the thread local info. If it is not reset, the frame evaluation code will continue using a tracing function with the stale debugger reference.

GitOrigin-RevId: 62b38316e4da760213810a55aa98db289ce45720
2024-06-19 16:18:01 +00:00
Andrey Lisin
67eef6333e PY-60597 Replace indirect finish_debugging_session() invocation though global debugger holder to avoid race condition
Consecutive `stoptrace()` -> `settrace()` calls can cause `finish_debugging_session()` call from `ReaderThread`. If by the moment of execution the global debugger holder contains the new instance of debugger, this new debug session can be marked as finished instead of the old one.

GitOrigin-RevId: faac2b9648d81c49d72f884ca6a8464699fbf9e5
2024-06-18 18:56:51 +00:00
ekaterina.itsenko
2c178f739f [pycharm] PY-73352 Add import error handling + fix error displaying
GitOrigin-RevId: 8ec269d167132e7b5b2401df78eac82f282078bb
2024-06-18 02:46:46 +00:00
Andrey Lisin
3d3aefb69d PY-60597 Make stoptrace() function available from pydevd_pycharm module
GitOrigin-RevId: 47eea1c6bd150a741a8090a151068981688d8c83
2024-06-17 20:30:31 +00:00
Natalia.Murycheva
03c0f49158 PY-72210 added ColumnStatistics icon to tables in DataView
* also fixed bug with redundant separator

GitOrigin-RevId: 7d5b07c147ff3ea0069fe09bd849016ef66f4eb8
2024-06-14 23:47:08 +00:00
Natalia.Murycheva
238ebb61de PY-72210 DataView: improve speed of get_value_occurrences_count
1. Split additional computation for statistics and computation for visualizations
2. Computation for visualization is now called only by request

GitOrigin-RevId: d872fbd9ed5732633814228713acc734ee2043e5
2024-06-14 23:47:08 +00:00
ekaterina.itsenko
1693fd94b9 [pycharm] PY-38294 Add Sparse tensors support
GitOrigin-RevId: 0b9b046ae1da37b5fd34be800fbdd6f241f7514d
2024-06-11 14:59:03 +00:00
Andrey Vokin
673383c3da PY-61651 Deprecation highlighting with PEP 702 @deprecated decorator
GitOrigin-RevId: 426e7001d20849d7029fea55431d3e2cfae3eb11
2024-06-10 15:58:53 +00:00
Ilya Muradyan
63492012b2 KTNB-235, PY-64586: Remove unused method isDisplaySupported
GitOrigin-RevId: 11e8efea1e6878672da6045ae3bb657f9f36aaa5
2024-06-10 06:17:12 +00:00
ekaterina.itsenko
4cc82ec77f [pycharm] PY-73077 Add Pandera type
GitOrigin-RevId: fb3ac2c8b6589ff238ecb877522227990d42a652
2024-06-07 19:35:15 +00:00
Nikita.Ashihmin
c71ff7773d PY-73082 Plots(fix): "SystemError: null argument to internal routine" running a script with pandas & numpy
GitOrigin-RevId: 891c0d9378d2a640f93372c81046cf6754459556
2024-06-07 06:52:03 +00:00
Andrey Lisin
af17569930 PyDev: On Python 3.11 _fork_exec now needs to be monkey-patched for subprocesses (PY-61217)
GitOrigin-RevId: 2126b45205530086aa5ec3dff630e39a5947c905
2024-06-03 13:27:37 +00:00
Andrey Lisin
dbc08a7507 PY-72009 Set global debugger after all its fields initialization
The `set_global_debugger` invocation has been moved to a later point to ensure all debugger fields are initialized first. This addresses potential issues in multithreaded environments where the debugger is accessible, but access to its fields may fail.

GitOrigin-RevId: 55dd63585f8dae94c6527d51dca3c2562b30c4ce
2024-05-29 12:59:41 +00:00
Mikhail Golubev
d99a86efeb PY-35190 Fix resolving the register method of ABCMeta
The root cause was introduced in PY-23540 (see cb598c94c5).
Namely, abs.ABCMeta was explicitly filtered out from the list of metaclasses in
`PyClassImpl.getMostDerivedClassType` because for some reason in Typeshed stubs for
Python 2 `basestring`, and hence `str`, uses `ABCMeta` as its metaclass,
which is not true at runtime. It caused a metaclass conflict when inheriting `str`
with another user-defined metaclass (`ABCMeta` and a user metaclass didn't extend
each other), so we didn't detect any metaclass in a class as a result.

I've updated Typeshed stubs for Python 2 manually to process ABCMeta normally.
We don't update these stubs anyway, so these changes won't be lost on a future
Typeshed sync.

GitOrigin-RevId: 680e9fa890d00ea63987f3cf73e636e430685f34
2024-05-28 08:41:05 +00:00
Mikhail Golubev
93ac5fe566 PY-70528 Add support for typing_extensions.TypeVarTuple and Unpack
I've add-hoc updated typing_extensions.pyi in the bundled Typeshed to
recognize Unpack there.

GitOrigin-RevId: 953402e42984712a630c1772cf2f2cd4cbacdccf
2024-05-28 01:10:05 +00:00
Andrey Lisin
f13e021a13 IJ-CR-135194 Don't try to recover if more than one thread has received exception
GitOrigin-RevId: bc644ec76c3e938677a060f9c91ea81e7a055729
2024-05-27 15:15:50 +00:00
Nikita.Ashihmin
0eb017b315 PY-43407 SciView(feat): Use preview png if required lib is installed
GitOrigin-RevId: 9983b3a0de3d7fdd882d3736db74407801a15da9
2024-05-26 15:29:54 +00:00
Nikita.Ashihmin
a72eabc428 PY-43407 SciView(feat): Add statistic of type of shown plot
GitOrigin-RevId: f7941cd0bc5ca92c15db307cc932fcacc9187fb8
2024-05-26 14:39:48 +00:00
Nikita.Ashihmin
57f19ccb36 PY-43407 SciView(feat): First Plotly support in Scientific View
GitOrigin-RevId: 9f7a56449aafc5096d6fba01dbccd049b89b68bb
2024-05-26 12:01:21 +00:00
ekaterina.itsenko
2ab68f06a1 [pycharm] PY-72380 Scientific view(bug): change iteration mechanism
GitOrigin-RevId: c8cc604fe68606950e0957f713882dfebd8e0fd9
2024-05-25 04:43:38 +00:00
Andrey Lisin
f63cf727f7 PY-42044 Also halt value resolve threads when resuming, smart stepping into, and running to line
GitOrigin-RevId: 06e032e8cf789e0976b988105319f731d9932419
2024-05-23 21:47:39 +00:00
Andrey Lisin
74ad931cfc PY-42044 Make code compatible with Python 2
GitOrigin-RevId: dcf169c791ca1ba539cbe3a123f94242504f87c6
2024-05-23 21:47:34 +00:00
Andrey Lisin
7d3b855790 PY-42044 Make debugger obey registry flag
GitOrigin-RevId: 835a196136876b8b94e58dd967086f35a9d2ed40
2024-05-23 21:47:29 +00:00
Andrey Lisin
dc937ea423 PY-42044 Clear list of debugger value resolve threads after they are stopped
GitOrigin-RevId: 9820ba6506238045f0a86a9e4deaf63a6cce2c10
2024-05-23 21:47:13 +00:00
Andrey Lisin
34305d8805 PY-42044 Kill debugger value resolve threads when stepping is performed
GitOrigin-RevId: cdc6014855211c0cf0aa3f0f9b1ade7e901fce9a
2024-05-23 21:47:08 +00:00
Egor.Eliseev
cb37afc53e PY-72060-DjangoTemplateDebuggerTest failed
Fix Log/Condition breakpoints for debugger plugins.
Fix Step Into, Step Over commands for debugger plugins


Co-authored-by: Andrey Lisin <andrey.lisin@jetbrains.com>

Merge-request: IJ-MR-132334
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

GitOrigin-RevId: b495a41fe37f61e4271d3438bab37846e0013006
2024-05-23 18:34:19 +00:00
Nikita.Ashihmin
acfac29e86 PY-49055 SciView(fix): Unable to show large plots in PyCharm with sciview.
GitOrigin-RevId: 22b75d6421d69b00123ea50605eca65cdb573b3a
2024-05-22 04:40:35 +00:00
ekaterina.itsenko
330e9b9653 [pycharm] PY-38294 Scientific view(task): fix console issues + small refactoring
GitOrigin-RevId: 51d7d24dab4a701ea31fc4f4e12896678951d794
2024-05-21 23:34:38 +00:00
Nikita.Ashihmin
a2208c4a22 PY-56669 SciView(fix): plots shown in wrong window
GitOrigin-RevId: 53573d890d8dfb87e8103a07c72fe60c94dcfd37
2024-05-20 08:04:11 +04:00
Andrey Lisin
b3ad56c1a2 PY-72239 Regenerate debugger binaries for macOS
GitOrigin-RevId: 5f57934ef1e669b8be24ac3e8c334f693cd62a20
2024-05-10 12:13:11 +00:00
Andrey Lisin
603f6d0c18 PY-72239 Regenerate debugger binaries for Windows
GitOrigin-RevId: ee3eed86eee059b330fe52ff6877304767cfaf09
2024-05-10 12:13:11 +00:00
Andrey Lisin
3e687caf67 PY-72239 Make sure PEP 669-based monitoring is activated only once
GitOrigin-RevId: 3c4b0cf7747fe7ebbca442b39c3c9234e7129180
2024-05-10 12:13:11 +00:00