Commit Graph

2384 Commits

Author SHA1 Message Date
Mikhail Pyltsin
87e2d5c58f [java-execution] IDEA-327658 Freeze due to non-cancelable RA in ShowAffectedTestsAction.findMethods.
- do not run until it calls explicitly

GitOrigin-RevId: 17ed84ad5ed3d675898a50fea547c21c265270b9
2023-10-12 17:01:04 +00:00
Roman Ivanov
fcbc2d87c2 IDEA-334151 do filtration of main method not only for unnamed class
GitOrigin-RevId: 0f27e00592fe98e284b3ec1c9ad60c437952846a
2023-10-12 15:57:45 +00:00
Vyacheslav Moklev
5cd6cb1927 [RDCT] Fix starting Debug from inline Debug action
GitOrigin-RevId: 2b577f2aae587d7c874182de3f75d623ee5d170e
2023-10-12 09:34:42 +00:00
Vyacheslav Moklev
4b36883f4c [RDCT] Fix Run toolwindow not opening from inline run action
GitOrigin-RevId: e3c890a8b800763690dde53d5b134bcc4d527054
2023-10-12 09:34:40 +00:00
Vyacheslav Moklev
5fb67db516 [RDCT] Fix Run toolwindow opening on Host instead on Client
GitOrigin-RevId: 8f3f505d7495ab3c416bc83f32d8786cfead1507
2023-10-12 09:34:39 +00:00
Andrey Cherkasov
46e2dfa159 The "Mismatch between light service level and its constructor" inspection: cleanup
GitOrigin-RevId: 2a6e7bcc32cb11f9fcdfa77c717aac6183182fb5
2023-10-12 03:02:23 +00:00
Louis Vignier
7a53b3afc6 [java] Rename JavaUnnamedClassUtil#trimJavaExtension to getJvmName
IJ-CR-115084

GitOrigin-RevId: b9d3fb90b9618a5505e3d7cd79754384ccc7a9aa
2023-10-11 19:08:04 +00:00
Louis Vignier
329f346fcd [java] Use correct scope to check unnamed class configuration validity
IJ-CR-115084

GitOrigin-RevId: 65e3a76dfe73b670bee43e7be2a3565f06b327d2
2023-10-11 19:07:54 +00:00
Konstantin Aleev
ad8c453d74 [platform] IDEA-331384 API: encapsulate TailTypes fields
GitOrigin-RevId: 5c33b3466c0c01832ed8b651a4eb651cf649847f
2023-10-11 13:47:40 +00:00
Louis Vignier
1106476af5 [java] Fix slow op in JavaApplicationSettingsEditor
GitOrigin-RevId: f9ed28d835124b5983487fee72ebc7024f00f694
2023-10-09 08:17:18 +00:00
Konstantin Aleev
84f54ed97d [platform] IDEA-331384 API: deprecate constants in TailType class including those of type CharTailType
- rename existing TailTypes class to JavaTailTypes
- declare constants in new TailTypes class
- update usages

GitOrigin-RevId: 62484d4a67c291ff5da13fad223b841cb1855eac
2023-10-06 18:19:16 +00:00
Mikhail Pyltsin
2dd32d9d08 Revert "[java-execution] IDEA-327658 Freeze due to non-cancelable RA in ShowAffectedTestsAction.findMethods."
This reverts commit 79b7ec3902cd374dd8b2e16196154df15752d36d.

GitOrigin-RevId: daa7dd27676e582bcfcfd45987cc25e4a28a6fcb
2023-10-05 22:28:46 +00:00
Dmitry Avdeev
a9d332b1c0 IDEA-137820 Run / Debug Configuration to allow Environment Variables to be specified via a properties file
initial scripting support

