Commit Graph

458869 Commits

Author SHA1 Message Date
Egor Eliseev
48d582644a PY-77487 UV installation
Rewrite the installation script.
Make it universal for installing any package.

Merge-request: IJ-MR-149762
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>
(cherry picked from commit 268ba9164f9e02fbef1520144486902077ad9e8a)

GitOrigin-RevId: 29eea5c5884a4c5afed6f3736691644171ea7f82
2025-01-20 23:33:36 +00:00
Aleksandr Sorotskii
03a99d573d fixup
GitOrigin-RevId: ec06f4c07039c6c14095e4cf1adc7b0049676638
2025-01-20 23:33:36 +00:00
Aleksandr Sorotskii
2873bad618 fix notification for installing packages via quickfix; #PY-72070 Fixed
(cherry picked from commit bee8b1c0431c186658c11b2f0fb33f4c26f95fee)

GitOrigin-RevId: 14417efa3be6f4785fbdf1b05505c7efd09f3a20
2025-01-20 23:33:35 +00:00
Timur Malanin
c57369d4d2 PY-72070 Add a registry key for new logic
(cherry picked from commit e4ba7ef985a72006008ba4e377aa2e50385ea0bd)

GitOrigin-RevId: d399d09949844a989b130aba119af4ca5118e8b1
2025-01-20 23:33:35 +00:00
Timur Malanin
8567a5261d PY-72070 Introduce a CompositePythonPackageManager that combines functionality from several package managers. This change also refactors the CondaPackageManager to get rid of type check of package specifications.
(cherry picked from commit 2b41be8d768d820769a749339fac64d03925b575)

GitOrigin-RevId: 6ac187b64eb2e516e228dcfda492f2f3d7f73f49
2025-01-20 23:33:35 +00:00
Sergei Tachenov
7e93970597 IJPL-171351 Only fit AbstractPopup into the screen if the flag is set
This is a bit complicated and confusing.
We have a flag to fit the popup into the screen.
However, the existing code ignored that flag and fit it anyway,
but only if the popup is too large. If it's small enough, then it was
left alone regardless of whether it's actually located fully within
the screen.

The previous fix ignored that flag as well, but fit the popup
into the screen in all cases. Which meant the flag was now useless.

So to keep it working for both cases, let's actually check that flag here.
If it's set, then use the new logic: fit into the screen no matter what.
Otherwise, only fit it into the screen if it's too large, keeping the old
logic there.

That logic was introduced for Search Everywhere to begin with,
and it has the flag set to false. So we're not changing anything there.
And at the same time it'll fix issues with popups such as
the Commit Options.


(cherry picked from commit 92d1f0be81d4860901414d3266ec4de3af2fc952)

IJ-CR-149457

GitOrigin-RevId: 4539693a61b8b7b8920795868e0146f53ffdd0ec
2025-01-20 16:21:57 +00:00
Sergei Tachenov
7e7f518331 IJPL-171351 Add the final popup screen bounds debug logging
When the popup is finally shown, the log message
contains the coordinates of the popup and the ID
of the target screen. Add the bounds of the target
screen as well. They may or may not appear in earlier
messages, but it's very useful to have the end result
in one place (for example, to reason about why
it was / wasn't necessary to change the popup
bounds to fit it into the screen).


(cherry picked from commit d1f4fea44c4749589fccbb914afcc450d48df511)

IJ-CR-149457

GitOrigin-RevId: 820ba1ff87ab632dd2e206eac1751683dc25c622
2025-01-20 16:21:57 +00:00
Sergei Tachenov
2f41585647 IJPL-171475 Fix the fit-to-screen logic in AbstractPopup
The existing logic didn't take coordinates into account.
A popup may be smaller than the screen, but shifted so
that it doesn't fit anyway.


(cherry picked from commit 945d7a60730508eb3d68f257c95d3833d68846d1)

IJ-CR-149457

GitOrigin-RevId: c2874c7d61f524c183d8f1451408d64e0d8db356
2025-01-20 16:21:57 +00:00
Andrey Vokin
655d3cec0d PY-78371 PyCharm does not mark imports in try/except blocks as unused
Update test data.
1. Unresolved imports are not removed with optimize imports
2. Unresolved imports are not marked as unused


