Commit Graph

640 Commits

Author SHA1 Message Date
Pavel Porvatov
59a10f0de7 IDEA-324496 Add Links to New UI pages in Settings
- Moved configurables from plugins packages into ide packages

GitOrigin-RevId: 3b28b0194d6ba91007d45495ff42f2efd22bb43f
2023-08-14 08:16:52 +00:00
Elizaveta Shashkova
5c171a97f5 PY-61917 New Run config UI: make "Parameters" field visible by default and increase minimal width
(cherry picked from commit 65a45024a6339a820bb9ffea91dfa85fd049d3cf)

KT-MR-11541

GitOrigin-RevId: d34f2c080d95d286a1e0c55d399fd91003c11217
2023-08-09 12:59:26 +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
Vladimir Krivosheev
db982fd04d PyCharmCorePluginConfigurator - use modern non-blocking API
GitOrigin-RevId: 5b7027c57967e1bc58900d8a392eb06599260676
2023-08-03 17:37:30 +00:00
Vladimir Krivosheev
7662d36b87 convert PyCharmCorePluginConfigurator to kotlin
GitOrigin-RevId: 200c7b79c320724999d358b37911735af89b609a
2023-08-03 17:37:29 +00:00
Vladimir Krivosheev
4166d2befe Rename .java to .kt
GitOrigin-RevId: ab037b9bf5ad1641b00b9f6374bcbcb1495aa34c
2023-08-03 17:37:29 +00:00
Vladimir Koshelev
967119e85f [python] add fus events for creating python project and adding python interpreter PY-61461
GitOrigin-RevId: daa2356f445485651eb563d8abd18f48a709d124
2023-07-20 13:00:53 +00:00
Daniil Ovchinnikov
97f0a7fd3b migrate usages of ModalityState.NON_MODAL to ModalityState.nonModal
GitOrigin-RevId: fb4855bfa90dbf384fed24871e4b28ab803847bb
2023-06-09 21:58:50 +00:00
Elizaveta Shashkova
2e2b614657 PY-31773 Implement "Run Anything" for PyCharm
GitOrigin-RevId: 13d7b82ad453721feec41162448c8df18cab39ba
2023-06-07 14:19:08 +00:00
Elizaveta Shashkova
df12595f2d PY-59595 New Run config UI: missing Docker container settings field
GitOrigin-RevId: f91936cd6af21b677dbc1dd83076c5c13ba236ed
2023-05-31 15:57:30 +00:00
Daniil Ovchinnikov
675b19fb2c IJPL-130 rename library kotlin-coroutines-jdk8 -> kotlin-coroutines-core
GitOrigin-RevId: e987a9f48391d74e401c860a57f99634ccc21a4a
2023-05-18 22:52:00 +00:00
Vladimir Krivosheev
227d75a1fc don't extend DynamicBundle
GitOrigin-RevId: 49cbebd629a92877dbeeffba8d97b0631fb9407e
2023-05-05 09:46:42 +00:00
Elizaveta Shashkova
8f6b1f712a PY-54547 Enable layout for new UI in PyCharm IDE
(cherry picked from commit 5171adaf1b49290183909f516bed2a79969ead99)

IJ-MR-105631

GitOrigin-RevId: 09eaee61f2620569ecf68fc273200787849ff662
2023-04-12 15:45:17 +00:00
Pavel Porvatov
b89bd59e4a Using selected() method when possible
GitOrigin-RevId: 337ce4959abc631cef05aa95661b0bd92be35f5b
2023-04-05 15:19:16 +00:00
Anton Bragin
d159181bee PY-57410 Fix titles
GitOrigin-RevId: cd354246ea1899cad2f6b05579559c4819c6dba0
2023-03-10 16:36:12 +00:00
Anton Bragin
ab8a0d3508 PY-57410 Use lowercase for conda
GitOrigin-RevId: c049199904a6d48c311a940df5d1f92f6d69586b
2023-03-10 13:45:21 +00:00
Alexander Koshevoy
b49ecd2f85 PY-56914 Fix Conda with targets
GitOrigin-RevId: 3730b024d5f75e928f9ff4a4c67b79e2d678b51c
2023-02-27 17:39:46 +00:00
Elizaveta Shashkova
308f9110d7 PY-58889 New UI for Python Run configurations
Partial implementation of PY-44688

