Commit Graph

35 Commits

Author SHA1 Message Date
Ilya.Kazakevich
a198596584 [python] PY-79486: (WIP): Improve UI towards the new design:
1. Show module paths
2. Show icons
3. Make window 65% wide

GitOrigin-RevId: bbafbfddfadb9f2b52b4eccdf60539788dd356af
2025-11-24 16:35:26 +00:00
Ilya.Kazakevich
b38ed09f04 [python] cleanup PY-79486, PY-82580: 2 -> 3 dots fix.
GitOrigin-RevId: 55126bfa11ae1b8256ae07d5f11193eba4910efd
2025-11-24 16:35:26 +00:00
Ilya.Kazakevich
a35535b51a [python] PY-79486 (WIP): Use real EPs to create SDKs.
The process is described in `ModulesSdkConfigurator` doc.

GitOrigin-RevId: 1a21824e488a2d799b229d7c8355b60b0b177809
2025-11-24 16:35:26 +00:00
Ilya.Kazakevich
a1b92b2591 [python] PY-79486: (WIP) split pyproject.toml tools into backend/common.
Each tool (uv, poetry) now has `common` and `backend` part. `common` has icons because we need them both on the front and on the back.

We might need to create `front` module also if we wouldn't be able to use icons in compose.

GitOrigin-RevId: 560b5aa67e4e747a1653ad6e4f780301a3fae289
2025-11-24 16:35:26 +00:00
Ilya.Kazakevich
0549092e09 [python] PY-79486: (WIP) Refactor to extract boilerplate from tools.
No need to run the same project structure parsing logic again and again.

GitOrigin-RevId: 6a3da2134f7124c361fa3e32e3925166c9b7d880
2025-11-24 16:35:26 +00:00
Kirill Bochkarev
5924d15ed4 [workspace model] IJPL-847 move all code to generated sources
Merge-request: IJ-MR-178988 IJ-MR-166048

GitOrigin-RevId: 0c906ab6379331ffd2cb6c930663859fb822ad04
2025-10-30 01:28:21 +00:00
Ilya.Kazakevich
13f1e3ccaf [python] PY-79486, PY-84609, PY-84572: Fix pyproject.toml-based opener.
1. Obey registry key.
2. Use `readAction` to prevent race when file chaned from another thread.
3. Extract action title to the i18n


(cherry picked from commit eb9ca0841c13de06fb636d1e14f34d4a1b72b598)

GitOrigin-RevId: 8ccfd060f45e4da4f12492c0e3f9fbbf5f6c0ff4
2025-10-17 13:05:01 +00:00
Kirill Bochkarev
eaa7c70266 [workspace model] IJPL-196541 Workspace generator fixes; Regenerate all IntelliJ workspace code
IJPL-895, IJPL-178663, IJPL-212395, IJPL-212407


Merge-request: IJ-MR-178140
Merged-by: Kirill Bochkarev <kirill.bochkarev@jetbrains.com>

GitOrigin-RevId: 097f61d76f785db240a94046461d445d5497f605
2025-10-11 09:47:21 +00:00
Ilya.Kazakevich
cc2a447cc5 PY-79486: Split sdk detector to backend-frontend
GitOrigin-RevId: c06ca10a1640e7dea536f1b94df82b7bcfadf14b
2025-10-03 06:26:19 +00:00
Ilya.Kazakevich
ea63edfa47 PY-79486: Call configuration in any case
GitOrigin-RevId: 508cecb8a4b53a9a0e09a63e5056fe4a32c5ba1a
2025-10-02 16:03:08 +00:00
Ilya.Kazakevich
5a4843d743 PY-79486: Introduce sdkConfigurator module.
This module listens for topic that model was just rebuilt from `pyproject.toml` and does its best to configure SDK.

It will support UI to make this process configurable

GitOrigin-RevId: c752c94385814b5fc4413316c0d9d4cc2adb41e4
2025-10-02 06:59:28 +00:00
Ilya.Kazakevich
d03c264a1b PY-82580: Move action i18n to xml
GitOrigin-RevId: 280e878cd2335039fc2bac2e7cfa5c1ee91e7217
2025-10-01 21:27:53 +00:00
Ilya.Kazakevich
2888d207d9 PY-82580: pyproject.toml refactoring to combine all pyproject.toml EPs to single API
The main idea is to decouple tool implementation from low-level platform APIs: Open project processor, workspace model e.t.c.
Implementing `spi.Tool` should be enough to introduce new tool.

GitOrigin-RevId: 1177b57fc0eee1ca2c88cac5b20618a6170bf521
2025-10-01 02:21:16 +00:00
Vladimir.Koshelev
657e9ebee3 update bazel files
GitOrigin-RevId: f8ee7c74051e66b41bddbc976d457d25939bc008
2025-09-30 18:46:16 +00:00
Vladimir.Koshelev
497622b4c8 [python] PY-84498 fix CNEs, add tests, and fix the issue to make these tests runnable.
GitOrigin-RevId: a9d9d14750174c85a75049a2020b179977d6d4dc
2025-09-30 18:46:16 +00:00
Ilia Kirianovskii
f43aa95086 [bazel] Update build files (IJI-3062)
GitOrigin-RevId: 98a67396a48bddc3d084cc93c50ae2f2017bfe8c
2025-09-29 00:11:15 +00:00
Vladimir.Koshelev
c5b44ca085 [python] PY-84398 get rid of package prefix in python modules.
It doesn't work. Sad, but true.

