Commit Graph

29444 Commits

Author SHA1 Message Date
Roman Shevchenko
58e9edebab Cleanup (minor optimization; typos; formatting)
GitOrigin-RevId: 386a24ada744cd2f9693f1ca71b7754575f5bbdb
2024-06-11 13:40:42 +00:00
Roman Shevchenko
702cdf6349 [project] sanitizing RemoteFile API
GitOrigin-RevId: f394c5d41b0b45746d337ded71c662522c04c6d1
2024-06-11 13:40:37 +00:00
Roman Shevchenko
fdfba15090 Cleanup (dead code)
GitOrigin-RevId: baed6465180fbdb72ca6700807a05227e4b4147c
2024-06-11 13:40:31 +00:00
lada.gagina
6815024d29 [python] packaging: ignore package name case when checking python files (PY-72202)
GitOrigin-RevId: 85280727a653ff512dfd98a7c239d8652c2e105c
2024-06-10 20:00:04 +00:00
lada.gagina
34840a5293 [pycharm] VariableView: fix "View as" action from the context menu for nested objects (PY-70538)
GitOrigin-RevId: a14373ede25a2502d0f16b39b3dd335dcd03582f
2024-06-10 19:35:10 +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
Ilya Muradyan
233d17a1df KTNB-235, PY-64586: Refactor DSTableCommandExecutor, remove dependencies on pydev that no more needed
GitOrigin-RevId: b53d3669841e36c8bf3bd092ceaa3e8de6e5b9ea
2024-06-07 18:55:29 +00:00
Nikita.Ashihmin
886b4f0716 PY-31400 Jupyter: support get envs for Notebook export
GitOrigin-RevId: 0d4f3959e20e0bfbd51236333c24f69eccc7785a
2024-06-07 06:52:08 +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
ekaterina.itsenko
07668b70e3 [pycharm] PY-40977 Fixes in expression building: NestedOrderedDict case
GitOrigin-RevId: 3cd93d74ab5b98063034e646a021350033308da4
2024-06-07 04:29:28 +00:00
Petr
3f43255122 PY-73076 Ctrl+Z doesn't work in RemDev
GitOrigin-RevId: e80b54e1a43e9f83be921096a1bc3a0059795cb7
2024-06-05 17:51:13 +00:00
Andrey Lisin
c2a7096de3 Cleanup: replace getTags() method with @EnvTestTagsRequired annotation
GitOrigin-RevId: 60aa962e74b98616275aac268604d9c18a38cd0d
2024-06-04 17:05:36 +00:00
Andrey Lisin
02b978c825 PY-61217 Put subprocess tests together to follow logical order
GitOrigin-RevId: a94104fd67b7c24d25845eab3277262251c5f92b
2024-06-04 17:05:29 +00:00
Andrey Lisin
4959962158 PY-61217 Run subprocess debugging tests on all CPython versions since they now pass on CPython 3.11 and 3.12
GitOrigin-RevId: 074f70e260d302b119c4e64952b5a56c5e0ad661
2024-06-04 17:05:23 +00:00
Evgeny Abramov
cc938f1533 ML-based ranking in the plugin manager
(MP-6452) Fix failing project structure and packaging tests

(MP-6452) Make sure that machine learning score is calculated correctly for each plugin

Previously, there was a cache with mutable list of features. There were two issues with it. First, because of mutability, it could store mlScore for a different query sometimes. Second, there were no guarantees on consequent call of ranking and features logging before the next ranking event happens, so the feature cache could be inconsistent in certain scenarios.

(MP-6452) Introduce search index in plugin manager events that corresponds to actual query order

I also change the definition of plugin manager session. The session is restarted only in two cases: when a user clicks on the Plugins section in settings or when the search is restarted after a plugin installation.

(MP-6452) Add additional features: is result ordered by ML, is user internal, experiment group and version

(MP-6452) Fix missing date of latest plugin update, add days since latest updates and textual features

(MP-6452) Apply suggestions from the code review

(MP-6452) Integrate the ranking plugin with the search and the logging group

In feature extractors, during the first run, I calculate the features for a model to predict plugin relevance and on the second run the features to report to the MP collector (with predicted score, for example). I also implement features cache to calculate the most of the features only once

(MP-6452) Implement the baseline plugin manager session id definition and log it to FUS and MP recorders

I attach the start of a session to enableSearch method of PluginManagerConfigurable that gets triggered on "Plugins" setting group selection in the menu

(MP-6452) Add plugin for plugins ranking in the Plugin Manager

ML in SE: add embedding search integration test subsystem tag


Merge-request: IJ-MR-130364
Merged-by: Evgeny Abramov <Evgeny.Abramov@jetbrains.com>

GitOrigin-RevId: 9136d316aec2ede74bec07798dd8db16e7849f54
2024-06-04 14:58:32 +00:00
Nikita.Ashihmin
80aad882d5 PY-73024 Jupyter(feat): Show waring and suggest update if notebook 6.x and python 3.7+, remove install jupyter warning
GitOrigin-RevId: 0de65c84f3cfc38436ace59034a9c5ce3909eb38
2024-06-03 17:33:38 +00:00
Daniil Kalinin
1cfcce3b7a PY-54356 fix "Callable | None" raises the warning "Cannot find reference '|' in 'Callable'"
Previously, there was no chance to resolve `__or__` member for class references like `Callable`, `Generic` as its type is PyCustomType that always returns `null` from getMetaClassType(). Now in operator references we at least resolve such references in types which PyCustomTypes mimic to

