Commit Graph

25573 Commits

Author SHA1 Message Date
Aleksei Kniazev
fb09f01da9 show empty description for python packages if a remote interpreter is selected (PY-47789)
(cherry picked from commit 0709ca8b077fd34f757a415e63911afa345b90d4)

IDEA-CR-71087

GitOrigin-RevId: 452330bbaa830f06ec682141f3be61585ea7f870
2021-03-29 14:04:20 +00:00
Aleksei Kniazev
cddccd178f icon for python packages toolwindow (PY-47802)
(cherry picked from commit fedd478accb79968cdab7f8b41cea7423e98564f)

IDEA-CR-71085

GitOrigin-RevId: 3e7c55f7abb8663c7649582bfdccbc9cc633cf8b
2021-03-29 13:27:19 +00:00
Aleksey Pivovarov
06dd3abbb4 EA-263521 T: RootIndex.<init>
GitOrigin-RevId: c851bb1e3c1235704818eae22f442b46fd19f5b5
2021-03-29 12:33:17 +00:00
Andrey Vokin
64663ae49d DS-1402 No easy way to change interpreter for all Workspace directories
Conda: Handle mock SDK

GitOrigin-RevId: 132a71c9cbd1a0fc7f56229d5e54492d8972f363
2021-03-29 10:53:07 +00:00
Semyon Proshev
ca6cf07aae Minor cleanup (DS-1402)
GitOrigin-RevId: 0042763f41b30c65c0afaa97f55da70c3e4b6414
2021-03-29 10:09:35 +00:00
Semyon Proshev
52423b4e4a Don't create welcome script for projects opened in temp directory (PY-46055, PY-47697)
GitOrigin-RevId: 35794bb7ee045b066aeb7de122303fda1eca6a58
2021-03-29 09:32:55 +00:00
Andrew Kozlov
e2ba3bfbf3 [plugins] a common way to initialize plugins; pre-defined list of plugins in PluginGroupDescription
GitOrigin-RevId: c59ce90f0daaff2d843643100765e125f64ae13c
2021-03-28 22:11:57 +00:00
Andrey Vokin
b039ea9fc5 DS-1402 No easy way to change interpreter for all Workspace directories
Add option "Workspace SDK" to the combobox with SDKs

GitOrigin-RevId: 25691ca0426c05ef79bc8568fc1513199ff0d59e
2021-03-28 21:29:44 +00:00
Andrey Vlasovskikh
611f8bf640 PY-12988 Moved virtualenv activation for VCS commands to the Python plugin instead of PyCharm Customization plugin
We need this functionality in other IDEs with the Python plugin besides PyCharm.

GitOrigin-RevId: b12abb4c2c9da33affbdb88fc58208d7de5a7ca1
2021-03-27 13:55:48 +00:00
Andrey Vlasovskikh
11331bcefa Restored previously implicit dependency on lvcs.impl for PyCharm internal runs
This dependency used to come from intellij.xpath via xml.langInjection.

GitOrigin-RevId: b312c3db715231b5539748ca7c36142b3d18849d
2021-03-27 13:31:01 +00:00
Vladimir Krivosheev
a5b0712650 reduce usages of internal impl ApplicationInfoImpl class (to be able to hide it / move out from core to use JDK 11)
GitOrigin-RevId: f1f872290e46585aa2dedd74b8452d15ae958f56
2021-03-27 09:13:45 +00:00
Vladimir Krivosheev
809b7ca201 deprecate ServiceManager.getService(project)
GitOrigin-RevId: 3805c3aac4e084c828558bf1b1570339f7f3b4a3
2021-03-26 21:30:32 +00:00
Semyon Proshev
75b5dfce25 Fix for EA-258166
Caused by 392bb30dfc4feaaaf95634d566bf55ae2bbeebd5

GitOrigin-RevId: 7e2d384e9c51b4a68509ad5d32e73132108cc43e
2021-03-26 20:29:17 +00:00
Vladimir Krivosheev
28e62af65b cleanup (reduce usages of deprecated Getter interface)
GitOrigin-RevId: 4d916ad1e868a8eed7793a7cf22965a2096e38e8
2021-03-26 20:22:17 +00:00
Semyon Proshev
566ab797db Attempt to fix EA-253812
GitOrigin-RevId: 5272ab1da4038bdbded8b9dd945da072be2788b5
2021-03-26 19:58:59 +00:00
Semyon Proshev
f69e2afaa4 Attempt to fix EA-252027 by filtering out overloads in the more suitable method
GitOrigin-RevId: 236d1a819ededc90ae4cb35baab73d547de7941c
2021-03-26 19:12:41 +00:00
Semyon Proshev
a850a1e5dd Attempt to fix EA-243756
GitOrigin-RevId: 1a4dbcfbcabe109f0eb9f6df66ba31a24221ec6b
2021-03-26 16:45:39 +00:00
Lada Gagina
78048abb15 PY-47247 Suggest subpackages and submodules in module attributes completion
IJ-MR-7312