GitOrigin-RevId: c6cf4f2971ce813a2ce18afb2dcee22c2c5dad75
2025-09-26 15:15:29 +00:00
Vladimir.Koshelev
ba393efaa7 [python] PY-84398 get rid of embedded loading rules in PythonCore plugin, fix related issues
GitOrigin-RevId: 54f4bb333e0ca06a002a86c75f0bbc474863253e
2025-09-26 15:15:29 +00:00
Ilia Kirianovskii
1e3bda186d [python] Add intellij.python.pyproject._test module descriptor to run tests in dev-mode (IJPL-116621)
GitOrigin-RevId: 6b0cddaa77c2357ae5a1168e315e08946beac7d5
2025-09-25 20:05:21 +00:00
Ilya.Kazakevich
ae1c23b793 Poetry module cleanup
GitOrigin-RevId: ea243ddcba46e17cf628f033e832575850324a96
2025-09-24 04:00:53 +00:00
Ilia Kirianovskii
6f8920da99 [bazel] Update build files (IJI-3062)
GitOrigin-RevId: 2394c1289e33945f7640f249b17cbf34b31fd695
2025-09-23 09:25:59 +00:00
Ilia Kirianovskii
dc268560b6 [bazel] Update build files (IJI-2835)
GitOrigin-RevId: 275260ab73f59d3c08f0b4cb9f4c89b74054094a
2025-08-20 08:49:22 +00:00
Vitaly Legchilkin
56fbdf6fee [python][poetry] don't create pyproject.toml if it already exists (PY-76274)
+ project.basePath -> module.basePath migrations

GitOrigin-RevId: 8461d6d273f7482aca180abe63d958e551c3c7dd
2025-08-19 15:49:34 +00:00
Leonid Shalupov
cff76ea65e bazel: split test and build sections in convert jps to bazel:L update Bazel files
GitOrigin-RevId: 90063178de33c2a95bfdebd160a721d6977d8097
2025-07-18 16:18:47 +00:00
Ilya.Kazakevich
1f8cca090c Python: drop unused symbols
GitOrigin-RevId: dee3a942e0913acc223b0dade9b0f8b2bea53bbf
2025-07-08 22:50:12 +00:00
Vitaly Legchilkin
e2c9b90b03 [python] remove the not installed inspection from pyproject.toml/build-system (PY-82182)
GitOrigin-RevId: 5668767874c720af7794a33d38626a7531610c33
2025-06-25 22:43:47 +00:00
Evgenii Ilichev
06fb3e21e6 Update test definitions in BUILD.bazel
GitOrigin-RevId: 12636c0153e8909f9d9658a07278edac5ceb9c23
2025-06-18 19:05:49 +00:00
Ilya.Kazakevich
a1782e3d61 Python: remove unused symbols
GitOrigin-RevId: 2fbd1132fd0b9ac8b239f068cd6a5920a589c30a
2025-05-06 19:38:29 +00:00
Vladimir Krivosheev
e3d5d85a47 update bazel files
GitOrigin-RevId: 4a1f45312f93e76248b05a7c8cc27a2b2ac84036
2025-04-30 14:07:08 +00:00
Vladimir.Koshelev
67594cdaad [pycharm] finish community migration to v2
# Conflicts:
#	community/python/pluginCore/resources/META-INF/plugin.xml

GitOrigin-RevId: e4d6969fd15a3fddc4d6a03491fb9f9634285edf
2025-04-30 10:08:56 +00:00
Ilya.Kazakevich
803e270d45 Python: refactor PyError hierarchy, migrate to PyResult.
DO:
For upper-level (public) API use `PyResult`.
(Optionally) for low-level APIs inside your modules use python `Result<S, E>`.
Represent errors as `PyError` whenever possible.
Report `PyError` to `ErrorSink` at the top of your code.

DON'T:
Use `kotlin.Result`
Use `PyExecutionException`
Use any exception to represent user errors.

GitOrigin-RevId: 4ecf69e1fae8be9192cd33b90e0147c725a98964
2025-04-29 00:43:56 +00:00
Vitaly Legchilkin
133bb61a1d [python] dependencies highlight and completion in pyproject.toml fix (PY-72985)
* use module sdk instead of project sdk in dependency completion
* remove dependency on the "requirements.txt" in the UnsatisfiedRequirementInspection (might be also pyproject.toml)
* move poetry-related things to own package

GitOrigin-RevId: 878ad4c419ed8025aa27bca2357ec7bed2e26f3c
2025-03-18 21:50:59 +00:00
Vladimir Krivosheev
1da6f5d864 update bazel files
GitOrigin-RevId: 7cf26cab90b6cf5e692bd87dafb958903a997ca5
2025-02-26 08:55:35 +00:00
David Lysenko
18eb19aff3 [pycharm] Address feedback
GitOrigin-RevId: ff5e1efdefa9ce24f76a0d628937a586a1363b78
2025-02-25 14:45:15 +00:00
David Lysenko
a570aebb18 [pycharm] PY-79369 Consolidate logic for pyproject.toml handling
GitOrigin-RevId: cf5b90daeaf3686b044e98888be6675618e9471e
2025-02-25 14:45:15 +00:00