(cherry picked from commit 2c32c368ae0907fb75ea76fc9749e903c160667c)

IJ-CR-153189

GitOrigin-RevId: 153d42e7f61f8357eeb74f022e31bbe406e83c02
2025-01-20 15:08:33 +00:00
Andrey Vokin
db6d06207c PY-77891 "Unused import" inspection is inconsistent in nightly
The logic for disabling the unused warning on unresolved imports was dependent on the visit order. Moving sustracting unresolved imports to the end of computation fixes the problem.


(cherry picked from commit adeb85e59c17261a5bf9f64dfb4a7836a2403f43)

IJ-CR-153189

GitOrigin-RevId: fac4173a0fac5b29be9301f9d5f04fed08cceff1
2025-01-20 15:08:33 +00:00
Aleksandr Sorotskii
42ba97ccd8 enable toml syntax highlighting for uv.lock; PY-75983; #PY-77716 fixed
(cherry picked from commit a20d9781367a909dc9bfa30e62fd385bf777374f)

GitOrigin-RevId: 4d6e9a1e71e35014d1b790a26617ee88f2b901e2
2025-01-20 10:58:50 +00:00
Aleksandr Sorotskii
517fd8ef36 fixup 243 merge; poetry test, uv icon, jackson lib
GitOrigin-RevId: 0e322cbfb242ae2dfa4ec77ed7d9b5c9300d2565
2025-01-19 21:30:05 +00:00
Pavel Karateev
7aa65206f7 PY-77656 Use correct uv icon
(cherry picked from commit 36aefbfa67c896df11b9a5954f119a2246dd2372)

IJ-MR-150144

(cherry picked from commit 23fec17ac9a60b7ba1aa28fad7de1650030c64f6)

GitOrigin-RevId: 92a6f48239a0ce834564b3ec54d99e24675d68f6
2025-01-19 21:30:05 +00:00
Dima Golovkov
e305b9d6c2 Add UV icon for UX-3312
(cherry picked from commit 8cb51234a2a5b1c5757cf4dc2a04a769d510b675)

GitOrigin-RevId: 289cc40c9aa52bc3a666fff986178078630bbd6b
2025-01-19 21:30:05 +00:00
Aleksandr Sorotskii
c94f1328da cleanup sdk provider; PY-75983
(cherry picked from commit 64835c70c5b57c35005f3f6d30cf0dc269b6a6cf)

GitOrigin-RevId: a2c6be9170353db1879becf9157867d6efad400d
2025-01-19 21:30:05 +00:00
Timur Malanin
c39507ddb0 PY-72070 Introduced PythonPackagesInstallerAsync for performing package installations asynchronously using coroutines. Updated the existing PyPackageManagerUI to utilize this new asynchronous method.
(cherry picked from commit 80c4c17b9ad7a209be747b10dc5bdbd94cff6b9b)

GitOrigin-RevId: e7a89997e694e792794fe604e7c4270be9517b24
2025-01-19 21:30:05 +00:00
Aleksandr Sorotskii
42c78668df fix duplicate cmdline args in error info
GitOrigin-RevId: f4fcdb2c9419f7edc755eb42e9253f8e62bbc610
2025-01-19 21:30:05 +00:00
Aleksandr Sorotskii
3f017485ef extract common code for listing installed/outdated packages for poetry; #PY-78077 Fixed
GitOrigin-RevId: ba1410bab2aeb4b69e6a9b134fd81331b7de3b06
2025-01-19 21:30:05 +00:00
Aleksandr Sorotskii
b21ed9e4e9 more consistent naming for uv; PY-75983
(cherry picked from commit 111a9ffb7b7107d3fbdfe01df649a38be2b5b821)

GitOrigin-RevId: 2b99c7457d94437d5c4c117b74031c30c5c84ff1
2025-01-19 21:30:05 +00:00
Aleksandr Sorotskii
400fb17865 fix poetry package manager running poetry update upon reloading the package list; #PY-78077 Fixed
(cherry picked from commit b0f73f88f39a62b4351fb6189fe5d9afb79ef6d3)