GitOrigin-RevId: 2333fdc6ef9974b0f80bbe4d829c1211dde722ac
2021-03-26 13:38:45 +00:00
Aleksey Pivovarov
d92691af31 PY-12988 vcs: customize virtualenv for git hooks
GitOrigin-RevId: 82b4dfdfa9405f74e25f8a98ef2c428f927b9965
2021-03-26 13:12:30 +00:00
Semyon Proshev
471df4077a Attempt to fix EA-225660 and EA-227571 by passing all existing sdks to new env panel
GitOrigin-RevId: 462e0a853f5a046e216abe355ee3992c41cc32c9
2021-03-26 11:35:15 +00:00
Kirill Likhodedov
e4762bdd2a trusted-projects: check if the project is implicitly trusted (e.g. via Trusted Locations) in getTrustedState() method
This fixes IDEA-262975, RUBY-27887

GitOrigin-RevId: 52bcd4567b84a231c4113f7b481e6dc406e272e1
2021-03-25 09:44:02 +00:00
Konstantin Hudyakov
328b4bb8c8 IFT-190 Make Recent files lesson completable with Python 2.7
IDEA-CR-71042

GitOrigin-RevId: 664c3b34a8146931683ad87913ad6ce7f5dfd7f4
2021-03-25 09:33:06 +00:00
Konstantin Hudyakov
1c6fd8d650 IFT-189 Show warning if Python 3 not installed in FString completion lesson
IDEA-CR-71039

GitOrigin-RevId: 2e3eff55e75c645e2708026fd13787a5c5072e8a
2021-03-25 09:32:10 +00:00
Andrey Vlasovskikh
65dee450b8 PY-45368 Fixed completing 'None' in type annotations
GitOrigin-RevId: fc7e7ff0a03ce41373bac2eedbf3e8b7aaa2ce4d
2021-03-24 14:53:13 +00:00
Alexey Merkulov
87dee98979 [IFT] Replace pictures for PyCharm onboarding promoter
GitOrigin-RevId: 4992a8b3f9dc63d941cf2d12a5f48da807a9a642
2021-03-24 13:41:04 +00:00
Alexey Merkulov
48978184b0 [IFT] Adjust debug lesson for Python 2.7
GitOrigin-RevId: 8362390b6dead28e8c25a77012f3f9b46f003b9c
2021-03-24 12:42:31 +00:00
Mikhail Golubev
1a5abfcaf0 PY-47304 Add the missing issue ID next to the test
GitOrigin-RevId: 0903cce86f20db04a5b655633085c04a0001ebff
2021-03-24 10:04:22 +00:00
Mikhail Golubev
d774de8aae PY-47795 Make access to PyExportedModuleAttributeIndex flat, remove nesting
Nested index access is prohibited and can cause deadlocks.

GitOrigin-RevId: d3e4e21491bb17126ad1ac45cec78ba554149e45
2021-03-23 21:14:20 +00:00
Mikhail Golubev
381461e4d5 PY-47633 Update PropertiesManager to process imports in all definitions of a property
It turned out that saving/restoring imports in MethodsManager and
PyClassRefactoringUtil duplicated the logic already present in
TypeSafeMovingStrategy. Removing the redundant operations didn't immediately
work for refactorings over properties, however, for two reasons:
- PropertiesManager didn't return all components of a property definition
as elements which references need to be remembered (only its getter).
- TypeSafeMovingStrategy didn't handle references to other moved elements
and tried to re-create imports for already invalid PSI.

GitOrigin-RevId: f27d0dc192002b0fc42f923cd8b25664bd14257e
2021-03-23 21:14:19 +00:00
Mikhail Golubev
f76600603e PY-46099 PY-47633 Don't remember usages in non-physical copies of methods in Pull Up/Down
PSI element copies exists in special non-physical files (DummyHolders),
and usually references in them cannot be resolved. It led both to exceptions,
when the rest of the code insight didn't expect resolve to happen in files other
than PyFile (PY-46099), and situations when we failed to resolve a usage in
a copy and restore the corresponding import (PY-47633).

Switching to processing original declarations also revealed a problem with
inserting imports -- we might have tried to insert impossible imports for
non-top-level symbols, such as class attributes and methods. Now, these are
ignored.

GitOrigin-RevId: 6816078596a2c0aced7045a80828b7e83ebee8c0
2021-03-23 21:14:17 +00:00
Konstantin Hudyakov
48def2e239 IFT-186 Fix proved and probable NPEs in UI detection triggers
IDEA-CR-71027

GitOrigin-RevId: 53a112b53275be16bf6c73ab5ae67da2aea3b700
2021-03-23 13:28:12 +00:00
Konstantin Hudyakov
1ba98e8f36 IFT-169 Add warning to refactoring lessons if inplace refactorings disabled
IDEA-CR-71024

