Commit Graph

2343 Commits

Author SHA1 Message Date
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
Roman Shevchenko
21d7383ff5 [platform] completely phasing out long-deprecated LocalFileProvider
GitOrigin-RevId: ef55ccff3d4da85c1215d758e1e278aeab0cc737
2023-07-26 11:51:43 +00:00
Kirill Likhodedov
59860d5bf6 Support Linchek stack traces: IDEA-324320
The Linchek tool mentions so-called events before `at` word, which indicate which method was called with which parameter.

The normal exception parser doesn't work here, because the method call matches the `(<digit>)` pattern, and it confuses the exception parser which thinks that it is the left-most appearance of a file with line. To avoid this, we specifically search for the `(<digit>)` after the "at" word.

GitOrigin-RevId: cbc7c2523fceaa30d819d1a6c982c99dd3c0c5fb
2023-07-25 14:30:57 +00:00
Kirill Likhodedov
e2b6e09dba refactor: simplify the algorythm which parses the exception line searching for the closing bracket
Searching for the leftmost pattern seems to be more logical from the start of the string, rather than from the end.

GitOrigin-RevId: 3e9330957d34930add0e827526c1dd202de6036f
2023-07-25 14:30:52 +00:00
Max Medvedev
0f243eda4a [java debugger] collect statistics on how many "attach debugger" inlay hints are shown
This should help to estimate the number of people who could be interested
in "auto attach debugger" feature

GitOrigin-RevId: b7c7881aa6b3d2e255d58169f56ac66d9b4f5bcf
2023-07-19 18:46:13 +00:00
Dmitry Avdeev
17b28db443 IDEA-137820 Run / Debug Configuration to allow Environment Variables to be specified via a properties file (which can then be generated/shared) rather than adding them one by one by hand in the UI
GitOrigin-RevId: f2ef2ebc1dbb313b28ab681d668fc051f09d59a8
2023-07-13 14:27:59 +00:00
Konstantin Nisht
862d574b1b [headless] Refactor environment key usage in project files
Changed the method `getKnownKeys()` to property `knownKeys` in EnvironmentKeyProvider interface and all of its usages in the project. This change is part of a larger refactoring to simplify the interface and make its usage more idiomatic in Kotlin.

GitOrigin-RevId: 351a4f1bc28a34d79c40abae06a35d42365fbf70
2023-07-10 18:06:02 +00:00
Vladimir Dolzhenko
cbbb2db9f1 [kotlin] Fix test class detection on look up tests in class hierarchy
#KTIJ-26074

GitOrigin-RevId: 3be662dbe5034300b2b611dc1b8300d5b1c03185
2023-07-06 17:31:17 +00:00
Artem Khvastunov
4fd7ab1769 IDEA-323982 add build originator to FUS statistics
GitOrigin-RevId: 9031c45010971a2e8cabc0d24a911e6fe6aa4ad8
2023-07-03 13:00:50 +00:00
Vladimir Dolzhenko
178415d0e6 [kotlin] Non-public methods/constructors could not be a test method
#KTIJ-26074

GitOrigin-RevId: 5e58ca42d2d20d03a52940d20f0aa6cf2c1ac742
2023-06-30 14:20:15 +00:00
Vladimir Dolzhenko
9c6ed68e17 [kotlin] No test methods or classes if corresponding framework is not available
#KTIJ-26074

GitOrigin-RevId: 9515f838d7c7627e998fee0027f268545a034f48
2023-06-30 14:20:11 +00:00
Bart van Helvert
adf1e78149 [test] Change switch to if in test output parser
See IJ-CR-109605

GitOrigin-RevId: b4b792d0472c465a56256851334ddd282a005f3e
2023-06-28 13:05:22 +00:00
Bart van Helvert
65fd704972 [test] Fix potential NPE in test importer
GitOrigin-RevId: e6f8af605f11cdbcf57b94f0a553f1d045a468cc
2023-06-27 23:27:01 +00:00
Bart van Helvert
7ba4a2b127 [test] Support importing skipped and ignored tests
#IDEA-322248 Fixed

GitOrigin-RevId: 6d6a7c76a8c01fc100239a4f3ce80e5e9d06075b
2023-06-27 23:26:57 +00:00
Bas Leijdekkers
7758ed9de2 Java: remove redundant ObjectUtils.tryCast() calls
GitOrigin-RevId: fe11b176cf9a14ec4e363b0ce099693302f76ab2
2023-06-26 16:29:02 +00:00
Bart van Helvert
09492fe055 [test] Add documentation on how editable test diff algorithm works
GitOrigin-RevId: 0cfcf88671d5dfd6d009127120d9109790e44540
2023-06-23 17:26:35 +00:00
Bart van Helvert
35a3c16cbf [jvm] Improve run and debug quickfix presentation in test failed line inspection
Makes it so full configuration name is displayed and improves preview. #IDEA-322471 Fixed

GitOrigin-RevId: 5adfa2dc8d4093c9282930a8a84506afc3be2039
2023-06-23 17:26:34 +00:00
Vladimir Dolzhenko
95b5918984 [kotlin] Fix false-positive test method detection
#KTIJ-24820

GitOrigin-RevId: bac3c9d8356d17a9469f9a991e49ae815b3e188c
2023-06-23 00:05:09 +00:00
Vladimir Dolzhenko
afd117be5e [kotlin] Move junit specific runnable checks out of isRunnableClass
#KTIJ-24820

