Commit Graph

429 Commits

Author SHA1 Message Date
Alexander Koshevoy
2c7638ac8b Safe remove unused PyCondaManagementService class
GitOrigin-RevId: 7f9c11ce5560ee457d4a6574cf4b5a9a9b9ac59e
2023-10-23 00:47:09 +00:00
Bogdan.Kirilenko
73b0fb76cf [python edit run configuration] - moved redirect input to the top of the editors section + placeholder visibility fix
GitOrigin-RevId: b06c638ad4291c30975de2cf6790c18d79676a6b
2023-10-20 17:01:19 +00:00
Bogdan.Kirilenko
c03ac7054f [python] Implemented fragmented UI for Django server run configuration DjangoServerRunConfigurationFragmentedEditor PY-63418
GitOrigin-RevId: 42d6f05ef4395c37dc01d31e39a41c5b748316e1
2023-10-20 17:01:13 +00:00
Konstantin Nisht
87722de8ea Revert "[python] Allow modification of python SDK in headless mode through environment keys"
This reverts commit 3a202c64

GitOrigin-RevId: f6d6b26c10ba253c1a180a63d4939f4bd5e8f7a0
2023-10-19 16:23:08 +00:00
Egor.Eliseev
ca835e64ea PY-59107 NewUI: Buttons in Python Console are too close to new Run/Debug tool window toggles
Merge-request: IJ-MR-116375
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

GitOrigin-RevId: 4c44a8ec57138754b2e94dab17417a19b1139abd
2023-10-11 14:53:02 +00:00
Aleksei Kniazev
2b96defa3b [python] new ui for python interpreter creation in new project wizard (PY-60214)
- covered by registry key `python.new.interpreter.creation.ui` -- enabled by default
- missing proper validation and state save (tbd)

GitOrigin-RevId: 4035bb82d526be7a164715f7567d63319f4be499
2023-10-10 22:19:09 +00:00
Dima Golovkov
ceb5d97209 Add attachDebugger and executeCurrentStatement icons for both UIs for PyCharm
GitOrigin-RevId: 7b08956bbb5f0ff8c83b62d9d4236379eee51f0a
2023-10-05 15:04:26 +00:00
Konstantin Nisht
7d9f718f82 [python] Allow modification of python SDK in headless mode through environment keys
GitOrigin-RevId: 3a202c6418557c75c367d3d0457a5977a4ab6b6b
2023-09-30 18:44:34 +00:00
Daniil Kalinin
4b6848cb9f PY-61855 PEP 695 Type Parameter Syntax: Highlighting
GitOrigin-RevId: 498ab5e3a697c2eb616ae3d0820f99c480596306
2023-09-15 16:04:43 +00:00
Egor.Eliseev
540f24faa4 PY-34498 Add an inspection for pytest fixture that is not passed to test parameters
Report warning if a fixture is used without being passed to test function parameters or to
`@pytest.mark.usefixtures` decorator.


Co-authored-by: Denis Mashutin <Denis.Mashutin@jetbrains.com>


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

GitOrigin-RevId: 28d0711b99ab7ae180f672306dd4ab8a81f1feec
2023-09-04 09:53:07 +00:00
Egor.Eliseev
130740bbf0 PY-61613 Turn on static code completion for Python Console by default
Change setting CheckBox to ComboBox

IJ-CR-110807

GitOrigin-RevId: 911407a78a5f444a81315dbca3e92d916b4abf30
2023-08-18 14:08:46 +00:00
Egor.Eliseev
c368c2f4f1 PY-48235 Add quoting policy for PyXCopyValueAction
IJ-CR-110671

GitOrigin-RevId: 768a88b91943de9dcab5c5023073c82c5f8c93d7
2023-08-18 12:11:01 +00:00
Egor Eliseev
edd05b77c0 PY-37668 Copy full value from Variable view
IJ-CR-110411

GitOrigin-RevId: f2daf5ff2aea1c94acf2e796db02efd121655a99
2023-08-17 17:02:52 +00:00
Ilya.Kazakevich
2bb2ea60fc Various validation refactorings
`readableFs` is redundant and unstable. Remove it: we will migrate to ijent anyway.
All validations are in `PathValidator.kt` now. They are used by `ManualPathEntryDialog` and sdk validation.
Lots of thread annotations added to prevent calling validation code from EDT.

