Mikhail Pyltsin
4bc43b46f4
[java-highlighting] IDEA-323955 Record patterns support available only for Java 20 preview. Fix compiler errors and tests
...
GitOrigin-RevId: 5f856519e56e61818e95cf63766fb6a54c6283ad
2023-07-05 12:09:22 +00:00
Vladislav.Yaroshchuk
a8ace86e27
IJI-1182 Enable Maven dependencies checksum verification
...
GitOrigin-RevId: c092a94aafbffc6378dce963e3df6272ded9c092
2023-07-03 15:37:15 +00:00
Artem Khvastunov
4fd7ab1769
IDEA-323982 add build originator to FUS statistics
...
GitOrigin-RevId: 9031c45010971a2e8cabc0d24a911e6fe6aa4ad8
2023-07-03 13:00:50 +00:00
Maksim Zuev
16e1c67590
[debugger] Prevent long 'getAllClasses' calls for obsolete breakpoint requests
...
Check if breakpoint request has been removed before calling processing methods
GitOrigin-RevId: 106008787c70207ff21bb9c17c07e4167a864794
2023-06-30 20:47:44 +00:00
Aleksey Pivovarov
dbd9c94184
debugger: do not leak debug session via Notification
...
Fix regression after: ccde3c0a635442eb5e2427499e3e5ede3d10465a
GitOrigin-RevId: 959d5700826f98d8313526ebf83e0a7c3cd784bf
2023-06-28 18:35:13 +00:00
Alon Albert
388f8c92dc
[kotlin] Prepare For a ComposeFunctionBreakpoint Subclass, IDEA-322802
...
1. Change KotlinFunctionBreakpointType to not support @Composable methods and open it for subclasses to extend.
2. Make KotlinFunctionBreakpoint and open class, so we can subclass it with ComposeFunctionBreakpoint.
1. Extend MethodBreakpoint to allow a derived class to check for a method signature match.
https://youtrack.jetbrains.com/issue/IDEA-322802/Composable-Kotlin-Method-Breakpoints-Dont-Break
closes https://github.com/JetBrains/intellij-community/pull/2494
GitOrigin-RevId: e91d5e443548bcd6454da8cc67769872ad17d970
2023-06-26 22:38:59 +00:00
Egor Ushakov
178a0cdb87
IDEA-307792 Remove unused 'Hotswap in background' field from the debugger settings
...
GitOrigin-RevId: 7fa142d5361a46324462ded51cd5ec1136f66292
2023-06-23 15:17:28 +00:00
Vladimir Parfinenko
17d72ee9e9
[debugger] method breakpoint enhancements, IDEA-192358
...
* entry breakpoints don't fetch line number information (so it becomes faster)
* entry breakpoints put on first instruction rather than first source line (more like non-emulated ones, e.g. method breakpoint would be hit before Kotlin's null-checks are executed)
* exit breakpoints put on return instructions rather than lines with return instructions (one line `if (false) return` would be skipped, IDEA-192358)
^IDEA-192358 fixed
GitOrigin-RevId: f8fb0aa40a88a1e3eefbcfcaf19ed64f63cf4249
2023-06-21 13:02:32 +00:00
Tagir Valeev
562ecc1de9
[dfa-assist] Register DfaAssist in Disposer
...
Fixes IDEA-322899 Memory leak detected: 'com.intellij.debugger.engine.dfaassist.DfaAssist'
GitOrigin-RevId: 598de05c66c37c56bc22a74f7864c9b404889a46
2023-06-20 14:41:52 +00:00
Fabien Sanglard
fa8a087362
Better check for emulated breakpoint capability
...
Problem: Emulated Breakpoint (method entry) are not supported on ART
(Android) VM. This is happening because Emulate BreakPoints have a
requirements for the VM to support for canGetBytecodes(OK) and
canGetConstantPool (!OK).
The current test for Emulated Breakpoint support is done at the
beginning of 'createRequestForPreparedClassEmulated'. However this test
generates false negatives. Only if the breakpoint is WATCH_EXIT it will
need access to bytecode() and constant_pool() from JDI.
Solution: Narrowing down the test to only fallback on "normal"
METHOD_ENTY when the breakpoint is indeed a WATCH_EXIT.
Test: Local build, run Android project, create method breakpoint, check
that an Emulated BreakPoint was created.
closes https://github.com/JetBrains/intellij-community/pull/2464
GitOrigin-RevId: 0a97792e18db546872211701a1937547917c33b5
2023-06-16 13:29:26 +00:00
Egor Ushakov
7ba2dad0ef
EA-771056 - INRE: JavaLineBreakpointTypeBase.canPutAtElement
...
GitOrigin-RevId: 38029bf91bd09c054f51d4611fad3ed8931671d0
2023-06-16 11:57:54 +00:00
Vladimir Parfinenko
c9c9d58c9f
[debugger] breakpoint on return inside one line if-return statement in Kotlin
...
^IDEA-315974
GitOrigin-RevId: 03c949e90b39f5cf9fd1c9b149b20ef7c4f56873
2023-06-16 09:43:44 +00:00
Vladimir Parfinenko
b02075f3b7
[debugger] fix unconditional stop on conditional return breakpoint inside of void lambda
...
^IDEA-315974
GitOrigin-RevId: fb27268aa1e1b834039aeb659964c100a82076f0
2023-06-16 09:43:40 +00:00
Vladimir Parfinenko
f7e1075301
[debugger] make Java breakpoint variants more clear
...
Rename "All" to "Line and Lambdas" as in Kotlin
GitOrigin-RevId: aa7adde794ec482b94372a8a3865e52db1475afa
2023-06-16 09:43:37 +00:00
Vladimir Parfinenko
4ea4cd5131
[debugger] ability to show bytecode index for stack frame locations
...
GitOrigin-RevId: bb2d8f4a05d8c2f1bc8487fd22bf1ec6d89a41a0
2023-06-16 09:43:34 +00:00
Vladimir Parfinenko
ef260ef1aa
[debugger] skipped breakpoints: add link to documentation
...
^IDEA-169914
GitOrigin-RevId: 4a5115b92718135d812bf9d8925a9527017343b5
2023-06-15 19:56:36 +00:00
Egor Ushakov
ac2a6b4e32
exposed getLineClasses for use in android position manager
...
GitOrigin-RevId: c64e01dc43c1d61358c569e688a8178aeb757c5a
2023-06-15 11:16:31 +00:00
Egor Ushakov
9e477b9e98
IDEA-322456 Debugger: show depth of recursion in frame view (as for Java) and correctly show reset frame when available
...
GitOrigin-RevId: e6370c53b590baf6ddba1c31275a03b9f954da6b
2023-06-14 18:46:13 +00:00
Egor Ushakov
9e82931146
EA-560552 - NME: StackFrameImpl.pop
...
GitOrigin-RevId: 285dd65136be2a6fbccf930d322ee5ea66dc6cd8
2023-06-14 14:21:22 +00:00
Egor Ushakov
d7206f5655
cleanup: extracted common method
...
GitOrigin-RevId: db2437836937a6194bb54708fa5c1a47401c7a7e
2023-06-14 14:21:20 +00:00
Tagir Valeev
eceaae8757
Enhanced switch used; other minor warnings fixed
...
GitOrigin-RevId: 36dd4522e953681b2fc3463968d172d2bf6453bf
2023-06-13 13:42:37 +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
Vladimir Parfinenko
a1e4c6d5d7
[debugger] fix conditional return breakpoint inside of anonymous class
...
getSourcePosition() now is aligned with getHighlightRange()
^IDEA-315974
GitOrigin-RevId: 993115f83bd7efd8c16888b3a28395b7adf8f540
2023-06-03 14:20:57 +00:00
Vladimir Parfinenko
a06b12afaf
[debugger] add some missing canGetBytecodes/ConstantPool checks
...
GitOrigin-RevId: e04b0df73142f9ee7d120657e876fd6b5a6aefd4
2023-06-01 17:32:18 +00:00
Vladimir Parfinenko
0e9085984f
[debugger] breakpoint on return inside one line if-return statement
...
* only Java
* only single return
* "lambda ordinal" to be refactored
^IDEA-315974
GitOrigin-RevId: 3f2e0a8e220a792b665d07375fc3fe67aa5d0bac
2023-06-01 17:32:18 +00:00
Alexey Belkov
1d790f1992
Apply "Java methods should be replaced with Kotlin analog" inspection on whole project
...
GitOrigin-RevId: 35d07247cdf7742957dde59bbb8d6408754a9c4e
2023-05-26 09:44:56 +00:00
Alexey Belkov
a6521777bf
Revert "Apply "Java methods should be replaced with Kotlin analog" inspection on whole project"
...
This reverts commit 9863c1e3
GitOrigin-RevId: 7fe730efd4ffe4fef76fe6f36c3e53b496067855
2023-05-25 07:09:00 +00:00
Alexey Belkov
ebe914e465
Apply "Java methods should be replaced with Kotlin analog" inspection on whole project
...
GitOrigin-RevId: 9863c1e384067b97b5015147589e409facd37549
2023-05-24 16:04:31 +00:00
Nikolay Chashnikov
a937ba693d
[java] API cleanup: remove unused deprecated API (IDEA-312594)
...
GitOrigin-RevId: 885c1cb57291a0c99e9f911cb2d266ae8e7e0835
2023-05-15 13:58:12 +00:00
Egor Ushakov
c97a330593
IDEA-319871 Logging breakpoints make debugger evaluation hangs with "Collecting data..." - small fix for IJ-CR-107271
...
GitOrigin-RevId: 5ae6a7b7cd554ab5dc4579dff42e8d0f4acaca24
2023-05-11 08:56:52 +00:00
Egor Ushakov
a5ad1c6976
IDEA-319871 Logging breakpoints make debugger evaluation hangs with "Collecting data..."
...
GitOrigin-RevId: e6681be4ca3f1419f7d6614ec85ae0e8e9c099df
2023-05-09 22:36:44 +00:00
Gregory.Shrago
8ab7bc6ab2
typo fix choosen -> chosen 2
...
GitOrigin-RevId: 75bb18ca2301fa82b0566b114797b1ad35c37238
2023-05-08 20:29:45 +00:00
Tagir Valeev
498d3de463
Warnings fixed
...
GitOrigin-RevId: c776724abc32aec898940cedbc96e6bbd874289c
2023-05-05 19:45:47 +00:00
Vladimir Krivosheev
227d75a1fc
don't extend DynamicBundle
...
GitOrigin-RevId: 49cbebd629a92877dbeeffba8d97b0631fb9407e
2023-05-05 09:46:42 +00:00
Vladimir Parfinenko
2937b1bbea
[debugger] refactor Java Smart Step Into
...
MethodBytecodeUtil now provides information about bytecode offsets.
This simplifies searching and filtering of smart step targets.
Reviewed-by: Egor.Ushakov <egor.ushakov@jetbrains.com >
GitOrigin-RevId: 9222d99b3b536759392b84cdb99a316def3b8a7d
2023-05-04 16:44:42 +00:00
Dmitry Avdeev
467347ac02
IDEA-318720 T: WorkspaceFileIndexDataImpl.ensureIsUpToDate
...
more granular read actions
GitOrigin-RevId: 2e1ce8980f9cf4a1e08995213e914e4b9cf74031
2023-04-23 20:23:24 +00:00
Kate Botsman
0d321457d8
GTW-3271 Fix breakpoint editor layout
...
- Changes in GridLayoutManager converter
- supported row span
- fixed shouldFill method (check fill param instead of size policy)
- set fill to row only if all element wants to fill (and there is at least one)
- if column/row size wasn't set (there is no explicit elements in column/row) - use Fit size instead of Fill
- Set size constraints from grid to elements, so they have expected preferred/min/max size
- Changes in other controls
- track "enabled" property for combobox, radio button and text field
- track "editable" and "text" properties for text field
- support mouse clicks on JLabel
- properly init BeStyleControl and BehaviourControl (BeControl attributes should be copied from initial control)
- support text position in BeText and fix rich text updates
- support preferred size in BeStyleControl
- Add CropIconModel to ShellModel
- Fix BreakpointPanel layout - some panels grew vertically when they should not, replaced "FILL_BOTH" with "FILL_HORIZONTAL"
- Move spacer from XLightBreakpointPropertiesPanel.form to upper level so it won't depend on another spacer
- Support different types of borders (titled, line, empty)
Merge-request: IJ-MR-106091
Merged-by: Kate Botsman <kate.botsman@jetbrains.com >
GitOrigin-RevId: f92bbf498d29aa3a49da80bdde837b44527a7bb4
2023-04-19 10:34:38 +00:00
Gregory.Shrago
af775bed22
employ known-issues category to silence most reported slow-ops 2
...
GitOrigin-RevId: 09872a7c457b34895ca20a5d7ea01c2959626708
2023-04-17 23:20:16 +00:00
Vladimir Parfinenko
4e4c43ae04
[debugger] fix duplication of outer parameters in lambdas, IDEA-318062
...
GitOrigin-RevId: e9a921711de41517437ccefb8e216af876100d3c
2023-04-17 11:55:40 +00:00
Daniil Ovchinnikov
6fe5c49599
deprecate com.intellij.reference.SoftReference constructors
...
GitOrigin-RevId: a723be59b812f71953e79879d7adf09d58a9e935
2023-04-15 00:04:29 +00:00
Zhanna Gorelova
6bb194f242
IJ-CR-104976 [reactor][debug] IDEA-275263: boolean instead of Boolean is used
...
GitOrigin-RevId: 98c71ad2ec59e4fa91fbaca12a3acf84558b6b4f
2023-04-13 10:46:51 +00:00
Vladimir Parfinenko
e452f4fc2f
[debugger] reenable multithreaded unit test
...
Also make ResumeCommmand resume the given thread and not the current one.
GitOrigin-RevId: 4197c705c10a09726b1ecf3f805bebba127f8a41
2023-04-05 12:40:47 +00:00
Vladimir Parfinenko
9ebbfb0c44
[debugger] refactor SuspendManager.getPausedContexts
...
Suspend manager logically can have more than one paused contexts.
Technically this method was always used via cast to the only inheritor.
GitOrigin-RevId: 959d54e7fa29f631f7b17c43ea35a49ba1f4a5a0
2023-04-05 12:40:42 +00:00
Vladimir Parfinenko
195031facc
[debugger] fix skipping suspend-thread breakpoints during stepping
...
It was a regression after skipping rework
GitOrigin-RevId: f59fdfa7eaed90a94da6d65f9d3acdc5965efda7
2023-04-05 10:16:55 +00:00
Zhanna Gorelova
cdab264467
[reactor][debug] IDEA-275263: separate method with applicable check depending on Project was added instead of getIsApplicableChecker overload
...
GitOrigin-RevId: 5021b666af07d706287c0f323caf2580e2beda8e
2023-03-31 17:35:45 +00:00
Zhanna Gorelova
81b693c4b9
[reactor][debug] IDEA-275263: Api method getIsApplicableChecker global change was reverted, now used only in ReactorExpressionRenderer
...
GitOrigin-RevId: 4877cfd15986906a8a115b3c10051131b84cadff
2023-03-31 13:45:03 +00:00
Zhanna Gorelova
fbe13f60ba
IJ-CR-104976 [reactor][debug] IDEA-275263: Project now is propagated to Compound renderer during its creation
...
GitOrigin-RevId: b2ebc5f07d510643f4ced8c65cabbaab977b68bb
2023-03-30 17:38:04 +00:00
Egor Ushakov
eea1c6a766
code cleanup
...
GitOrigin-RevId: 5c176faaa50272133b68b4e40cfcdba69627bdeb
2023-03-27 14:36:05 +00:00
Vladimir Parfinenko
a519073b0a
[debugger] notify about skipped breakpoints during stepping IDEA-169914
...
Also perform logging for such breakpoints if any
GitOrigin-RevId: 5da09fa62a9a63984b240a0c36c0f621fcf38d07
2023-03-20 18:20:39 +00:00
Egor Ushakov
91f5891939
debugger: avoid using the obsolete API
...
GitOrigin-RevId: b6eb61d2a4a0fa3451e34a9d36b6c05417719eb0
2023-03-17 12:56:11 +00:00