GitOrigin-RevId: eaf2178ae79653737fd15dad53b7fdc78d11a111
2023-06-23 00:05:04 +00:00
Alexey Kudravtsev
d46201ed6b implement correct RunLineMarkerInfo.equals() to fix blinking "run app" gutter icon
GitOrigin-RevId: 186b9b358d45ad6f0a610f50bc4ef7d9669a1eb1
2023-06-15 03:39:08 +00:00
Alexey Belkov
3427459014 Apply Kotlin inspection "Unnecessary local variable" in some places
GitOrigin-RevId: 2864f75a1df41e65fd9d4216a9a3f5952daaf9c8
2023-06-13 13:58:15 +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
Egor Ushakov
e3473448ab moved "attach debugger" into the more menu
GitOrigin-RevId: 1fee276f67fdba946f8ad2dd936c0b3d61fa759b
2023-06-09 17:56:31 +00:00
Mikhail Filippov
66295e4897 Move call extension after made all default configuration
We want to have the same behaviour with JavaTestFrameworkRunnableState.createJavaParameters by Anna.Kozlova

GitOrigin-RevId: e91f92dfc0aa8c9a74fd12a8a90877d47224cdec
2023-06-08 09:56:17 +00:00
Dmitry Avdeev
48c8952f97 java app run configuration settings: do not check class in templates
GitOrigin-RevId: 7321c27b73b7b357a425216e40297162218a9c3b
2023-06-01 19:57:49 +00:00
Alexey Belkov
4467dc883b Apply Kotlin inspection "Unnecessary type argument" on whole project
GitOrigin-RevId: 70a38b512309685d57bb5eddf2fc5068f14fe481
2023-05-27 14:22:18 +00:00
Alexey Belkov
edda51dea1 Apply Kotlin "Unnecessary type argument" inspection
GitOrigin-RevId: 4b5ab8fc922d7bb060be00fb9c14f96ea9500bfb
2023-05-26 14:54:05 +00:00
Roman Ivanov
0bad7508e8 rename JvmAutoRunManager to JavaAutoRunManager
GitOrigin-RevId: 8168c0fa905c41c3136a40bd436ff81cc73cc2d3
2023-05-11 13:24:25 +00:00
Roman Ivanov
a4aa505a31 [tests] implement auto-test on delay for junit run configurations IDEA-318781
GitOrigin-RevId: 63f400332de38b21c9719157f350620c37e66fe0
2023-05-11 13:23:59 +00:00
Gregory.Shrago
8ab7bc6ab2 typo fix choosen -> chosen 2
GitOrigin-RevId: 75bb18ca2301fa82b0566b114797b1ad35c37238
2023-05-08 20:29:45 +00:00
Alexey Kudravtsev
970ae99e6d use ContainerUtil.createMaybeSingularList() to simplify code
GitOrigin-RevId: 3474c183588944fa16fef901302492bf714aa815
2023-05-04 14:09:30 +00:00
Sergei Vorobyov
820942d935 [Gradle Tests] fix: parametrized method name extraction
Method name for parametrized test should end with test parameter in '[]'

GitOrigin-RevId: dda2fdbd100ea6218e080cff692c1c8b2f4f93e9
2023-04-27 21:46:38 +00:00
Roman Ivanov
96786113e3 [help] set a help topic for application run configuration IDEA-317860
GitOrigin-RevId: d1c2e69cc4a82e5b484d81ec8ce5ab2050a4c0dc
2023-04-24 14:42:55 +00:00
Alexey Kudravtsev
6d9ab19f5b add missing method createConcurrentSet(); port existing usages with corresponding SSR
GitOrigin-RevId: 00645c36006d38198e8222030cf5ddd7ad7c8bf8
2023-04-21 17:31:35 +00:00
Konstantin Aleev
035955bc6d [micronaut] complete parametrized keys in VM options similar to application properties (IDEA-318045)
GitOrigin-RevId: a673f52788ae4b2e3afc6abcfcddb4841562e531
2023-04-19 15:01:35 +00:00
Konstantin Aleev
6173b092ff [jvm-execution] use tail type for VM option completion variants
GitOrigin-RevId: f26b955b2856472ccf799057a4305116305fa87d
2023-04-19 15:01:28 +00:00
Konstantin Aleev
78152cd461 [jvm-execution] show VM option completion variants if key partially entered (IDEA-318049)
GitOrigin-RevId: 9e2174e3727b39024b97e63671fe19ecf9eeeaa1
2023-04-19 15:01:25 +00:00
Konstantin Aleev
60f56ba634 [spring-boot] add completion for run configuration VM options values (IDEA-318044)
GitOrigin-RevId: 568953bc5aaa467f98af187cf956074f61239273
2023-04-19 15:01:19 +00:00
Vladimir Dolzhenko
e1ccd0148e [kotlin] Add ability to select Kotlin node to specify main class
#KTIJ-25173 Fixed

GitOrigin-RevId: 329e23b359aaf00f08fb74f58a4b0de9b4efa1b8
2023-04-19 09:15:04 +00:00
Mikhail Pyltsin
170ac1d560 IJ-CR-104984 [java] IDEA-314850 Improve refiner for several lines. Improvements showing popup
GitOrigin-RevId: 0f5b3ba87868ca3e97e249fd6eb354981c489cba
2023-04-12 18:57:55 +00:00
Sergei Vorobyov
fe72f134d8 [external-system] cleanup: external system RC related warnings resolved
GitOrigin-RevId: f010167cd904930212c0d2bd83daf39445f0081a
2023-04-11 14:26:59 +00:00
Mikhail Pyltsin
382ce6ea51 IJ-CR-104984 [java] IDEA-314850 Guess the location in the stacktrace when the line numbers are not available
GitOrigin-RevId: 4efea8ef42d6c2ea431932a43d154e6a9864d980
2023-04-02 20:43:53 +00:00