GitOrigin-RevId: ff05ae62e4c1a17026310a3407f40597154bc946
2024-06-03 17:32:16 +00:00
Nikita.Ashihmin
29ba1de2df PY-62599 PY-73022 Jupyter: Show dialog with suggestion to install Jupyter if not found, start work with jupyter-lab managment server
GitOrigin-RevId: 14f1860783d66a776b7d9a27e38ebb3f97a4664b
2024-06-03 15:57:41 +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
Maxim.Kolmakov
71168cb8a9 IJ-CR-135039 Replace usages of PlatformTestUtil.newPerformanceTest with PerformanceTestUtil.newPerformanceTest
GitOrigin-RevId: 4edcfadc23f7305d68b8c08cd6ae634ee4869a2e
2024-06-03 10:14:22 +00:00
Sergey Simonchik
9b5b7f47f4 [platform] replace LocalPtyOptions.DEFAULT with LocalPtyOptions.defaults() to set proper default for useWinConPty
Fixes regression after 3e64ed7c56ad4ffa68b23b6723122b11cdb09182: `LocalPtyOptions.useWinConPty` was always false leading to different rendering issues on Windows, like long line are hard wrapped with actual line separators preventing text reflow on horizontal resize.

GitOrigin-RevId: 0381aa1008eabc8ac16423424b34c4458e12c680
2024-06-02 18:08:00 +00:00
Nikita.Ashihmin
4b4a1c5abd PY-43407 SciView(feat): Add notification to install package to see preview
GitOrigin-RevId: ab4c6ff14ce0ec8aeb3e8634cf8228078ad649b2
2024-06-01 08:50:44 +04:00
Nikita.Ashihmin
05c9e88933 PY-72961 Packaging: show numpy info and other md descriptions
GitOrigin-RevId: 8b25964eeae581e09dc928a864b9c4d7693f7d48
2024-06-01 08:50:40 +04:00
Nikita.Ashihmin
7784b15d36 PY-61458 Packages: Python Packages tool window takes a lot of time to load installed packages
GitOrigin-RevId: 8473f7c68d6c4fde55d21642515ff0dde7c06063
2024-05-30 21:00:21 +00:00
Nikita Pavlenko
5fbfd19134 [pycharm] PackageManager (fix): "Delete Package", "Reload All Repositories" and "Manage Repositories" actions will not be disabled duting indexing. #PY-49280 Fixed
GitOrigin-RevId: d1f1cf553dd4c01fc3fe900bd55a228ec599db90
2024-05-30 15:16:09 +00:00
Bogdan Kirilenko
e85278a3fc [pycharm] PY-63671 minor text fixes
GitOrigin-RevId: 9ce0a8eac3ce685076445739ab3255f6c82068e2
2024-05-30 11:46:01 +00:00
Petr
35ab642bdb [python] Lift typed dict keys higher in completion lookup
GitOrigin-RevId: 82be304d1187fb464eb45ff467e99cf8c41064c1
2024-05-29 19:22:44 +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
Vladimir Koshelev
0061a98279 PY-72872 support collecting python.packages.in.editor for template languages
GitOrigin-RevId: 02646f3d8468765dae3c0a6624f9b5f776c02647
2024-05-28 14:15:51 +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
8322bb476d PY-55086 Do not report raising a BaseException instance directly
See https://docs.python.org/3/reference/simple_stmts.html#the-raise-statement.
I decided not to update the inspection description, because BaseException is not
intended to be inherited by user classes.
The check for Exception was removed because Exception itself extends BaseException.

GitOrigin-RevId: 5782c9351aebb524c4d0fc0c9f3307d8db682efb
2024-05-28 01:10:12 +00:00
Mikhail Golubev
46d7223d9f PY-70528 Refactor handling of the *Ts and Unpack[Ts] syntax in type hints
to have better code re-use between PEP 692 and PEP 646 implementations.

GitOrigin-RevId: 39d714fcb14ba1014099fd57325c5185df34ce45
2024-05-28 01:10:09 +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
Petr
c8509ccc80 [python] Support TypeVarTuple from typing_extensions
GitOrigin-RevId: 02ed108a55d3feed54d95bfb5552f31cdf3e4880
2024-05-24 22:15:34 +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
fcf45f1916 PY-42044 Actualize name of environment variable passed to Python
GitOrigin-RevId: 43c2d4a05de5e3056df50eb646b1a3f7b8c41e21
2024-05-23 21:47:23 +00:00
Andrey Lisin
27f59eda0b PY-42044 Actualize registry key name
GitOrigin-RevId: d1376bab2aebea916bdb936369471e7d87058865
2024-05-23 21:47:18 +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
Andrey Lisin
fa2da2138c PY-42044 Move debugger registry flag application in separate method
GitOrigin-RevId: 903a451d23696c00ec0df080ceddb900a6aef07c
2024-05-23 21:47:02 +00:00
Andrey Lisin
f35c09d9b7 PY-42044 Add feature flag
GitOrigin-RevId: 981da1740cd73738e6443cf530f8ba9b422bd5ca
2024-05-23 21:46:57 +00:00