GitOrigin-RevId: 686c48a6f2649dfebcd079f414cce19559374032
2023-02-21 16:51:46 +00:00
Alexey Kudravtsev
9f5b60b0f0 replace some usages of ContainerUtil.set() with immutable sets to get rid of unclear-semantic methods
GitOrigin-RevId: 3ba1266af01d64a228c10df59b18c4ac797c2a9b
2023-02-20 19:11:19 +00:00
Elizaveta Shashkova
bd1e4751c5 PY-58459 Show and hide "Path mappings" field together with the label
(cherry picked from commit 82710cd9beca4ff9f9ce56896a5203684d18aaae)

IJ-MR-102687

GitOrigin-RevId: 4c9dce7f3cfbf9e8f1ac4fe2d9a550df063898eb
2023-02-10 15:33:40 +00:00
Tagir Valeev
f456ed0604 Pattern variable can be used mass cleanup
GitOrigin-RevId: 55839bf0deca5f81d0f7eb5b1c190145a5ea0037
2023-02-07 13:58:20 +00:00
Nikolay Chashnikov
4899a5a210 cleanup: remove redundant '@author' tags from javadoc comments - 6
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.

GitOrigin-RevId: 30586ed1915e3b35394ff3ee6251607c64bbabdd
2023-01-18 17:01:44 +00:00
lada.gagina
977fbe5f07 PY-53559 Fix setting interpreter from environment variable
Make PySdkFromEnvironmentVariableConfigurator implement JpsProjectLoadedListener instead of StartupActivity.Background, so interpreter setting doesn't interfere with project loading.

Changes after rebasing onto master

GitOrigin-RevId: 1b5a6c7561cf81616ec2279412db34ad3ff70461
2023-01-10 15:00:16 +00:00
Vladimir Krivosheev
67e255b3e5 use ProjectPostStartupActivity instead of obsolete API
GitOrigin-RevId: 9824791cd8096e22b9f7cdf8a969b34ab1c0039b
2022-12-29 07:34:52 +00:00
Vladimir Krivosheev
71fed7b32d status bar - custom layout for correct order of widgets (part 1)
GitOrigin-RevId: 69c7f439fdf7fb2e7d23d40564663e2255c0189b
2022-12-08 09:23:23 +00:00
Vladimir Krivosheev
74711913e6 cleanup - default implementation of canBeEnabledOn and isAvailable
GitOrigin-RevId: 68987906e594ad909bc44a1dc192a19eaf95ce22
2022-12-08 09:23:20 +00:00
Vladimir Krivosheev
d10a32ce3f deprecate myProject - use getter instead
GitOrigin-RevId: 1e6dfa7d696ef49d142b3bc7bf2a71ba12fae59b
2022-12-08 09:23:17 +00:00
Vladimir Krivosheev
a82b9e40a7 avoid using project coroutine scope - pass explicitly
GitOrigin-RevId: dbb211051cd031ed6396bc32821b69e0b3920a0e
2022-12-08 09:23:10 +00:00
Alexey Kudravtsev
c7d42826db add correct wildcards to method signatures
GitOrigin-RevId: 9534fb26e3f625a097c747938c564800895c14b5
2022-11-17 13:44:42 +00:00
andrey.matveev
70d6a4eb79 PY-55360 Use sdk instead of sdkHomePath to allow select interpreter in docker compose
(cherry picked from commit 2ae371ce70be9490ddb14b6981366e06a41ddb5d)

IJ-MR-96284

GitOrigin-RevId: 832cadd71e1a0d47852e44854b2ead217342b7e4
2022-11-14 18:55:08 +00:00
Vladimir Krivosheev
6179d12db3 status bar widget id must match corresponding extension id
GitOrigin-RevId: a7330c00bd887a2f09b3b066e7994a8965052ede
2022-11-14 17:42:09 +00:00
Vladimir Krivosheev
7ed8aab13d default implementation of disposeWidget
GitOrigin-RevId: 4e2a7ee7fe76283135a510d8d5ae910f59572c62
2022-11-14 17:42:03 +00:00
Konstantin Hudyakov
de818a91f6 IFT-416 Edit onboarding banners text
Also edit the text of DataSpell onboarding for consistency.
And decrease the font size of the onboarding banner title.

GitOrigin-RevId: 8bdc141f8a27773e7d5659d14c1ad2d3270a70f1
2022-11-10 08:36:58 +00:00
Pavel Porvatov
15a7c25172 IDEA-305403 Remove usages and deprecate HideableDecorator component
- PyIdeCommonOptionsForm

GitOrigin-RevId: 876eb03368b4b0a8d5e2ed1671a28410d45da65b
2022-11-08 09:09:42 +00:00
Pavel Porvatov
79841c1231 IDEA-305403 Remove usages and deprecate HideableDecorator component
- PyIdeCommonOptionsForm

