Commit Graph

167 Commits

Author SHA1 Message Date
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
Lada Gagina
8a29a375f3 PY-40431 Extract messages to the message bundles for i18n
GitOrigin-RevId: c7b652bab17e0b37959d71fe7335212395212bdb
2020-02-18 20:57:58 +00:00
nik
2c59c81361 [run configurations] implement ConfigurationFactory::getId method in all inheritors and return non-localizable value
The default implementation delegates to 'getName' method and it may cause problems if it returns localized value (IDEA-232878).

GitOrigin-RevId: 28495a477af06896f0c3f98141b424c33920f1e0
2020-02-13 13:17:58 +00:00
Alexander Koshevoy
5e9e741485 PY-40431 Extract messages from actions in intellij.python.reStructuredText module
GitOrigin-RevId: 9847e96efbd53db923943d9dfea936f5571e1bd6
2020-02-10 14:20:15 +00:00
Alexander Koshevoy
8b281d03b6 PY-40431 Extract messages from intellij.python.reStructuredText module to the message bundle
GitOrigin-RevId: a312f6528e6ae746299b61f01d1115637d33ad61
2020-02-10 14:20:15 +00:00
Peter Gromov
1eb9b217d8 allow to depend on platform.execution.impl without depending on huge platform.lang.impl module
GitOrigin-RevId: 4386ae794f21698559c8d793ce1c355cf4dba244
2020-01-27 16:36:02 +00:00
Tagir Valeev
78a91459c4 Array annotations changed to type-use style (not compilable now)
GitOrigin-RevId: 68aa4ba200618083684599228e13dfdba35967a4
2020-01-16 08:11:51 +00:00
Sergey Ignatov
f7872198b1 mv rest bundle
GitOrigin-RevId: e1e77c3cd78c6ec44d874db2d2326b6b8ccede6d
2020-01-05 19:31:47 +00:00
Mikhail Golubev
1f57e524db PY-39532 Implement RestFileViewProvider.getContentElementType mimicking its createFile
It was forgotten during implementation of IDEA-106449. Without this method
we tried to parse the whole injected reStructuredText content as a valid
Python file not surprisingly containing tons of syntax errors and then
run all the normal Python inspection over it.

GitOrigin-RevId: ed12c9c6ead90ebb0b5a083126410b2c8cbff233
2019-12-27 15:40:08 +00:00
Anna Kozlova
abc4a9ae72 no need in overriding getDisplayName for inspections
in production InspectionEP#displayName should be used; highlighting tests just do not use default names

GitOrigin-RevId: f0c172e568219499e7b96982fe352c7d1d3acc69
2019-12-11 08:03:54 +00:00
Peter Gromov
d3aec439fa python: replace deprecated transactions with invokeLater
GitOrigin-RevId: 54abf524bb040f56459e1148283e5cb92cb2a300
2019-11-26 13:43:52 +00:00
Gregory.Shrago
92f5adff73 PY-38312 Reuse Python plugin in PyCharm
GitOrigin-RevId: 614aecfde6c57cb8f2b99c01c7085c5ae33a1d5d
2019-10-08 17:03:50 +00:00
Alexander Zolotov
4f5dbd65a4 Make python auxiliary plugins incompatible with IntelliJ IDEA as they are bundled into python plugin
+ get rid of python plugin without auxiliary plugins inside

GitOrigin-RevId: 4a74b542be95aa012b7d74755bfffab21c8c0cfe
2019-09-30 15:03:47 +00:00
Dmitry Trofimov
a0bc048dcc python-psi-impl extracted
GitOrigin-RevId: e3d808c147ac793701c7b628dbf825a99bb71f2a
2019-09-11 19:15:01 +00:00
Semyon Proshev
9dcbfb78fd Reduce PythonSdkType.activateVirtualEnv(String) usages (EA-209936)
Use `PythonSdkType.activateVirtualEnv(Sdk)` instead with caching.

