Commit Graph

212 Commits

Author SHA1 Message Date
Egor.Eliseev
0c73c9eff9 PY-72274 separating content for python core/pro plugins
1. Delete `intellij.python.community.impl.xml` (move content to `PythonCore` plugin). It is necessary to fix incorrect dependencies: `PythonCore`, `Pythonid` include the same module.
2. Fixed dependencies: if some plugin/module needs Python core functionality, then it should depend on `PythonCore`.


Co-authored-by: Vladimir Koshelev <Vladimir.Koshelev@jetbrains.com>

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

GitOrigin-RevId: ce9ed4c17f601ee1ca2b6cf608f4e30fdac1d879
2024-06-19 21:39:24 +00:00
Mikhail Pyltsin
2152c276dc [python] Pattern variable can be used mass cleanup
GitOrigin-RevId: 04229dfd0912fbc846d4b1d5e3726ef6c9c005c6
2024-04-18 14:03:55 +00:00
Vladimir Kharitonov
6a26cd0e03 fix deprecation JBCefJSQuery#create warning
GitOrigin-RevId: 2ab8a2f02a8b1734adca17e4bf5dbfa7eafbcd45
2024-03-04 17:36:37 +00:00
Ilya.Kazakevich
9d4751f238 [python, ds, jupyter]: Migrate Python support to V2
Layout:

  JPS modules
  `intellij.python.community`
  `intellij.python.community.impl`
  `intellij.python.parser`
  `intellij.python.psi`
  `intellij.python.psi.impl`
  `intellij.python.ast`
  use package `com.jetbrains.python`
  and go to `intellij.python.community.impl` v2 module

  JPS module
  `intellij.python`
  uses package `com.intellij.python.pro`
  and goes to `intellij.python/pro` v2 module

  Both v2 modules (along with lots of others) come with
  `PythonId` (prof) or `PythonCore` (community) plugins

  DS bundles  `intellij.python.community.impl`

  Idea and other Mini IDEs get `PythonCore` or `PythonId` plugin that bundle modules for Idea and mini IDEs

GitOrigin-RevId: 98f418c52d90d51b9adf3250c561f2c36c767e2d
2024-01-22 20:26:58 +00:00
Ilya.Kazakevich
ab9ea210a6 Merge ReST plugin with ReST Python module, convert module to v2
Nobody uses it except Python

GitOrigin-RevId: 4da3e7da0dcd86d454972b2ef68d2581c7fe5cdb
2024-01-03 16:35:59 +00:00
Georgii Ustinov
995905b519 Refactor usage of ModCommand in AddEncodingQuickFix and RestRoleInspection
PY-65297

GitOrigin-RevId: e5ad7bfcec3b16ac249c62320e6811df0d7571cc
2023-12-14 14:36:52 +00:00
Andrey Cherkasov
06342a71b3 [python] Make extension classes final
GitOrigin-RevId: d650b5e733d806a06911f942cfd1dec70197b061
2023-12-13 20:02:09 +00:00
Georgii Ustinov
47441f39d7 Migrate AddGlobalQuickFix and AddIgnoredRoleFix to ModCommand
PY-65297

GitOrigin-RevId: 91ab4653fbd2d4f5fe3df6d888ce0f2b8adb0ace
2023-12-13 14:56:59 +00:00
Aleksei Kniazev
58ab03a4bd [python] use new packaging api when checking if sphinx quickstart action is available (PY-60956)
GitOrigin-RevId: 4bfcc605be6afcebb4810a39cc8b912da9d0b259
2023-11-20 19:03:12 +00:00
Andrey Lisin
24594b7eb1 PY-63229 Fix read access violation that prevented displaying preview of reStructuredText files
GitOrigin-RevId: 7b08245efe3bc600358f2bcb7a6c51cbd4a5e2f0
2023-10-30 19:18:05 +00:00
Tagir Valeev
51854f80b3 "Method can be static" fix massive application
GitOrigin-RevId: ed296b85922a6814d5c6057b5cbc720f0c546e41
2023-10-20 19:12:56 +00:00
Elizaveta Shashkova
a00bae893b PY-41348 Add macros to working dir
(cherry picked from commit b70585ccc7ca18a187f2349d5655c39ab7795b3b)

IJ-MR-114581

GitOrigin-RevId: 004b1c0b88d9c1090f2390adb333859ec89c4842
2023-09-28 20:11:08 +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
Tagir Valeev
f456ed0604 Pattern variable can be used mass cleanup
GitOrigin-RevId: 55839bf0deca5f81d0f7eb5b1c190145a5ea0037
2023-02-07 13:58:20 +00:00
Tagir Valeev
56013717c5 [inspections] Rename OptSet -> OptStringList; stringSet -> stringList
This reflects that we usually preserve ordering and in fact map to the List<String>