GitOrigin-RevId: 2ad9e0f4c8db08fe317e9d8b3c1af4508775dd8f
2022-11-07 21:44:09 +00:00
lada.gagina
2372a334cd PY-56095 Fix Poetry environment setup message
create -> set up, as the environment de facto exists

GitOrigin-RevId: 0d13019eb8a364f62f7b66bcdc4f7b7e12d76592
2022-11-02 20:07:49 +00:00
Ilya.Kazakevich
a32c1b2148 PY-57014: Filter out wrong interpreters for module resided on WSL
For modules resided on ``\\wsl$`` you can only use python from the same WSL distribution

GitOrigin-RevId: 719f3fc8871bb4e7b2e8726b4b1888f3dbd49807
2022-10-27 04:38:42 +00:00
Ilya.Kazakevich
af120d8567 PY-57014: Detect python on WSL
WSL config is ``TargetConfigurationWithLocalFsAccess``. If module resides on it, we convert "local" path to "remote" (``\\wsl$\foo\bar`` -> ``/foo/bar``).
TargetAdditionalData should also be stored

GitOrigin-RevId: c301686d0e6fac17744a2bfd156777c165191172
2022-10-26 22:49:58 +00:00
Ilya.Kazakevich
d7207c7b73 Get rid of Conda detection
Conda is not "local python" anymore, hence can't be detected. We could detect conda binary, but there is no reason to create SDK for all its envs

GitOrigin-RevId: 294b15963c39a8ca1c7f880539a0758eddf1adab
2022-10-26 22:49:54 +00:00
Andrey Starovoyt
9cd42b7bcd new project wizard: by default update in background
GitOrigin-RevId: 71c6095222a93836fcb43f1893eae63ccb06233e
2022-10-24 11:59:31 +00:00
Ilya.Kazakevich
a4dcfdd16e PY-35978: Improve Conda support and refactor other parts to support it.
Each sdk has additional data with flavor and flavor-specific data. For target-based SDK there is also target information. ``PySdkExt`` has extension method that uses this data to execute code on some SDK. For Conda we store path to conda binary and env name.

GitOrigin-RevId: c63b57aac9b5a267b3a6710902670bfe7d10c722
2022-10-12 17:55:25 +00:00
Egor Eliseev
49cf2b6140 PY-56171 Disable Command Queue for PyCharm by default
IJ-CR-95391

GitOrigin-RevId: 6ef969263782e69f8727b74af19f8a5a5ffd763e
2022-10-11 11:23:35 +00:00
Tagir Valeev
0577e2f137 Text blocks used in production code
GitOrigin-RevId: f9f5c027037972fd02aa6d3e262bb175e2b676b3
2022-09-27 11:30:34 +00:00
Ilya.Kazakevich
50ce0b803b Move conda in separate package (as part of refactoring)
GitOrigin-RevId: 9d93793cba64d0aa8352399cd7dd8a1537aec845
2022-09-26 13:53:11 +00:00
Roman Shevchenko
321cc8aae2 [ui] ensuring uniform capitalization of status bar widget names
+ cleanup (warnings; formatting)

GitOrigin-RevId: 79e5475ef0767f7ecfe19d4837595276dc62ff2d
2022-09-08 17:07:41 +00:00
Elizaveta Shashkova
fde77c8f55 PY-56077 Set action update thread
GitOrigin-RevId: cb44dc3b5e8b8c70d7f6890f7f28dd57a1a1193f
2022-09-06 11:12:16 +00:00
Alexey Merkulov
0f512c103e IFT-394 Rework promoter, so it can be used in non-empty case
And fix double scaling in empty borders

IJ-CR-28024

GitOrigin-RevId: eb91b5485533fc9024354d8872c334ee6408a7c9
2022-08-10 18:05:19 +00:00
Alexey Merkulov
777cd13006 IFT-394 Implement closing promo
IJ-CR-28024

GitOrigin-RevId: 032a39e5de4a547561c4e7124afeb6424bdf37f1
2022-08-10 18:05:18 +00:00
Alexey Merkulov
c997826d3c Refactoring: convert methods to properties
IJ-CR-28024

GitOrigin-RevId: d1d6b6b3114bb30dc6c2507457eb157a9621cc55
2022-08-10 18:05:15 +00:00
lada.gagina
6e939f5726 PY-53559 A command line way to configure a project interpreter
Added a possibility to force PyCharm to use a particular virtualenv using an environment variable "PYCHARM_PYTHON_PATH"

GitOrigin-RevId: bd2d0b959f9d40339ba2c3b91c5577dc842e3fea
2022-08-04 00:03:26 +00:00