GitOrigin-RevId: 7407b3f02b3acb4f4244434db498554a9cbe8172
2021-03-23 13:27:10 +00:00
Semyon Proshev
ea9c2c9415 Reuse if-statements approach for while-statements to understand when and where condition is succeeded/failed (PY-39262)
It allows to assume that under `and` condition all sub-conditions are satisfied.

GitOrigin-RevId: f58ed2706d7eb9c1595415cce57cb8020011b57a
2021-03-23 11:45:13 +00:00
Semyon Proshev
882c5348b3 Add separate CFG instructions to if-statements to understand when and where a condition is succeeded/failed (PY-39262)
It allows to assume that under `and` condition all sub-conditions are satisfied.

GitOrigin-RevId: 104bb5a2200791d183cc26e008b974a6b658fa37
2021-03-23 11:45:12 +00:00
Elizaveta Shashkova
831b3a2ed0 i18n in pydevSrc module
GitOrigin-RevId: 41c8ba624008881c12fd279d84722521bbfc2a23
2021-03-23 11:00:54 +00:00
Alexey Merkulov
d7f47f809b [IFT] Use custom Python onboarding images
GitOrigin-RevId: fa2209c3c56cdb3610c46d04dddd61038e4ddb03
2021-03-23 09:28:41 +00:00
Alexey Merkulov
b8830dc7ea [IFT] Add Python onbording tour promo images
GitOrigin-RevId: e43bf2848caa83e1ee5414f019e056eaf1be031f
2021-03-23 09:28:40 +00:00
Dmitry Batrak
38155b147c IDEA-264147 Chosen font variation is ignored in some dialogs
GitOrigin-RevId: 223e4b0eeb7816ced199d03b7819e1dbc1a48896
2021-03-22 16:13:51 +00:00
Dmitry Batkovich
d5d82af58a remove method unused parameter
GitOrigin-RevId: 44de250731f8fea3938ba70fd2e172d58b8d2d46
2021-03-22 14:20:44 +00:00
Alexander Zolotov
f4985175be [editor] get rid of unneeded cast to EditorEx
GitOrigin-RevId: 49107436ff89eed5ecf82b0db716bcea59915419
2021-03-21 20:54:47 +00:00
Andrey Lisin
245207ee9d PY-31110 Display unknown reStructuredText directives verbatim
(cherry picked from commit d85b7c8b514342d5cab1fe200bd08477f5081566)

IDEA-CR-70988

GitOrigin-RevId: 8ccab5e6eb96321fdcc229f73e34965024d3bc89
2021-03-21 17:23:49 +00:00
Konstantin Hudyakov
e32773646c IFT-181 Improve Editor coding assistance lesson
IDEA-CR-70982

GitOrigin-RevId: 1f78e7471f3391dbbbe9281d7db10766ea1c548f
2021-03-19 09:38:07 +00:00
Konstantin Hudyakov
47698f9e06 IFT-177 Fix localization in Python Quick-fix lesson
IDEA-CR-70981

GitOrigin-RevId: 85da73cbb1293c3c95738d0196f3ba9e826d0e3b
2021-03-19 08:01:40 +00:00
Dmitriy.Panov
ed85bb49ce intellij.marketplace bundled into PyCharm Community
GitOrigin-RevId: bb024346a6a9f2206e74894259dad502bd5acb17
2021-03-18 21:54:45 +00:00
Alexey Kudravtsev
b38471cd12 annotate NotNull list of NotNull VFileEvents
GitOrigin-RevId: a330c0c2f58ce07d19ec1006e22c77c2a3ae7e9d
2021-03-18 13:00:31 +00:00
Patrick Scheibe
5e1b57f6d7 ElementPattern et al: JavaDoc
GitOrigin-RevId: 0c2ec9751e8b059c0c9a5ba7c66e587f0ae140f4
2021-03-18 09:32:44 +00:00
Vladimir Lagunov
a5b4ed0bf2 EA-241384 NPE: PyFindUsagesHandlerFactory.proxy
GitOrigin-RevId: 77a69488a3a9617285083fd6d678c5c358d607a9
2021-03-18 07:50:28 +00:00
andrey.matveev
462574a88f PY-31369 Fix testTypeCommentedParameterNoIntention
GitOrigin-RevId: 2a14f90034a74d10005223e6cb6c35f2efa66a3a
2021-03-17 17:05:34 +00:00
Elizaveta Shashkova
f5e6c0db2a IJ-CR-6110 Fixes after review
GitOrigin-RevId: 760a61a6a28b0ca8acb0aedbc7bc3f1d8f25d9eb
2021-03-17 15:33:14 +00:00
Semyon Proshev
0229312f12 Remove strings because of no usages after 37218dfbc20ab94e3b93714fc1437a942ea82700
GitOrigin-RevId: 03c63e9952cadc72dd6a6c417793229858554cf7
2021-03-17 14:54:21 +00:00