GitOrigin-RevId: 803ae59a50d9889a3a5ee64b43f8c5141efac6bd
2023-10-05 18:51:20 +00:00
Mihail Buryakov
c5a437db18 [bdt] BDIDE-5200 Allow random ports for jdwp debug
GitOrigin-RevId: 9e202d97dc729c78575cf400c90197fd0569c2df
2023-10-03 20:58:51 +00:00
Dmitry Avdeev
26332c7974 EA-917302 T: FileBasedIndexImpl.ensureUpToDate
GitOrigin-RevId: 1e04eaeb46eb1d0501f245d490eda883684154ce
2023-10-02 19:54:42 +00:00
Nikolay Chashnikov
d67bdd5b72 [java] API cleanup: remove unused deprecated API (IDEA-322162)
GitOrigin-RevId: 8b8a875126194efe99989d51127072dd8e503d6e
2023-09-29 09:21:34 +00:00
Louis Vignier
dd1f3a3126 [java] Use unnamed classes stub index to autocomplete main class in options
#IDEA-331209

GitOrigin-RevId: 8ae67e2490a7a6b3c725ecc4813ac9a6e328a79d
2023-09-28 18:34:17 +00:00
Louis Vignier
efa755905e [java] Use unnamed classes stub index to validate run configurations
#IDEA-331209

GitOrigin-RevId: 65a0d35720de183a8c7ea38fcf3539c407164051
2023-09-28 18:34:16 +00:00
Vladimir Krivosheev
642f208a64 IDEA-320078 move NanoXML library to monorepo
GitOrigin-RevId: 58e03dff871e7ea9d6ea98a02f33942442796b89
2023-09-22 08:06:05 +00:00
Gregory.Shrago
ce0e6ff6d8 reuse ConfigurationContext when building tooltip
GitOrigin-RevId: e7513e4f848ba186d4751ce7df5cfb3265d54d52
2023-09-21 12:32:57 +00:00
Louis Vignier
7da0863c33 [java] Remove JavaUnnamedClassIndex
The index made tests fail, reverting until a better solution is found.

IJ-CR-115084

GitOrigin-RevId: 5b4ca90aa8059e70c656d3e9ff80868940670736
2023-09-19 05:49:03 +00:00
Louis Vignier
6e9c57621a [java] Add trimJavaExtension util method
IJ-CR-115084

GitOrigin-RevId: ed0f98676ad29eee6db1e17cfc24b94bb25e74fe
2023-09-19 05:49:00 +00:00
Louis Vignier
4e6c92fe8e [java] Do not update MainClassPanel in the fragment getter
IJ-CR-115084

GitOrigin-RevId: 634be3e8fe32a53667c75d650fb4ff8960d6ce74
2023-09-19 05:48:59 +00:00
Louis Vignier
78ae4b33ba [java] Disable unnamed class completion in dumb mode
#IDEA-331209

GitOrigin-RevId: 31b984871b558b1f719751c1f2d4067bb1f91f69
2023-09-19 05:48:57 +00:00
Louis Vignier
877e47d960 [java] Fix UI for unnamed class run configurations
#IDEA-331209

GitOrigin-RevId: 9c740f9506ba6b52af9d6b7ac080add72fdc7b0f
2023-09-19 05:48:54 +00:00
Louis Vignier
665c412f0e [java] Make consecutive runs use the same unnamed class configuration
#IDEA-331209

GitOrigin-RevId: 68b5b6509c1669ab6c63b0765206b38487890944
2023-09-19 05:48:52 +00:00
Louis Vignier
5a2d2f9836 [java] Fix unnamed class run configuration validity
#IDEA-331209

GitOrigin-RevId: e5e003e58849d9780758eb5ea1a9d6a7d6edf969
2023-09-19 05:48:50 +00:00
Konstantin Nisht
d32141e78d [platform] IJPL-49: Improve i18n handling
GitOrigin-RevId: 0b53b757a30f7bffdc730a2536e7ee06951e1f4d
2023-09-17 22:58:03 +00:00
Mikhail Pyltsin
dc24b17a29 [java-execution] IDEA-327658 Freeze due to non-cancelable RA in ShowAffectedTestsAction.findMethods.
- not run until it calls explicitly