GitOrigin-RevId: 175afc2b52a4f50f4e63c3f33a2f89aab85ffd39
2019-09-03 14:59:03 +00:00
Andrey Vlasovskikh
f0c3fa13b0 PY-29858 Make all Python run configurations dumb-aware
Python run configurations don't use any indices, so it's safe to update/invoke them while indexing. This change enables
Run / Debug / Profile / Run with Coverage / Concurrency Diagram.

GitOrigin-RevId: 4993c859983c336b88984033ae209fc221290e2a
2019-07-26 15:02:42 +03:00
Roman Shevchenko
e6abc7158f [project] non-runtime code should not use directly use runtime classes
Reverting SystemInfo -> SystemInfoRt change

GitOrigin-RevId: a4a8c2b339e037cbf9209f9730c2ae30db485932
2019-06-16 05:32:27 +03:00
Rustam Vishnyakov
123242c4b2 EditorConfig documentation test
GitOrigin-RevId: fd52ace3d7a32ecd02c2c5ab90e077967604c15e
2019-06-16 04:03:21 +03:00
Egor Zhdan
c1813cfb52 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-16 04:02:08 +03:00
Eldar Abusalimov
1120c30a56 Merge remote-tracking branch 'origin/master' into eldar/cidr-debugger
# Conflicts:
#	CIDR/clion/src/com/jetbrains/cidr/cpp/toolchains/MSVC.java

GitOrigin-RevId: f3593b526d1870f32b3f1451cab0c6a653e5beb5
2019-06-16 03:01:38 +03:00
Anna Kozlova
91f7445298 constructor reference: don't ignore constructor parameters during method reference inference (IDEA-185578)
GitOrigin-RevId: e836468e05db28157713e9edd3c70382f8ecdebc
2019-06-13 03:15:49 +03:00
Egor Zhdan
39d2d77155 Cleanup: NotNull/Nullable
GitOrigin-RevId: b8e892f32ea84c2115973155dba7127b892cc36e
2019-06-13 03:14:35 +03:00
Roman Shevchenko
57e7cc56a0 [project] non-runtime code should not use directly use runtime classes
Reverting SystemInfo -> SystemInfoRt change

GitOrigin-RevId: a4a8c2b339e037cbf9209f9730c2ae30db485932
2019-06-11 17:48:13 +03:00
Julia Beliaeva
3fee046d20 [vcs-log] cleanup RootCellRenderer
GitOrigin-RevId: bba216626193ac756cd133b8ae9bc4e577abea42
2019-06-10 04:10:14 +03:00
Eldar Abusalimov
dcaeb8f8c7 OC-4061: ApplicationUtil: Make runWithCheckCanceled() return result
GitOrigin-RevId: 3aa9f23cc5097e644eddf82a4faca669759b4760
2019-06-10 04:09:35 +03:00
Vladimir Krivosheev
a8c510ae57 fix yellow code - rationalize static call
GitOrigin-RevId: 2dc783a75d852bd9c8a537ef6ed6bfac07640177
2019-06-04 08:10:41 +03:00
Vladimir Krivosheev
6a68c1583a prefer to use SystemInfoRt
GitOrigin-RevId: 72aa33bf5d46456a63f1128c829468f373ffec84
2019-05-29 21:13:12 +03:00
Aleksey Rostovskiy
185284cee6 get rid of intellij.build.toolbox.litegen parameter and use BuildOptions.TOOLBOX_LITE_GEN_STEP to skip it instead
GitOrigin-RevId: 9aac8ee4ed1ebf2a29de18a238825fafb1ab88f9
2019-05-27 15:08:08 +03:00
Alexandr Suhinin
9215f4240b [duplicates] enable duplicates analysis in PyCharm/WebStorm/PhpStorm/RubyMine
GitOrigin-RevId: 1545b79fdca4888f4b94f47f22703fd37694fa7a
2019-05-27 15:07:30 +03:00
Anton Makeev
aa103fd53c Merge branch 'master' into amakeev/gradle
# Conflicts:
#	community/plugins/gradle/src/org/jetbrains/plugins/gradle/service/settings/IdeaGradleProjectSettingsControlBuilder.java

