326 Commits

Author SHA1 Message Date
Nikolay Chashnikov
3a8344fcad [plugin model] use 'public' visibility for content modules which classes are used from external plugins (IJPL-207059)
153 modules which contain classes used from external plugins from the Marketplace are marked as public. This is needed to ensure that it'll be possible to use that API after converting code from these external plugins to content modules.

GitOrigin-RevId: dc48e8970041fddd3bf50d280711e95ce9e9ad9b
2025-10-08 18:39:06 +00:00
Ilia Kirianovskii
f43aa95086 [bazel] Update build files (IJI-3062)
GitOrigin-RevId: 98a67396a48bddc3d084cc93c50ae2f2017bfe8c
2025-09-29 00:11:15 +00:00
Tagir Valeev
9ae9626b90 Cleanup: fix warnings
GitOrigin-RevId: d2cfcc9ff2295509a6ba2036a70d302c35574bcc
2025-09-11 22:53:24 +00:00
Ilia Kirianovskii
dc268560b6 [bazel] Update build files (IJI-2835)
GitOrigin-RevId: 275260ab73f59d3c08f0b4cb9f4c89b74054094a
2025-08-20 08:49:22 +00:00
Bart van Helvert
3214e71f14 [intellij project configuration] migrate Java runtime to Java 8
#IDEA-374134 Fixed

GitOrigin-RevId: a9f7fb2b70a407af196ffcc2bc6ab859230cf014
2025-08-13 20:32:54 +00:00
Ilia Kirianovskii
302e09225d [bazel] Update build files (IJI-2835)
GitOrigin-RevId: 75e7b027171345072092cbdabd4aae1e704f9c7e
2025-08-04 19:46:55 +00:00
Mikhail Filippov
5d62484801 update bazel files
GitOrigin-RevId: b30c894b7e38eb24c9690cec4796a9ffac1ba0ee
2025-07-31 14:09:48 +00:00
Maria Sokolova
c64705d2b1 [debugger] Fix exception from getCoroutineStackTraceDump: getStackTraceElement marked accessible
Merge-request: IJ-MR-168479
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com>

GitOrigin-RevId: 5a429ade45804a2787c519a23311fcb41be2bdc9
2025-07-08 20:49:28 +00:00
Egor Ushakov
aa074c986a Revert "[debugger] avoid using writeUTF, it does not work for long strings"
We have to be compatible with the previous format
This reverts commit 9242ed91f50c3f1ce5c449b03755e9982d95805a.

GitOrigin-RevId: effbe96b8adff9e39ba73eb274066360fa8df694
2025-06-30 19:02:08 +00:00
Mikhail Pyltsin
388ffacaf5 [java] IDEA-375134 Can't run non-static main method for Java 21 Preview
GitOrigin-RevId: f9d8a7a3b8b6f24ae8014ffb05b9b5b28ba9d3c0
2025-06-27 23:20:56 +00:00
Maria Sokolova
9d49a47f1d [debugger] Provide async stack traces for all running coroutines.
The new method com.intellij.rt.debugger.agent.CaptureStorage#getAllCapturedStacks introduced in the debugger-agent allows to obtain captured stack traces for all the threads.

Async stack traces for coroutines are computed in the same evaluation as the dump.

IDEA-366087

GitOrigin-RevId: be52ccd3b391c347536daef0e2567554024bdae3
2025-06-26 12:17:07 +00:00
Maria Sokolova
9206526931 [debugger] Fixed NPE in Coroutines View
IDEA-374561