GitOrigin-RevId: 79b7ec3902cd374dd8b2e16196154df15752d36d
2023-09-15 15:07:08 +00:00
Vladislav Rassokhin
f2eb9d48e7 test discovery: report all underlying problems when DiscoveredTestDataHolder repeatedly fails to initialize
GitOrigin-RevId: a28e1e5ce01c93599a0c21206b83334001ea824b
2023-09-13 19:05:33 +00:00
Dmitry Avdeev
15419edff2 IDEA-332164 Missing "Build" before launch tasks for JAR Application
GitOrigin-RevId: 42167b410528797201e8659c2ce8ed1b02c662ca
2023-09-12 17:48:31 +00:00
Roman Ivanov
86ed75400e [java, gutters] add gutters for super interfaces with main methods, remove gutters from interfaces with instance main methods
GitOrigin-RevId: 054ba5ce3f9b71b459a8dfd70b6f9794bc36b4a3
2023-09-08 13:52:08 +00:00
Alexander.Glukhov
51109d8869 [scratch] [IDEA-319263] remove scratch related logic from CompileStepBeforeRun
GitOrigin-RevId: e14ff271a61c99cf0b692f99f49e1cbb085af94a
2023-09-07 19:32:36 +00:00
Louis Vignier
921181f1eb [java] Set main class name for unnamed class run configurations
#IDEA-331209 In Progress

GitOrigin-RevId: de3536709c824660aac55849b7254d1ab7097b36
2023-09-06 19:42:13 +00:00
Nikolay Chashnikov
dc165f9be8 cleanup: use ModuleListener.TOPIC instead of deprecated ProjectTopics.MODULES (IDEA-331726)
GitOrigin-RevId: 4ced7d2d9eff4fa2e3b2d232b60d7c7fa343df0a
2023-09-06 11:12:05 +00:00
Nikolay Chashnikov
1042c5a0a2 cleanup: remove author from TODO comments and remove some obsolete and unclear TODOs
Mentioning an author of a comment makes little sense since it can be easily found by 'Annotate' action. Also, it may give a false impression that only the author may address the problem described in the comment.

GitOrigin-RevId: 2aa52762b109f0d2f1a6ec6f7bf53f24b39c0997
2023-09-06 11:11:13 +00:00
Alexander.Glukhov
5217a95bce [gradle] [IDEA-319263] do not run scratch run configurations with Gradle/Maven
Right now there are no difference between a build task for a scratch run configuration and a build task for a normal run configuration. The ScratchProjectBuildTask was introduced to make obvious difference between build task required for a scratch run configuration and for a normal one. Currently, all scratch run configurations should only be executed by JPS.

GitOrigin-RevId: a4f71393441ab48f1e393d096738e75ac1c90fe6
2023-09-04 17:21:26 +00:00
Vyacheslav Moklev
e22af085fa [RDCT] RDCT-484: Mark debugger actions properly (Frontend / Backend / Disabled)
GitOrigin-RevId: 29cbc3a364791ce932e63c16135bfa40a63d4fa2
2023-08-31 16:40:42 +00:00
Roman Ivanov
a0383188c6 [java] main inside inner class of unnamed class have no gutter
GitOrigin-RevId: 40a106672d4cf6dfeb523214b130605e61d86e26
2023-08-27 21:23:39 +00:00
Roman Ivanov
ec2157d225 [java, gutters] add gutter only for best main candidate in Java 21
GitOrigin-RevId: 44c25b1ade8c623e8ccfa699400e9322fd82637c
2023-08-27 21:23:28 +00:00
Vladislav Rassokhin
4194713f90 test discovery: report underlying problem when DiscoveredTestDataHolder fails to initialize several times in a row
GitOrigin-RevId: 8e4b6bd77368a176e31c1565599c2ec49873007f
2023-08-23 09:18:53 +00:00
Yuriy Artamonov
16230b3454 [junit] Do not check JUnitTestFramework.isFrameworkAvailable for non-Java files
GitOrigin-RevId: 3cfa0952bc22bf4e99e855691c58d7177da99eb3
2023-08-18 18:34:15 +00:00
Alexander Koshevoy
acf69bad77 Return more information about bound target port in resolved target environment
Let `TargetEnvironment.targetPortBindings` map `TargetPortBinding` (added to `TargetEnvironmentRequest.targetPortBindings`) to `ResolvedPortBinding` structure containing the information about endpoints both on local and target sides with hostnames and ports, rather than the only port on the local machine. Most importantly, the client of Targets API now may find the local hostname right form resolved target environment using `targetEnvironment.targetPortBindings[targetPortBinding].localEndpoint.host`. The hostname differs from "localhost" for some targets, and the knowledge of this hostname prevents the situation where the client must find out the hostname for himself. F.e. each WSL distribution has its own network with the bridge interface to the host Windows machine with its IP found using `WSLDistribution.readHostIp()` method.