In general, this change makes path validation ready for ijent: validation based on nio with slow IO access.

Validation is removed from old, non-target classes

(cherry picked from commit 185b4f7fe8cbd5d7a37dad609c8a4cb8163d6eed)

IJ-MR-112281

GitOrigin-RevId: 12c4a4f3d459d0523ef6694a9e4bb2db7a1582b7
2023-08-04 13:42:38 +00:00
Egor.Eliseev
8c44583f57 PY-61241 PyStackFrame.customizePresentation is a slow operation
Move compute `IsExternal` filed to background thread


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

GitOrigin-RevId: 820b8d6f4529930d5430c75c63adb64d14fca807
2023-08-03 08:53:54 +00:00
Sergey Karpov
c0842a6fde [pycharm] Squashed commits. PY-52478 Improve the names of quick fixes for "Unresolved references" and "Non-optimal list declaration"
(cherry picked from commit bce089714657aef8634ffb9c58da57fdb576b297)

IJ-CR-112218

GitOrigin-RevId: 8857c2951e44a1e9d0b54af1eb7c584f64fbc40d
2023-07-31 16:31:00 +00:00
Daniil Kalinin
10a95a0031 PY-61487 Make Black formatter notifications less annoying
GitOrigin-RevId: 2987f82ab2877a2c47fa47f313d862ec5826467b
2023-07-14 13:54:17 +00:00
Andrey Vokin
ff09dfa2e1 DS-4859 Support advanced code completion for machine learning frameworks in DataSpell and PyCharm
Move TensorFlow and NumPy icons to community

GitOrigin-RevId: b978403fa4f9d1b753b96dc5f11e7842ff663134
2023-07-12 11:06:06 +00:00
Elizaveta Shashkova
7ba7a56255 PY-60845 Support completion for conda commands in Run Anything
(cherry picked from commit c898d641c653569a05e26e9b4858af1effb675db)

IJ-MR-110247

GitOrigin-RevId: 1fcc2f283ab660b09429f480689cd5b61bba9ee7
2023-07-11 17:00:29 +00:00
Daniil Kalinin
3f2a47eacb PY-30757 remove unnecessary notification about missing SDK
GitOrigin-RevId: 7fe47f76431bb5286c18a17621b7676068821da2
2023-07-07 17:55:27 +00:00
Daniil Kalinin
aa382fe764 PY-30757 Rename "Select Python SDK:" label to "Python interpreter:"
GitOrigin-RevId: aeb910e723e8ba00b1191d5f6528d6a704242353
2023-07-07 17:55:19 +00:00
Daniil Kalinin
09a52a3f77 PY-30757 Move context help icon to the right side of the row and change tooltip text
.

GitOrigin-RevId: 467830528912ba57c6f3b40c2e6a053c2a8dbc56
2023-07-07 17:55:16 +00:00
Mikhail Golubev
332ece532c PY-59132 Ask for user confirmation when installing packages with a quickfix
Namely, if a package doesn't belong to the list of "well-known" packages, which
we maintain for the Packaging Tool Window, such as Django, upon installing it
with a quickfix (either "Install package" or "Install and import package")
we ask for an explicit confirmation, mentioning that a package can execute
potentially malicious code while being installed. This extra step should allow
a user to double-check a package name, making sure that it's not a spoofing
variant. This confirmation dialog can be disabled IDE-wide.

GitOrigin-RevId: 012909e2695eabb1df96e0d45ed20befd0cf2e31
2023-07-06 10:41:32 +00:00
Olga.Lavrichenko
f688d1963e DS-5170 DS-5169 Provides smart completion for DataFrame object inside wrappers
GitOrigin-RevId: caba34d39e080acecd9f797ba2fb6267b381e6ea
2023-07-05 10:54:29 +00:00
Andrey Vokin
95b824f830 DS-4596 Create DataSpell specific project template(s)
Pandas and Polars icons