GitOrigin-RevId: 37474b08ca8a3c0751b36fa883756c1dbf8b94dc
2025-06-24 11:03:02 +00:00
Egor Ushakov
ff429048a2 [debugger] avoid using writeUTF, it does not work for long strings
GitOrigin-RevId: 9242ed91f50c3f1ce5c449b03755e9982d95805a
2025-06-17 17:57:49 +00:00
Maria Sokolova
fbd38fbf3b [debugger] Compute last observed stack trace for coroutines in one evaluation with the dump.
* It's faster than computing coroutine stack trace for each coroutine separately.
* Coroutine dump will be evaluated together with stack traces even if the vm threads were resumed (by ThreadBlockedMonitor e.g.).
* lastObservedStackTrace is not a lazy property of DebugCoroutineInfo, so it's already computed on the library side when the dump is taken.

GitOrigin-RevId: 07c41bbe1e2682b431aedb6ffc70ba8331cf1765
2025-06-12 16:27:46 +00:00
Maria Sokolova
fd088c015e [debugger] Coroutine View: fixed coroutine job hierarchy.
Bugs: IDEA-371866, IDEA-366085

Only show the jobs corresponding to the coroutines captured in the dump.

GitOrigin-RevId: c163cdcdc9c4ba4d1e25a01daa940ff174af263b
2025-05-19 07:58:29 +00:00
Maria Sokolova
a3fc531e9f [debugger] Collect ALL continuations up to the CoroutineOwner for the top stack frame.
`CoroutinesDebugHelper#getCoroutineStackTraceDump` added a frame to the async stack trace only if the corresponding continuation was an instance of `kotlin.coroutines.BaseContinuationImpl`. But that's not always true, e.g. for `DispatchedContinuation` in case of `withContext`.

So, collect frames with `kotlin.coroutines.CoroutineStackFrame#callerFrame` and extract spilled variables if a continuation is an instance of `BaseContinuationImpl`

IDEA-370748

GitOrigin-RevId: 4a722eba06bbc6e893d9f4edba3ac773510c7ea0
2025-05-02 12:04:03 +00:00
Georgii Ustinov
29d4fc042d [Java. Tests. JUnit] Add integration test for correctly quoting args in args-file when running JUnit test in fork mode
IDEA-323007

GitOrigin-RevId: d692efccea439714324f7ea319f893d374fe069b
2025-05-01 13:21:40 +00:00
Egor Ushakov
bb8d5f99b6 IDEA-223372 Unable to see image if remote target is headless
GitOrigin-RevId: a5ea72b76bb12025ea25853737231828583b98c2
2025-04-28 16:17:31 +00:00
Georgii Ustinov
4ca91861f0 [Java. Tests. JUnit] Escape characters for child processes when arg-file shortening is present
#IDEA-323007 fixed

GitOrigin-RevId: f2c75dfb983873e6182f93b80749ad0dfc43be28
2025-04-23 19:02:50 +00:00
Egor Ushakov
d965580202 [debugger] do not wrap null result in helper
GitOrigin-RevId: 5c2b170084bdc3c857693f9eb2044b8485ecd3e6
2025-03-26 21:06:38 +00:00
Vladimir Parfinenko
e3a60db2aa [debugger] speed up gathering of virtual threads for thread dump, IDEA-367627, IDEA-367848
Evaluate everything in helper, no JDI requests for virtual threads

GitOrigin-RevId: d1f367e9def432554623189f673bd05759ec088b
2025-03-25 21:48:45 +00:00
Nikita Nazarov
f241ee62a1 [kotlin debugger] IDEA-357870 Reimplement evaluatable getters filtering using metadata helper
Previously, filtering of evaluatable getters in variables view relied on bytecode inspections. Because of this, in some cases incorrect getters were shown, and also filtering was disabled completely in Android Studio.

GitOrigin-RevId: 6b86d0307526c2ffa23cf49a14d579504bd5f810
2025-03-25 11:25:03 +00:00
Nikita Nazarov
35981ac398 [kotlin debugger] IDEA-357870 Refactor JsonUtils (debugger runtime)
GitOrigin-RevId: b79b2a0deeb9a43358e3574fbe929d9fe89b61d3
2025-03-25 11:25:03 +00:00
Nikita Nazarov
856194d31d [kotlin debugger] IDEA-357870 Introduce MetadataDebugHelper
Kotlin compiler stores meta information about every class in the `kotlin.Metadata` annotation. Unfortunately, there is no way to fetch this annotation using plain JDI interface, because unlike method information, class annotations are not exposed to the debugger. This commit adds a helper class that allows fetching `kotlin.Metadata` of a specific class as a JSON string.

