Commit Graph

30199 Commits

Author SHA1 Message Date
Ilya.Kazakevich
55feb2fffa PY-80128: Update bundled venv because an old one is incompatible with the latest.
GitOrigin-RevId: 2e952ce6e251548d11a9ee6d13653114cc9d4cfa
2025-04-08 15:27:38 +00:00
Yuriy Artamonov
4cc0f4c18e [registry] IJPL-162599 Cloud Registry module
(cherry picked from commit 1ee095a80648cab61f459be424aa53c5968ce26d)


(cherry picked from commit 3ce94793672e9d676b0bab99023e911193f4efff)

IJ-MR-154004

GitOrigin-RevId: 5a69e858a1c20003a85d730668feef0363f5c94b
2025-01-30 20:08:05 +00:00
Aleksandr Sorotskii
b3bbc880e5 check appdata dir for uv binary on windows
(cherry picked from commit ea45127f5088e1aad3eb0f72dcd8fcca9577727c)

IJ-MR-153730

GitOrigin-RevId: e828e88ecb268ea37444337d8b0efff3eb36700c
2025-01-27 23:39:54 +00:00
Egor.Eliseev
5d69e05337 [python] Fix PoetryPackageManagerTest
In Poetry 2.0, the `--no-update` argument for the `poetry lock` command was removed. Therefore, the command must be run without this argument.


(cherry picked from commit 2e2881b05a063de9a43a3d2bcd06923bec8bb2cd)

IJ-MR-153396

GitOrigin-RevId: 45a77ba3775fa6f7db722d0e6c523c45fc5bee33
2025-01-27 11:54:49 +00:00
Sergey Pak
571fdbca04 1. make settingsSync a platform module 2. rename platform module to settingsSync.core and don't include jba module
(cherry picked from commit b94ad2175dc954823f17bf1571548d4779945793)
Signed-off-by: Sergey Pak <sergey.pak@jetbrains.com>

GitOrigin-RevId: 08fc765db4cd295b5b9eebb9378ba992c341dce8
2025-01-23 01:22:16 +00:00
Ilya.Kazakevich
0de98c3d59 Python: PyExecutionException message might be empty, use toString then.
`PyExecutionException` breaks all contracts and allows empty messages. It should be fixed, but as for now we workaround it.

GitOrigin-RevId: 67b9e27047f5be64d8a2879bb122f88620aee997
2025-01-22 02:30:16 +00:00
Egor.Eliseev
641e64e910 [python] Add uv/poetry to Path on Windows
(cherry picked from commit 308f4606546afabfc0d2d0d427b1cd47a211b046)

IJ-MR-153304

GitOrigin-RevId: 1a1b20f48a9bb473171c8bed2f1c03d3676060a5
2025-01-21 14:58:20 +00:00
Aleksandr Sorotskii
25d1303fdc fixup
GitOrigin-RevId: 473257ec0830ee58c32e4f5ac07a4ba5c9509fd9
2025-01-20 23:33:36 +00:00
Aleksandr Sorotskii
b700774b9a fixup
GitOrigin-RevId: e90e1a8455f85ddccd87d8c353a0c4db646ac7da
2025-01-20 23:33:36 +00:00
Egor.Eliseev
dca31999f3 PY-78001 Support adding existing venv's as UV
Add UvExistingEnvironmentSelector

(cherry picked from commit be8827506d521c5487cf4fbb3ca15d979f760d44)

GitOrigin-RevId: 5a8cdf35bbd89e0473724554d3390d6d9eb19311
2025-01-20 23:33:36 +00:00
Egor.Eliseev
1c33aab97d PY-77381 Unable to select an existing Poetry environment as a project interpreter
Add PoetryExistingEnvironmentSelector

(cherry picked from commit 4fc75a24669d8a2fc12b5ff963cc5715ebc6ab3a)

GitOrigin-RevId: b5ed7b45a3b4e27786bf899ab42f9ffe757d7f9d
2025-01-20 23:33:36 +00:00
Egor Eliseev
18f5e952db PY-77696, PY-77724 Install UV fixes
1. Rewrite the installation script. Now it returns Path to executable.
2. Save an executable path to Properties.

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

(cherry picked from commit cafb40528ea0e2613248a37291e76e4d24e34674)

GitOrigin-RevId: 911afa3ee4c2e38231cc58f19337f2b7125bea44
2025-01-20 23:33:36 +00:00
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
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
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
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
Vitaly Legchilkin
e2d66c37e4 [python] PyPI API constraints implementation (PY-78109)
* All URLs which respond with an HTML5 page MUST end with a / and the repository SHOULD redirect the URLs without a / to add a / to the end.

* Repositories MAY redirect unnormalized URLs to the canonical normalized URL (e.g. /Foobar/ may redirect to /foobar/), however clients MUST NOT rely on this redirection and MUST request the normalized URL.