GitOrigin-RevId: f327f3fdeff1f8cec1b821e19bf96e30fe26aafc
2023-07-03 21:42:40 +00:00
Ivan Donchevskii
f79af9986a [pycharm] Move CompileQrcDialog.form string to QtBundle
It was left in PyBundle but should now be in QtBundle to work correctly.

GitOrigin-RevId: 3fadd0bcd8d7e3f207d771a468ba1fdab11743ae
2023-06-23 11:39:29 +00:00
Daniil Kalinin
2654749a76 PY-58887 add explanatory commentary about pyproject.toml for Black cli options text field
GitOrigin-RevId: d014f05bcb20933335b905da3462f954c8bec8fb
2023-06-23 10:48:36 +00:00
Daniil Kalinin
601f74f216 Improve user-visible text for Python inlay parameter hints
Merge-request: IJ-MR-109113
Merged-by: Daniil Kalinin <Daniil.Kalinin@jetbrains.com>

GitOrigin-RevId: 8e34eeb47e4c664e8adf46d7093fafc606d486e0
2023-06-22 16:59:25 +00:00
Daniil Kalinin
157b23ce53 PY-33261 Inlay parameter hints for Python method and function calls
Merge-request: IJ-MR-108471
Merged-by: Daniil Kalinin <Daniil.Kalinin@jetbrains.com>

GitOrigin-RevId: 1d9451020a755c0aaf57c12b16829f8b31291e5d
2023-06-20 05:27:45 +00:00
Aleksei Kniazev
2180aa6230 [python] support python dependencies in pyproject.toml (PY-59844)
- completion for package names in `dependencies` and `install-requires`
- completion for build-backends
- if a package is not installed, provide a quickfix to install it / run `pip install -e .`

GitOrigin-RevId: cad88e4058a45f6db717b8da8fd7f6c456008998
2023-06-20 04:18:25 +00:00
Aleksei Kniazev
7340844d7e [python] added links to update packages to the latest version from Python Packages toolwindow (PY-48046)
GitOrigin-RevId: 2e09b8d9ba125014573f94a260de29e95b1bc497
2023-06-19 12:58:39 +00:00
Aleksei Kniazev
56b01e89b1 [python] added link to install python package directly from package table (PY-49130)
GitOrigin-RevId: bcbb3b3fc7c485ea999fd326576f78cd26c3938c
2023-06-19 12:58:39 +00:00
Daniil Kalinin
62df4deaf4 PY-30757 Black formatter integration support for PyCharm
Merge-request: IJ-MR-107500
Merged-by: Daniil Kalinin <Daniil.Kalinin@jetbrains.com>

GitOrigin-RevId: f0e622057a9533d89d2d47b032b5388f8c991821
2023-06-18 23:11:33 +00:00
lada.gagina
e768aa3785 PY-40996 Add ability to collapse and expand python type annotations
"Collapse/Expand Python Type Annotations" actions, an intention and a setting

GitOrigin-RevId: e055538b29b07c1836399f52754b786a15351050
2023-06-16 19:08:16 +00:00
Daniil Kalinin
d5de282edd PY-17193, PY-10709 Don't use \ for line continuation by default
Adds a new option which allows to parenthesise call chains, import statements, string literals and binary expressions instead of using backslashes when splitting them to multiline by pressing Enter

Tests for PY-17193, PY-10709

Merge-request: IJ-MR-98747
Merged-by: Daniil Kalinin <Daniil.Kalinin@jetbrains.com>

GitOrigin-RevId: 964f6c997e1e106a3d1b82d24e46947cc83fb2c6
2023-06-14 19:11:31 +00:00
Ivan Donchevskii
65e4f82e86 CPP-33475: Remove clion and python dependencies from the qt plugin
Move the code causing dependencies into the optional parts of the plugin.

IJ-CR-107960

GitOrigin-RevId: c54fc4bb44ab59ea0da62b759a2931112c5ef2b0
2023-06-12 21:36:05 +00:00
Ivan Donchevskii
5db8fd0e1a CPP-33475: Create the Qt plugin
Split a part of QML plugin with core functionality for paths detection and
with icons specific to Qt file types.
For now the functionality is used in CLion and Python plugin.