GitOrigin-RevId: 4d463abcd21f75acf90a2358d5782ee1b8b524d2
2025-03-25 11:25:03 +00:00
Vladimir Krivosheev
f87922cf86 update bazel files
GitOrigin-RevId: 47fa457d01f09cf034eb1c41c81dc6dc7d2caf58
2025-03-12 04:03:10 +00:00
Anastasia Katsman
b4dd53e001 [rdct-tests] AT-1029 switch to dev server
[rdct-tests] make sure parameters are calculated only in the test process and fix test sync keymaps between thin clients
[rdct-tests] skip lobby related exceptions in case ApplicationManagerEx.isInIntegrationTest
[rdct-tests] add Product code to the CWM connection link so path are customised in FrontendProcessPathCustomizer and the collect logs test passes
[rdct-tests] fix Should be invoked in manager thread use DebuggerManagerThreadImpl for XSuspendContext.toString
[rdct-tests] add pre and post clean up options for all withServerAndClient variants
[rdct-tests] introduce a way to clean up dev server artifacts deleteArtifactsOfThisRun
eap installers test


Merge-request: IJ-MR-157158
Merged-by: Anastasia Katsman <Anastasia.Katsman@jetbrains.com>

GitOrigin-RevId: c05a79fb5eadb6665df4c2e657f866be9f96a078
2025-03-10 21:44:22 +00:00
Maria Sokolova
78427051ef [coroutines-debuuger] Fix CoroutinesDebugHelper#dumpCoroutinesInfoAsJsonAndReferences return null in case of an error
GitOrigin-RevId: d0a7ff5f6ea4932ca570044ec348aabd1bdb95d4
2025-02-17 22:04:36 +00:00
Maria Sokolova
53e920e5e7 [debugger] Introduced provider of Java virtual and platform threads.
Flag: `debugger.thread.dump.include.virtual.threads`

IDEA-355724

GitOrigin-RevId: 5c260df1d4cd2003b17ff8dd7692eec823faa3fb
2025-02-17 22:04:36 +00:00
Roman Shevchenko
7981844b65 [java] retiring 'breakgen' DLLs from JVM process proxy (IJPL-16521)
GitOrigin-RevId: 3789c7f569bc1f220aa9c7524d36ac44a3754cf0
2025-02-14 13:21:00 +00:00
Mikhail Pyltsin
add71cb7da [java-run] IDEA-367503 and IDEA-365965 hide gutters for java 22 and higher when it is impossible to create class
GitOrigin-RevId: be53750f3f70e70fde24181912887a36a874ab35
2025-02-13 20:06:20 +00:00
Egor Ushakov
8513706464 [debugger] do not leak results values in helper - do not create anonymous classes
GitOrigin-RevId: 798db72789f5517033023383160627e3cbf42890
2025-02-11 19:56:02 +00:00
Egor Ushakov
cb646fee57 [debugger] do not leak results values in helper - fixes for review
GitOrigin-RevId: d75d1b9f361c8382afe420779c69ea3e6fafbb8f
2025-02-11 18:05:57 +00:00
Egor Ushakov
58bd28151b [debugger] do not leak results values in helper
GitOrigin-RevId: 66073216977cc93dad14823761bbf1551cf1b990
2025-02-06 17:45:24 +00:00
Vladimir Krivosheev
0d7a3d6a26 update bazel files
GitOrigin-RevId: 0a24ce8e81d403fa978c7237a7fc193ec40cb0bc
2025-02-03 18:28:40 +00:00
Vladimir Krivosheev
b8245e1370 IJ-CR-146078 update bazel files
GitOrigin-RevId: 3bcfd10f71c84283bded464e142ead99edc6a278
2025-02-02 15:20:11 +00:00
Mikhail Pyltsin
f9bd873664 [java-run] IDEA-365965 Support JEP 495. Filter non-static methods in abstract classes
GitOrigin-RevId: e96732d810ae6a0f1ffa44a0d5cc11d4c0f50d06
2025-01-20 20:57:08 +00:00
Maria Sokolova
10472a2795 [coroutines-debugger] Fix the slow Coroutine View: obtain jobs and parents of coroutines with a Helper method.
Build the coroutine hierarchy in CoroutineView, from a job and the first parent of each coroutine.