GitOrigin-RevId: ffd77c202ec038dab3c501e4bc08ea521d6809ac
2023-08-17 08:27:49 +00:00
Izmar Verhage
06190372c4 Deprecate AbstractStubIndex::get and migrate usages
In this commit we implement a logical implication of the fact
that StubIndex::get is deprecated, combined with the fact that
AbstractStubIndex::get is not deprecated but calls
StubIndex::get with the exact same arguments it received. The
absence of deprecation of AbstractStubIndex::get obfuscates
the fact that we want to phase out StubIndex::get calls.

Apart from deprecating said method, we add some convenience
methods in AbstractStubIndex inheritors that ensure a few things:
- The not-deprecated and preferred StubIndex::getElements is
  called with appropriate arguments, including a properly
  specialised requiredClass argument.
- Shorter syntax and DRY: only 3 arguments are required to pass
  into the convenience method, whereas getElements requires 2
  more. These 2 arguments are fields of the AbstractStubIndex
  inheritor, so it makes little sense to get them from there
  and pass them into StubIndex::getElements everywhere.

Wherever we can, these convenience methods are now used.

If you have access to JetBrains internal resources, also see:
https://jetbrains.team/p/ij/reviews/112930/timeline
https://jetbrains.slack.com/archives/CMDBCUBGE/p1691509451975689

GitOrigin-RevId: c51ef4de44aa85841799640b1ece9d291208dc69
2023-08-11 16:14:17 +00:00
Vladimir Krivosheev
420c54cd21 IJPL-102 convert TestDiscoveryIndex to kotlin (part 2)
GitOrigin-RevId: 00dfd645489bcb954cd2dd0f2b22baa3dcb1ea83
2023-08-07 06:44:33 +00:00
Vladimir Krivosheev
772c6d8868 IJPL-102 convert TestDiscoveryIndex to kotlin
GitOrigin-RevId: 49f8cb237514704de2ab891017c3a81a4d45d81c
2023-08-07 06:44:32 +00:00
Vladimir Krivosheev
386e6e281a IJPL-102 Rename .java to .kt
GitOrigin-RevId: 06e76fe7d84b5a3fd87effe975e00145a8b2f324
2023-08-07 06:44:31 +00:00
Bart van Helvert
259a3a7f90 [uast] Introduce and migrate to resolveToUElementOfType
GitOrigin-RevId: 2561711789a076cbe2761c010d7374f299ccb6ff
2023-08-03 15:01:35 +00:00
Konstantin Aleev
7f880090d2 [jvm-execution] EA-268430 fix NPE when determining class path type
GitOrigin-RevId: 51655f94b503c957eaa7e68a6e4b521b03a2f3ea
2023-07-31 15:12:50 +00:00
Roman Shevchenko
ae617f6f8f Cleanup (minor optimization; dead code; typos; formatting)
GitOrigin-RevId: 35e754f16a3e6509fee308d661eeb0a1bbc37daf
2023-07-26 11:51:46 +00:00