GitOrigin-RevId: f44eb3efae5db372dfb1747d86b728a23ec5745b
2023-01-17 15:37:26 +00:00
Tagir Valeev
fa3cf18c12 [inspections] OptPane: use stringSet
GitOrigin-RevId: 7f3ba5c990d8aa173d8edf3a38bb21543c26d0fa
2022-12-21 19:22:09 +00:00
Tagir Valeev
adb060863f Text blocks used
GitOrigin-RevId: 7db538c0a10131a3f946436c85b42fe7d7dc5b10
2022-09-29 12:58:29 +00:00
Alexey Kudravtsev
82dbf127b8 cleanup: reduce visibility of CommonProblemDescriptorImpl
GitOrigin-RevId: 46f481b5785df8f67f15086fcc1fdea7528f0e02
2022-08-16 13:12:15 +00:00
Ilya.Kazakevich
9b883fbebc Get rid of outdated dependency on java5
GitOrigin-RevId: 42421ef1d1db3f5d30ed898c0f1aab2129eded6f
2022-07-25 14:59:30 +00:00
Andrew Kozlov
a3d88ed86d [actions] action-update-thread: sphinx action
GitOrigin-RevId: 8c42a530d5d3dd6aa60b12e5588697a376d51ef8
2022-07-13 15:33:19 +00:00
Vyacheslav Moklev
66fc359182 [CodeWithMe] CWM-6658: Add support for more run contents
GitOrigin-RevId: 73dcfec80acca1cb8d2149ded31e3f4f0b33c9cf
2022-07-13 10:26:57 +00:00
Daniil Ovchinnikov
78c3e54c63 deprecate ProjectFileIndex$SERVICE
GitOrigin-RevId: 725283401fc7db28fd332d72eaa67e3a8e175259
2022-05-17 20:13:19 +00:00
Vladimir Krivosheev
a8f6a48409 add jdom to source code to modify and strip to our needs
GitOrigin-RevId: 3e16d0d954aa7bc45c4eadb91164b44e4b2e75d3
2022-03-27 18:52:47 +00:00
Alexey Kudravtsev
4042119416 supply unique project name/project creation stacktrace to each light project test, to ease debugging leaks/errors
GitOrigin-RevId: 7913ac913e8910813645af0b9ef20c3fc3b6ebf7
2021-11-25 12:43:07 +00:00
Irina.Fediaeva
6c243ee77f PY-50769: Make python completion contributors DumbAware
Completion contributors already wrapped in `DumbModeAccessType.RELIABLE_DATA_ONLY.ignoreDumbMode` in `CompletionProgressIndicator#calculateItems` so we don't need any extra-wrappings to prevent IndexNotReadyException

(cherry picked from commit 83c120ed2502474f3ddcfa2a52c6e9552d02e55e)

IJ-CR-14512

GitOrigin-RevId: e806ecb879708a75a8e7f544ea6d16a0648ca069
2021-10-14 08:38:49 +00:00
Alexander Koshevoy
d2f15b6adc PY-44016 Introduce HelpersAwareTargetEnvironmentRequest and rewrite PythonScripts.kt accordingly
GitOrigin-RevId: b3d1a3a8b5600134eefb3ff4cca729a6100545b1
2021-09-22 12:35:08 +00:00
Semyon Proshev
96ca67b701 Remove support for buildout (PY-49193)
GitOrigin-RevId: 6c9e582d92b7c1c5f43648022abe315906e2786c
2021-09-14 17:08:51 +00:00
Dmitry Trofimov
13503ced4c Rationalize PlatformCoreDataKeys usages
GitOrigin-RevId: a07b3295a4af22918daa19f521888645f16e8017
2021-08-25 15:23:28 +00:00
Semyon Proshev
f234552ee1 Do not override InspectionProfileEntry.isEnabledByDefault in python inspections due to its javadoc
GitOrigin-RevId: 851edaf9034d63d7754bfc410373f3721eb03e68
2021-04-30 10:35:15 +00:00
Louis Vignier
0f575fbfa5 IJ-CR-8338 [codeInspection] Update ListEditForm
GitOrigin-RevId: 60b16d88ad47f62ad56aea840e2c6b381f54f5ea
2021-04-19 19:09:02 +03: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
Andrey Lisin
de13bec587 i18n: Extract hardcoded reStructuredText preview error messages to bundle
GitOrigin-RevId: e11f500e1172a810723d7b7e276de6834fd77b4a
2021-03-12 09:33:10 +00:00
Anna Kozlova
cfa826f9b6 java 11 migration: explicit -> diamond for anonymous classes
GitOrigin-RevId: ce15f37f8882fb7915cf5c8b62e3cc4601a5cc76
2021-01-17 11:16:51 +00:00
Mikhail Golubev
f06432727f Mark all PyCharm directories with test data as test resources
GitOrigin-RevId: d9135fee5c56219aea17972916635eb4964acaa6
2020-12-11 15:10:57 +00:00
alla redko
ad40a2ae30 IDEA-248848
GitOrigin-RevId: 1ab7de3eb8736b0b47e5181794d1a799cf16fc7c
2020-11-30 22:16:32 +00:00
Alexandr Evstigneev
89bbc0b158 IDEA-CR-68537 Added nullable annotation to the getContentElementType method return value
GitOrigin-RevId: 941b1b49fee13fd6d74a76c1a82d3fb15c80f783
2020-11-19 11:43:14 +00:00
Mikhail Golubev
542a6ffe04 i18n: Annotate API related to Python run configuration and testing
GitOrigin-RevId: a948da2a9ea4e866a0727eed579e1d624a5a76bc
2020-10-22 21:30:09 +00:00
Vladimir Krivosheev
a67c59c561 platform.core.impl — remove dependency on intellij.platform.util.ui and intellij.platform.core.ui
java.psi.iml — remove dependency on intellij.platform.core.ui