This change allows to open `.ui` files with detected `designer` tool which didn't
work in CLion before.
The icons are also updated to the more up-to-date format which honors new UI.

IJ-CR-107960

GitOrigin-RevId: dffc1706197ebc568db43ff85f324c1520e919f6
2023-06-12 21:35:58 +00:00
Elizaveta Shashkova
2e2b614657 PY-31773 Implement "Run Anything" for PyCharm
GitOrigin-RevId: 13d7b82ad453721feec41162448c8df18cab39ba
2023-06-07 14:19:08 +00:00
Artem Mukhin
c5f98d1c46 PY-54577: Allow configuring Attach to Process timeout in Advanced Settings
GitOrigin-RevId: 57b431045be847a01fe43b571886fce2553242fd
2023-06-05 12:10:42 +00:00
Olga.Lavrichenko
77e86eff44 DS-4332 Support autocompletion for dictionaries inside dynamic classes
GitOrigin-RevId: bcaa52b982a4a0f567fc0f32ca2094fab49d6f6a
2023-06-02 09:06:24 +00:00
Daniil Kalinin
8df7dd2f21 PY-32302 Provide custom syntax highlighting for Python local variables
GitOrigin-RevId: af7099a6ba948c740c8183674b24eeeddf164e70
2023-05-18 19:12:18 +00:00
Dima Golovkov
eb233d8097 Add icons for Python for IntUI
GitOrigin-RevId: 6932a90d2ff22e211685c91af61a15c2c7d76733
2023-05-17 21:19:16 +00:00
Dima Golovkov
e8957b0496 Update pythonConsole.svg
GitOrigin-RevId: 4cc620ae25b643c5f077894a5fa360e3a8678b10
2023-05-11 01:26:34 +00:00
Louis Vignier
1869ec9da6 [codeInspection] Fix python inspection descriptions
GitOrigin-RevId: 56876a5dd073a06c3fcc92f63ed1f5674830bc25
2023-04-28 13:13:25 +00:00
Vladislav Rassokhin
3fcbb16aa9 [python] postfix templates: add .fore/.itere/.enum: add description (PY-27374)
GitOrigin-RevId: af484fbec898c0b11501a4cd94c453339885be0b
2023-04-24 18:44:24 +00:00
Egor Eliseev
63aad3ea69 PY-57605 Add user-friendly notification for shadowing name errors
IJ-CR-101027

GitOrigin-RevId: a35868cb97d3746dacdd090700dfc1946de21147
2023-04-13 13:33:27 +00:00
Olga.Lavrichenko
dbc72e00e3 DS-4778 Rename "New runtime" contributor
GitOrigin-RevId: 6865ffb634fd6b0834948f6e39f2c4d2df61f2fb
2023-04-11 09:12:59 +00:00
Aleksei Kniazev
f168218b37 [python] use content root instead of sdk home path as work dir when converting package docs md to html (PY-59238)
- added error handling and logging
- restructured code to update installation action sooner

(cherry picked from commit b23e13b6c18630434a1dc3ce95b059fa1b2fc8b4)

IJ-MR-105495

GitOrigin-RevId: 247e906d075644ee1fb86f2d67476f4478b87ae4
2023-03-28 19:45:44 +00:00
Alexander Koshevoy
4b5b0f0890 PY-55448 Use specific process handler for Python Console processes
Use previously introduced `PythonProcessHandlers.createProcessHandler()` method to create specific process handlers. Introduce `PyConsoleProcessHandlers` with utility methods to create an instance of a class extending `PyConsoleProcessHandler`, which delegates to a specific `ProcessHandler` or a `Process`.

Also, introduce a proper path mapper class for target environments that takes into account their volumes.

GitOrigin-RevId: 8780a3f0d35d9140de8f8fc9ddae25d39453e29f
2023-03-28 12:52:56 +00:00
Dima Golovkov
dd04511f50 Add specialVar and stepIntoMyCode icons for PyCharm for IntUI
GitOrigin-RevId: 7f9c2f56a01b2e085fb7bdb81ec02cf3ac24c86a
2023-03-27 00:25:02 +00:00