GitOrigin-RevId: 8e78ddecb0298826c8bc8dcf55e5b105954bd269
2025-01-19 21:30:05 +00:00
Aleksandr Sorotskii
170ad83859 reload vfs upon packaging operations to show any possible changes to project files; #PY-78157 fixed
(cherry picked from commit d7d41aa8cccec13c74736fbee036a9fcd78edeae)

GitOrigin-RevId: 72592940511dd4b3b18a6d44e27e4121bb74a204
2025-01-19 21:30:05 +00:00
Aleksandr Sorotskii
2df265c932 work around suspend/legacy api and threading isssues; #PY-77996 fixed
Merge-request: IJ-MR-151488
Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com>
(cherry picked from commit db9e012e187c62fbc53ddfa0c31603eb834058f9)

GitOrigin-RevId: 543d11a54e7106bd7f057e930d3796cc76d64617
2025-01-19 21:30:05 +00:00
Aleksandr Sorotskii
1d3e312dd5 fix running blocking on EDT; #PY-77850 fixed
(cherry picked from commit f06465ebffcadc50c564cb815973813d3643673b)

GitOrigin-RevId: 10ded6d4328c5645622a1cd06320279979c2c34d
2025-01-19 21:30:05 +00:00
Aleksandr Sorotskii
6727b2c5cf tweak initializing uv env; PY-75983; #PY-77715 Fixed
(cherry picked from commit e4c5af263e33b445bbdc4b1de7ed8aacea98b101)

GitOrigin-RevId: 897dd009b192fa2adb00d2ed07767bad17f42cda
2025-01-19 21:30:05 +00:00
Aleksandr Sorotskii
2769b5d234 fix uv detection for win and when creating cli; PY-75983
(cherry picked from commit f54ee351bfdceb6597a74d1fb128e000051984ba)

GitOrigin-RevId: 3200c0ae179a2e4e15a9ff9691421803cd09e1af
2025-01-19 21:30:04 +00:00
Aleksandr Sorotskii
77157d6fe2 support uv interpreter project configuration upon opening for the first time; PY-75983
(cherry picked from commit 44f133462ae29d6865a3ed5918a556d7d0a2cac7)

GitOrigin-RevId: d87fc8ae6076fb4fc3c20e8effaf5818c2f8ba20
2025-01-19 21:30:04 +00:00
Aleksandr Sorotskii
dc79f6b09c remove code duplication for poetry; PY-75983
(cherry picked from commit 3498c4b1da0f2f791940bd8f476e24701edd199c)

GitOrigin-RevId: 30e7d12a822031722d20373bef86d20d1d2ed95d
2025-01-19 21:30:04 +00:00
Aleksandr Sorotskii
42af44caf9 basic support for uv env & package manager; PY-75983
(cherry picked from commit 2597e4de17e167d8a0b0038190b5127a9dc4b155)

GitOrigin-RevId: 025955aea8f118a26e5ea24ca5b740fdd6c6bc7a
2025-01-19 21:30:04 +00:00
Aleksandr Sorotskii
c8b62d5056 remove redundant pip based python package manager; PY-75983
(cherry picked from commit a1d3cb3a5f31763f38c6c5c2d7c7f855d83e1f0a)

GitOrigin-RevId: c0ce987c8f9bdf3856cd69febe8a19a8af69491e
2025-01-19 21:30:04 +00:00
Konstantin Nisht
c3f76c2982 IJPL-172709 [ijent] Do not start coroutines directly in Unconfined dispatcher
Turns out that Unconfined dispatcher still installs an event loop, which was the main reason of avoiding `runBlocking`

(cherry picked from commit 6c47ede47e1e0377504052a39bbceba3d2046c4e)

GitOrigin-RevId: af77b1b6ba4c640ac2253b51603332392389a3ad
2025-01-17 14:26:16 +00:00
Vera Petrenkova
7d222ff6ed IJPL-161883 Fix cyclic initialization between LocalizationStateService and MacroManager
Bundle.getMessage calls moved from constructors to the getDescription method in some *Macro classes to use it lazy and avoid issues with cyclic dependencies when getting the locale.