GitOrigin-RevId: c1d4feb04c0471c7d17b5331b86738ee54a97f80
2020-09-21 13:40:47 +00:00
Vitaliy.Bibaev
9e512be3b5 i18n: JUnit (fix consequences in run configurations) (IDEA-249456)
GitOrigin-RevId: 2b2187688cd316874d85276db537865429e8ed43
2020-09-15 09:42:10 +00:00
Andrey Lisin
4abd743d19 i18n: reStructuredText
GitOrigin-RevId: c853adf0801a57e809c0be76a848c563014d5a6f
2020-08-21 13:49:36 +00:00
Alexandr Evstigneev
f813c00b44 Fixing platform code according to OuterElement changes
GitOrigin-RevId: 67dbdffaad4913acb941bc58ebee055a13ec0d7e
2020-08-15 07:59:31 +00:00
Alexander Koshevoy
841609401e PY-40375 Move Python Run Configurations to Target API
Targets API implementation for Run Configuration is enabled by the registry key "python.use.targets.api.for.run.configurations".

GitOrigin-RevId: d5a70ae8951d14689d079b54b32f7050471ffdb5
2020-07-08 11:34:10 +00:00
Vladimir Krivosheev
d4e9b09e26 cleanup (final)
GitOrigin-RevId: 93607e195763f2acf29ee0d7a280d7e07e8d2f14
2020-06-26 12:21:17 +03:00
Tagir Valeev
128370d4e3 Unnecessary qualifiers removed, some other cleanup
GitOrigin-RevId: 906af988c0b66ecaee588dfb5e16a1801051df97
2020-05-27 07:24:15 +03:00
Lada Gagina
b7fde6791b PY-40431 i18n: Add non-python UI strings to bundles
GitOrigin-RevId: 90b88f80e0c8d1cb1c2ae3a016024c817d74271e
2020-05-12 15:46:04 +00:00
Mikhail Golubev
98ec123ac6 PY-41923 Don't parameterize ReST run configuration providers with exact run configuration types
Hence staying closer to the original implementation that didn't distinguish
Sphinx and Docutils specific run configuration internally. It may be beneficial
to return the exact run configuration types once they start to actually differ
in some way or become applicable in some overlapping contexts.

GitOrigin-RevId: 8104c4949dea558ca4199ad06172d1ce9fb1ab8c
2020-04-29 22:04:28 +00:00
Mikhail Golubev
e1e70a2c7c PY-41923 Migrate ReST configuration producers to newer dynamic plugins-ready API
The main problem with them is that due to an odd design decision they both share
the same configuration type -- RestRunConfigurationType, and it doesn't quite fit in
this newer typed API, e.g. isConfigurationFromContext() can receive a configuration
instance of a wrong type (DocutilsRunConfiguration for SphinxConfigurationProducer and
vice-versa) due to it, producing a CCE at runtime. I employed a workaround already
used in Python testing run configurations sharing the same problem. Namely,
overloaded getConfigurationSettingsList() to additionally check that instances of
RunnerAndConfigurationSettings with RestRunConfigurationType type actually
correspond to run configurations of the proper concrete class.

Note that setupConfigurationFromContext can also receive a run configuration of a wrong
type but in reality it doesn't happen since Sphinx and Docutils run configurations are
applied to different contexts -- directories and individual .rst files respectively.

GitOrigin-RevId: 15fbb90917edd68e6f29b696c527ff04d4eed433
2020-04-29 22:04:28 +00:00
Vladimir Krivosheev
444b7d3d40 get rid of Lists.newArrayList
GitOrigin-RevId: d785fe6fab133812585561c391d7d3556d5792f7
2020-04-16 08:29:17 +00:00
Aleksei Kniazev
00a3b19b73 resource-bundle fixes for some python actions (PY-41126)
GitOrigin-RevId: cca188efce86b6fe846825b88d259b9bb6227e82
2020-03-17 20:53:55 +00:00
Elizaveta Shashkova
11b33c6693 PY-40431 i18n related to Python interpreter configuring
GitOrigin-RevId: c68cf197d2b0f95ad2e8a1866d29c24d52751bdb
2020-03-12 14:01:33 +00:00