https://packaging.python.org/en/latest/specifications/simple-repository-api/#base-html-api


(cherry picked from commit c90a3779344521428b03fd361b6e8daa349138c3)

IJ-MR-152631

GitOrigin-RevId: ef2dff1ccc18b8a200e69e1ab9843717d29d5fd3
2025-01-13 12:13:12 +00:00
Andrey Vokin
915ccaa68e IJOB-583 PyCharm onboarding lesson broken (at step 16)
After PY-55548 no need to change type hint `object` to `float`


(cherry picked from commit d9ba34fb955df644b7892b070dc1f5523db7fce9)

IJ-CR-152255

GitOrigin-RevId: ae0f12168de11265c14432709abb074d35530ccc
2025-01-09 13:30:27 +00:00
Dmitriy.Panov
82fa4ae1e2 IJPL-172978 different UUIDs for IDE binaries on macOS
(cherry picked from commit e56374d6355c41d66e41e2de4c2ca14431464537)

IJ-CR-151551

GitOrigin-RevId: a18ab4cd13c6476dfff57f6cb62722f72c5dcb68
2025-01-03 15:51:13 +00:00
Alex Plate
2ab18edac8 [Python Onboarding] There is no need to require a module to open the interpreter settings
Also, silently returning from the function will leave the link non-working, what is confusing for the user


(cherry picked from commit 7b0384c5810ab38268420f172c7e3ddbef0d7b15)

IJ-CR-151630

GitOrigin-RevId: 15bdac04edde15e1b181e18d9006485c141b6308
2024-12-27 15:06:26 +00:00
Mikhail Golubev
1be05f5d9e PY-78189 Flip expected and actual types in warnings about __set__ argument
(cherry picked from commit 65f8c92b852539908c71715756ec407781a9fb6b)

IJ-CR-152050

GitOrigin-RevId: 2672bc7f5d39dd2bec1a9b2c2d322dffb3d66062
2024-12-20 14:45:15 +00:00
Aleksandr Sorotskii
4ed6a858d4 Automatically switch client/server mode in debugger tests; PY-78168
(cherry picked from commit 3714877098305edcc4eae4f9761ab176c0112355)

IJ-MR-151881

GitOrigin-RevId: e6c06cfd22fa03964b8373ecd738fec26c7d785f
2024-12-20 14:42:55 +00:00
Aleksandr Sorotskii
f5e820f848 disable python debugger single port by default; PY-78168
(cherry picked from commit e73f477e2424c4c103bfaa676cdf94098170d4b5)

IJ-MR-151881

GitOrigin-RevId: 7a665d852d77554e00a51cce697940ebd5da538b
2024-12-20 14:42:55 +00:00
Natalia.Murycheva
050782b5ea PyCharm Tables] PY-33448 PyCharm freezes with large objects in SciView #PY-33448 Fixed
* Fixed also the Python Console case: transposed 1-Dim table there as well

(cherry picked from commit a6c783dc38aa3c5050a836c36d8a76e8b3cbda19)

GitOrigin-RevId: b7fe92925fe8702ffd80e56a4fe0c313c6411372
2024-12-19 15:17:52 +00:00
Natalia.Murycheva
53d3243005 [PyCharm Tables] PY-33448 PyCharm freezes with large objects in SciView #PY-33448 Fixed
* Transposed 1-D numpy array on the Python side of the Debugger
* Applied setMaxItemsForSizeCalculation method to the myRowHeader table to minimize calculations for getRowHeight

(cherry picked from commit f88fa625f2d8673cba2c9819f2907462b3f2301d)

GitOrigin-RevId: de6f919f18caec6624b1696790a88e10659e96f0
2024-12-19 15:17:52 +00:00
Natalia.Murycheva
c68e31976c [PyCharm Tables] PY-77591 Added "is None"/"is not None" conditions to tables' filters #PY-77591 Fixed
(cherry picked from commit ad48262cab5d46f06b1ee7f72c764ee899f0c926)

GitOrigin-RevId: 75313468a9f205fce99fae1215399d32131626a5
2024-12-19 15:17:52 +00:00
Ilya.Kazakevich
785ae87864 PyCharm: Skip files in PYCHARM_PYTHONS dir in tests.
We might have scripts there (on Windows) like `fix_path.cmd`, we need to exclude them


(cherry picked from commit e09ceac554f456a3d8a931e0dfe26872908c303c)

IJ-CR-151567


(cherry picked from commit 8a8d68e41a6bd607622f3b6afa76e5dc878f4236)

IJ-CR-151953

GitOrigin-RevId: 9a463cdc1e0c348c2ffa27f26e64781f5014bd97
2024-12-19 15:16:27 +00:00