(cherry picked from commit 7741209200df121e4e7785ee58fd48c329a18077)

IJ-CR-149835

GitOrigin-RevId: a213423284890ad9f7b01e53da0c7129f430b4cf
2025-01-17 10:47:45 +00:00
Nikolay Sandalov
1314e61754 IC 243 targets 2024.3.3
GitOrigin-RevId: 2c7779dbcc462147f6a5d9e4da86127df486dc67
2025-01-17 01:12:36 +00:00
Egor Eliseev
b0995cd9a1 PY-72345 Pycharm 2024.1 Broken debug on Python 3.12-3.13
Add a processing function for new breakpoints.


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

(cherry picked from commit 63ebb4c7c620cf7cc3f56924619fc5adc09e25dd)

IJ-MR-152628

GitOrigin-RevId: 1f26240498360aff61ff27878118b0eb841ec082
2025-01-16 16:20:50 +00:00
Egor Eliseev
55ce70bcba PY-78449 Debugger completely broken in PY-251.15449
Regenerate Cython files for Windows
Regenerate Cython files for MacOS


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

(cherry picked from commit c506acd0c0f35c542b52fb7c41075f552a5258b3)

IJ-MR-152850

GitOrigin-RevId: ac83063ed1280659f4e759d88be3ed89798f30b6
2025-01-16 15:51:30 +00:00
Dmitry Drobotov
172f70cd40 IJPL-172840 Decrease the limit of announced expanded roots
(cherry picked from commit e9d87312c7b53be5081c0ea557f43f5912455919)

IJ-CR-151182

GitOrigin-RevId: eae1f5bb0161acf5cd4d9070421f53e4fceea6df
2025-01-16 12:40:56 +00:00
Dmitry Drobotov
eaf47ca357 IJPL-172840 Extend suspension of Usages tree accessibility announcements
UsageState.restore also expands a tree node, and because it's called for every node, it shouldn't generate tree expanded events.


(cherry picked from commit 3c3d581e94bab9fe08ff655ac5c656aa21617a2e)

IJ-CR-151182

GitOrigin-RevId: cde9f512f810a3e4bb5a470bd7bef3b36540e686
2025-01-16 12:40:56 +00:00
Dmitry Drobotov
473efbed32 IJPL-172840 Use Tree's suspend expand/collapse accessibility announcements API in the Structure tree
This fixes a crash when opening the File Structure popup in very large files (JBR-7655)


(cherry picked from commit 9f497ecbf584fe8596630ab86245a0835a6eb3f4)

IJ-CR-151182

GitOrigin-RevId: 243ba2314b173347983aeea2299efdede60b2baa
2025-01-16 12:40:56 +00:00
Dmitry Drobotov
0adecf1134 IJPL-172840 Use Tree's suspend expand/collapse accessibility announcements API in the keymap actions tree
This fixes a crash when clearing the search in the Keymap settings (IJPL-171132)


(cherry picked from commit f382cfcca06427f0069d4d1bcacd6862bf69d392)

IJ-CR-151182

GitOrigin-RevId: 4fec35a25dcf8ad45335f90c9a7328886c3d2106
2025-01-16 12:40:56 +00:00
Dmitry Drobotov
39e4a4f371 IJPL-172840 Use Tree's suspend expand/collapse accessibility announcements API in the Usages tree
This fixes a crash in Find Usages (IJPL-171433)


(cherry picked from commit 70eef793231c7819b88453eb55c05a63df9142d3)

IJ-CR-151182

GitOrigin-RevId: 3afbe9798ae200508739cc3e264af8fae187323f
2025-01-16 12:40:56 +00:00
Dmitry Drobotov
727fb4c760 IJPL-172840 Set a limit for tree expanded roots used for screen reader announcements
This fixes the crash caused by too many tree expanded notifications when nodes get expanded by searching in the tree, for example, in database schema selection tree (IDEA-359880)


(cherry picked from commit bac09fd9d689118ef9efc87a1ac0cebb09164329)

IJ-CR-151182