IDEA-335303

GitOrigin-RevId: 7fe634a291364438229cfae7680894fba25b07c6
2025-01-16 11:51:05 +00:00
Egor Ushakov
1cabca9ffe [debugger] throw NoSuchMethodException if method not found in helper
GitOrigin-RevId: 5c2f800f6a51b5e53bb35412d2439969029583e3
2025-01-14 19:26:24 +00:00
Vladimir Krivosheev
0bc1cf1557 update bazel files
GitOrigin-RevId: 7320d3eff3aba093692ce66839c720ece6d7c4db
2024-12-30 11:28:24 +00:00
Vladimir Krivosheev
25233df1b1 cleanup - isEmpty
GitOrigin-RevId: 100d69abb6a423556574a72e82508fdb8f5d7fa3
2024-12-27 14:41:14 +00:00
Vladimir Krivosheev
98799639aa do not use _test as lib - test targets do not support this
GitOrigin-RevId: f2f49db4294b6a64040dbbd5f1d95e972cbd70a3
2024-12-15 18:32:30 +00:00
Egor Ushakov
700b9b8e6b [debugger] prevent the exception garbage collection in helper
GitOrigin-RevId: b85234a5a0d83ef25e04655abb65fb70664dcab9
2024-12-13 19:48:05 +00:00
Maksim Zuev
a5f063e9cf [debugger] EA-1583106 Explicitly load util class in case of debug attach
Fixes for IDEA-362750

GitOrigin-RevId: 4f6fc7eb45ea2e4beafdebdcf22973cb815c9977
2024-12-06 14:55:00 +00:00
Tagir Valeev
5dca817b05 Add missing @Override annotations
GitOrigin-RevId: 56b084f82d4f4ec5153645b4d745bc881b803a26
2024-11-29 12:51:16 +00:00
Vladimir Krivosheev
17916c90f8 libraries -> lib, resources, opt-in, test deps
GitOrigin-RevId: db66ee95dcb0f0553b40c9cc56cd6afed8634cdd
2024-11-27 13:53:42 +00:00
Egor Ushakov
4d28a3a308 [debugger] fixes for IJ-CR-149390
GitOrigin-RevId: 2276613d23ae0a19b5d730de5d1734d340c296e0
2024-11-25 19:05:01 +00:00
Maksim Zuev
083a9cbbd4 [coroutine debugger] IDEA-362750 Extract coroutine stacks with helper
GitOrigin-RevId: 049e579cbb771bb2f950ab030da59db9115716de
2024-11-25 17:00:46 +00:00
Vladimir Krivosheev
57a3174bf0 move resources to existing resources root
GitOrigin-RevId: 78997483cfe62983f667d27b6d03220e697cdb45
2024-11-23 08:09:44 +00:00
Egor Ushakov
1930f33628 [debugger] always wrap helper argument
GitOrigin-RevId: 24268ebe5dce4c04a6fce171ac58fa845d0fb973
2024-11-17 22:37:01 +00:00
Egor Ushakov
b535182d7b [debugger] fixing tests failing with helper
GitOrigin-RevId: d1eaaab9f1258688dfdd4c8c13c3193faaf36999
2024-11-15 20:17:25 +00:00