GitOrigin-RevId: d931e798108685731bf185f7c2e3221680b8e5a2
2019-05-17 19:11:16 +03:00
Anton Makeev
b54aaf7e4e IDEA-210281 Cleanup Gradle settings: separate Runner configurable removed
GitOrigin-RevId: adbc39121fe91beb633e125b4cf39bfe0a422e4b
2019-05-17 19:02:16 +03:00
Alexey Kudravtsev
44c620df51 add PECS wildcards to method signatures where necessary and where methods are not overridden by plugins
GitOrigin-RevId: 1ec7f1a1aa17d2d4f42e647207323ab8a3138683
2019-05-13 17:06:40 +03:00
Dmitry Avdeev
83f21c7197 Merge remote-tracking branch 'origin/master'
GitOrigin-RevId: 211e84dab4063848c1d3d835a526271ee1466636
2019-05-07 17:03:19 +03:00
Dmitry Avdeev
f9664fc455 IDEA-211555 Freeze on completion in XML file
do not process xincludes in ExtensionDomExtender

GitOrigin-RevId: d631dcd52d5bf500b61960473e16237008ad02a3
2019-05-07 17:02:41 +03:00
Vladimir Krivosheev
93f7a92521 deprecate ContainerUtil.newHashSet()
GitOrigin-RevId: e6c0562c868c61db16ce950bd24a22164bb6c926
2019-05-03 14:02:51 +03:00
Vladimir Krivosheev
40be3c10c1 use Charsets.UTF_8 2019-04-12 09:01:56 +02:00
Dmitry Jemerov
ebfd72740d Cleanup: remove redundant super calls to AnAction.update() 2019-04-04 18:40:33 +02:00
Alexander Zolotov
39434c4080 Get rid of idea-version tags in plugins xml
Build scripts set proper values for bundled plugins and plugins for publishing.

Still, it's possible to break the logic if explicit since-build value is not match \d+.\d+ pattern or if until-build is omitted. So it's better to get rid of it at all.
2019-01-28 13:59:36 +03:00
Alexander Zolotov
aab264bb0b Delete version tags from plugin.xml files
They don't make any sense since
- they are not required for bundled plugins (com.intellij.ide.plugins.IdeaPluginDescriptorImpl#myVersion will be filled with IDE version)
- they will be overwritten during the build for pluginsToPublish (org.jetbrains.intellij.build.impl.DistributionJARsBuilder#setPluginVersionAndSince)

Still they may affect plugins loading mechanism, e.g. see https://youtrack.jetbrains.com/issue/GO-6741 or https://youtrack.jetbrains.com/issue/IDEA-188964
2019-01-18 15:59:46 +03:00
Alexey Kudravtsev
d4cba378ed handle suppressed exceptions 2018-11-29 13:25:06 +03:00
Yann Cébron
f62a9ccfe0 RestFixtureTestCase: super.tearDown() in finally 2018-11-20 19:26:51 +01:00
nik
0be3657ad0 cleanup: remove 'public' modifier from constructors in non-public classes (IDEA-195931)
public constructors in non-public classes may be confusing, and removing them makes code shorter.
2018-09-06 16:49:46 +03:00
nik
352a876ae5 run configurations: explicitly specify help topic in implementations
This is needed to return null from ConfigurationType.getHelpTopic by default (see IDEA-195693).
2018-09-05 13:23:40 +03:00
Vladimir Krivosheev
4ea81782d9 make all RC type classes final 2018-08-29 19:55:22 +02:00
Vladimir Krivosheev
eb3049279e add notNull, clarify ConfigurationType.id rules 2018-08-25 10:14:32 +02:00
Vladimir Krivosheev
d1bae5c85f cleanup (NotNull) 2018-08-21 08:04:00 +02:00