GitOrigin-RevId: 418181a5a8631c8719beb799ba88003a0ad78dcd
2025-01-16 12:40:56 +00:00
Dmitry Drobotov
4748a2cbfc IJPL-173992 Fix UISettingsState initialization if the application isn't loaded yet
(cherry picked from commit 43e40d182c3cd743d17c11b38498da4fa7c0f2b5)

IJ-CR-152966

GitOrigin-RevId: 305c2ba1b7d5c3245755fd2947eb6d9b42e26276
2025-01-16 12:04:42 +00:00
Andrey.Matveev
0596355a2e PY-78524 Fix problem with codeCellBackgroundColor undefined because of plugin from master
GitOrigin-RevId: c69fc1ec54eb253ceb40bbb9e91851662e84fdce
2025-01-16 11:59:12 +00:00
Ivan Migalev
c88308938b (IJPL-173684, IJ-CR-152618) What's New: fix tests
(cherry picked from commit a23812e6d1d8ea48e1afaeeb9f603f47a781e2b7)

GitOrigin-RevId: 1a7b97bb2235de2fcbd9a333cd404e8f81c20033
2025-01-15 20:33:55 +00:00
Ivan Migalev
c9078c27f3 (IJPL-173684, IJ-CR-152618) What's New: separate opening logic for web pages
#IJPL-173684 Fixed

(cherry picked from commit 46ee26a3a82e70cee2d71dccba8536a058523d05)

GitOrigin-RevId: 7309170a8ba2f309cd25128daf1b2842f0dd48a8
2025-01-15 20:33:55 +00:00
Ivan Migalev
a03adc096e (IJPL-173684, IJ-CR-152618) What's New: disable content versioning for web content
This will prevent such contents from appearing automatically.

(cherry picked from commit dddec2df81308c53edd148148e8e04ae6fd6c3b2)

GitOrigin-RevId: 43481d6e805286044338fd681d0613254b84cf4d
2025-01-15 20:33:55 +00:00
Sergei Tachenov
4aaddd0702 IJPL-172075 Fix custom external action icons
The problem with using getActionOrStub as the action supplier
to get the custom icon is that if the action isn't loaded yet,
then its stub will have a null icon. Therefore, customization
doesn't work.

Performance considerations: it shouldn't cause any serious
performance issues unless there are very many icon customizations,
which is normally not the case.


(cherry picked from commit 4fa084bdcaebe8e06dc26f4004a6eeac33dd36a1)

IJ-CR-152585

GitOrigin-RevId: ea864f92b2f1b745e62cf8497ddf8c3af01cd467
2025-01-15 13:28:20 +00:00
Andrei.Kuznetsov
82f14358db IJPL-174027: restore previous behavior: index all files from all projects if project==null when invoking ensureUpToDate
Behavior changed unintentionally. Problem found during code review.


(cherry picked from commit 7424552ccbc568d2ddfb22570c2db479df624821)

IJ-CR-152316

GitOrigin-RevId: 4015ebbac27103eda06d8707882071a3394a37a5
2025-01-14 18:41:59 +00:00
Andrei.Kuznetsov
c4eb1eb3c6 IJPL-174027: use the same project files condition in FileBasedIndexImpl.forceUpdate and FileBasedIndexImpl.indexUnsavedDocuments
(cherry picked from commit a3df35169570a3605dd10de57d8479a54ce6f530)

IJ-CR-152316

GitOrigin-RevId: 486f82ff62bae94293b5e3db4ca1a211e476d504
2025-01-14 18:41:59 +00:00
Andrei.Kuznetsov
7bec186e06 IJPL-174027: more accurate logging
(cherry picked from commit 095dda3c4f916d8738880dfcf5d2ba0c51ad558b)

IJ-CR-152316

GitOrigin-RevId: 06f03a4a514385f18c33fbb96f885f20263ca9b0
2025-01-14 18:41:59 +00:00
Alexandr Trushev
72bbf8c3bd IJPL-797 intellij.platform.editor review internal API
Revert hiding public static field `INSTANCE` since a plugin uses it


(cherry picked from commit 44a0a3a066d923e0167489f443b511493a875daa)

IJ-CR-152896

GitOrigin-RevId: dea487b441d60680b93b246ee5ab1ab036e11d44
2025-01-14 17:20:39 +00:00