Commit Graph

450617 Commits

Author SHA1 Message Date
anton.spilnyy
b2a33aa906 [aia] eval plugin - logs
GitOrigin-RevId: 4062317fcc5e2729fd8c93c7bb594ce13e2c6278
2024-08-01 17:57:28 +00:00
Artem.Bukhonov
253dd27b6f IJPL-157959 stdout-Logging recursion alarm in the case of handler fault
Wrap every logging Handler with a special implementation of ErrorReporter that skips redirecting messages to a logger in the case of the handler failure

GitOrigin-RevId: 58a401961934900cefca594e63e27ced7a3c08c8
2024-08-01 17:51:59 +00:00
Vladimir Krivosheev
45a4702fcf reduce usage of runWithSpan, remove useWithoutActiveScope, hide useWithoutActiveScope - coroutine-based API should be used instead
GitOrigin-RevId: 455c5da850ce966f8103f9d330d3c6454e4f541e
2024-08-01 17:51:32 +00:00
Andrey Lisin
fffd1481a0 Minor: simplify array initialization
GitOrigin-RevId: d9bfc50b82e4e2778589c0e0044c2628e0099d8a
2024-08-01 17:36:35 +00:00
Vladimir Shefer
cb5091b7fa [terminal] IJPL-157806 Optimize environment scan for PowerShell.
When a user has multiple tools installed on a Windows machine, the PowerShell's `Get-Command` cmdlet will response very long because of the long list of applications, commands and functions available. Transferring these tons of the text is incredibly slow. (>10s on TeamCity agent). We can use `-ListImported` key to list only items related to this session.
See [docs](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/get-command?view=powershell-5.1#example-2-get-commands-in-the-current-session)

GitOrigin-RevId: 80e50febc72f5cfcf333ffea1735ebf698fb9a21
2024-08-01 17:27:18 +00:00
Alexey Kudravtsev
95e0f9aee4 do not cancel all highlighting processes on unsuccessful submitInBackground
...to avoid canceling the highlighting being in the process of restarting itself.
Restart event occurred, the highlighting process (1) is transferred to submitInBackground() in FJP, then something bad happened, DaemonListeners reacted and restarted the highlighting (2), then the currently running submitInBackground process (1) resumed and proceeded to execute stopProcess(), killing not only (1) but also (2), thus leaving the highlighting not restarted.

GitOrigin-RevId: 16a5f5dcafc5aa1e8d9853d7f865c814d345c4e4
2024-08-01 17:13:09 +00:00
Alexey Kudravtsev
43182fbe0f properly synchronize recycler since it can be passed out ot the thread (invalidPsiRecycler does)
GitOrigin-RevId: 1527c111a5878cdb75c232ddce3b4d8fd10b6b3d
2024-08-01 17:13:09 +00:00
Alexey Kudravtsev
c79d7c4566 simplify, avoid creating lambda in hot path, add more logging
GitOrigin-RevId: adfa13eea908104169c51a5752334b9724eea998
2024-08-01 17:13:09 +00:00
Alexey Kudravtsev
4ab5c49640 avoid highlighting the same text range twice
GitOrigin-RevId: 411430679ddb43185c4b6081524d3250982a72ff
2024-08-01 17:13:09 +00:00
Vladimir Krivosheev
c820cfb56b fix compilation
GitOrigin-RevId: 8a652e68abe489f3d40c54598efa48be7df0f0f4
2024-08-01 17:01:38 +00:00
Aleksandr Krasilnikov
5d8f10797e git: IJPL-72595 Add action for rebasing the branch onto a specific commit
(cherry picked from commit bc8f094c064c607327ff35e54a89f6e0340e9837)

IJ-MR-141459

GitOrigin-RevId: b2794b81fcdc0c82a978e64d531556459f1584d1
2024-08-01 16:16:39 +00:00
lada.gagina
45f3c3128b [python] fix IOOBE in packaging toolwindow (PY-74356)
GitOrigin-RevId: 22b13acb32b3acde37fc8c7d50a19958862b242e
2024-08-01 16:15:38 +00:00
Bart van Helvert
74d3927e89 [kotlin] Check conflicts for moving expected/actuals to incompatible modules
#KTIJ-28462 Fixed

GitOrigin-RevId: a95142f3b7db69081af003ca9665af1314a86a91
2024-08-01 16:01:10 +00:00
Bart van Helvert
3fce4d941d [kotlin] Move K2 move conflict into different files
GitOrigin-RevId: 90b7364aaf30e2085a49dfe9db4dca2707f584b7
2024-08-01 16:01:10 +00:00
Mikhail Pyltsin
ccf2a6bae5 [java-inspections] IDEA-356982 PsiImplicitClass is created for certain invalid code and renders the whole file gray
- skip implicit classes in unused analysis

GitOrigin-RevId: 6eb880108723b3623b0cc449d76f9f87942fc8b7
2024-08-01 16:00:34 +00:00
Vladimir Dolzhenko
941f396ef2 [kotlin] Linked features-trainer to K2
#KTIJ-30848 Fixed

GitOrigin-RevId: ca5bda6c8257cae86fa4c2d3cfd8afc47a6b8712
2024-08-01 15:58:32 +00:00
Vladimir Krivosheev
06f64d3de5 cleanup
GitOrigin-RevId: feb4ddae2b925fd6f35a2bb454056edec6b1d91f
2024-08-01 15:57:48 +00:00
Vladimir Krivosheev
b00a999ce0 IJPL-157703 git: commit time is in English
GitOrigin-RevId: 3d505d049a04deba947366e1705d1819c550c3da
2024-08-01 15:57:48 +00:00
Denis Bendrikov
5116f14800 IJPL-156693 detect local git-bash installation
closes https://github.com/JetBrains/intellij-community/pull/2817


(cherry picked from commit aeebac0f5c5a5d4a8add4d3a94a7273fc75811fa)

IJ-MR-141563

GitOrigin-RevId: 241e3f4fdada3a252b417a4cc0555b5cae575476
2024-08-01 15:52:00 +00:00
Maria Filippova
5a9265fc56 WI-78403 Disable the 'Optimize imports' checkbox if an External Formatter is used and display an explanation text
solution: gave an Php External Formatter an "Optimize imports" feature -> QualityToolExternalFormatter will be selected as an optimize imports service in FormattingServiceUtil.findImportsOptimizingService if it properly configured and make QualityToolExternalFormatter.getImportOptimizers -> OptimizeImportsProcessor.collectOptimizers returning an empty list -> isOptimizeImportsAvailable will return false and check box will be disabled.

GitOrigin-RevId: 6d56639b6ee9521ca363b87ae33ab70b67237a91
2024-08-01 15:45:41 +00:00
Alexey Belkov
98a1b4f7ce [kotlin] J2K: BuiltinMembersConversion: specify precise signatures of 'indexOf' and 'lastIndexOf' replacements
To be safe, we should probably do this for all replacement functions (KTIJ-30849).

^KTIJ-30832 Fixed

GitOrigin-RevId: f3ce8ba845b63f668e4e327884b20e06bde1a001
2024-08-01 15:43:40 +00:00
Ilya.Kazakevich
6c7719d78c PY-74236: Move SDK saving logic to the service, create presenter for the "create SDK" dialog, accept callback on SDK creation.
`PyActiveSdkConfigurable` has `model` that must be in sync with the JDK table.

After SDK addition, `PyActiveSdkConfigurable.updateSdkListAndSelect` must be called to select the active SDK.

The user then clicks "apply," see `PyActiveSdkConfigurable.apply` to associate with a model.

`PythonAddLocalInterpreterDialog` delegates SDK creation to `PythonAddEnvironment` (so-called `currentManager`).

It then calls `PythonAddLocalInterpreterDialogPresenter` that acts as presenter to persistent SDK using `PySdkService` and reports SDK using flow which is connected to `PyActiveSdkConfigurable.updateSdkListAndSelect`.

GitOrigin-RevId: 4114fe3385f8b51f82d6465617c27fbe65e8ab04
2024-08-01 15:15:54 +00:00
Ilya.Kazakevich
4e297d445d PY-74236: Get rid of nullable Sdk?.
IO errors must be reported as `Result`, other should simply be thrown.

GitOrigin-RevId: d9a8ce7f38ada3e3f59412bc8425e9fc5556c880
2024-08-01 15:15:54 +00:00
Ilia.Shulgin
aeaf8e921e Fix typo
GitOrigin-RevId: a723565ed704e94a3c729190b825a29afd52d965
2024-08-01 15:08:33 +00:00
Maxim.Kolmakov
0783d7d30f [starter] Fix metrics for older versions of products
We always convert values to nanoseconds and so we have to serialize them as nanoseconds as well. Otherwise the following happens, we read "duration", convert to nanoseconds, and then treat it as microseconds for old products.

GitOrigin-RevId: 050651f76bb6ad9b96c2a11a863005f087819dd9
2024-08-01 15:08:11 +00:00
Dmitry Krasilschikov
98c839cedb LLM-3176 Add video control scripts and dialog for video playback
Implemented JavaScript functions to play and pause videos in `WebAnimationUtils.kt`. Enhanced `FeatureWelcomePanel.kt` to handle mouse clicks, pausing the video and displaying a dialog with enlarged video playback and control options.

GitOrigin-RevId: d1391e48d62a1b40b0443221e3e43e67b26bf15f
2024-08-01 15:04:18 +00:00
Denis Zaichenko
4f41fcd2d3 [vcs] IJPL-100348 Diff window: remove todo/fixme highlight from the diff window
GitOrigin-RevId: 076ff604cb614b9150f39eb62396da017a1b586c
2024-08-01 15:03:32 +00:00
Sergei Vorobyov
05f29e1c95 [Gradle|TestFramework] new: added thread and coroutine dumpers on the test project configuration timeout
GitOrigin-RevId: 5d94d0bfb3900ec844b3846f425106c7a6e79e41
2024-08-01 13:51:25 +00:00
Sergei Vorobyov
ae0e258959 [Gradle|TestFramework] cleanup: use default test timeout constants for the waiting Gradle test activities
GitOrigin-RevId: b101fbdaa2a756ce24ff99c2cd44a2a8aacb423b
2024-08-01 13:51:25 +00:00
Andrey Cherkasov
08158d8c0d [kotlin] Inline properties
IJ-CR-135895
^KTIJ-29553

GitOrigin-RevId: e4c8149e9267f010905267c288d01e786f6c6ca5
2024-08-01 13:42:56 +00:00
Andrey Cherkasov
e977d9c6b6 [kotlin] Use ShortenReferencesFacility
IJ-CR-139618
^KTIJ-29047

GitOrigin-RevId: e1b78cd977e4a69d07630b6544c2b4ad57374204
2024-08-01 13:42:56 +00:00
Andrey Cherkasov
f35011dd33 [kotlin] Remove unnecessary toString() call
IJ-CR-136670
^KTIJ-29614

GitOrigin-RevId: 020c268f0738ea84d47662dc78ca00625dee1659
2024-08-01 13:42:56 +00:00
Andrey Cherkasov
c71fdf5474 [kotlin] Use PsiUpdateModCommandAction for element context-free quick fixes
...instead of passing `Unit` as the `elementContext` parameter to the `KotlinPsiUpdateModCommandAction.ElementBased` constructor.

^KTIJ-30834

GitOrigin-RevId: 900b4e6cb8f8b91bf1bd965a045982e8c64b7a42
2024-08-01 13:42:56 +00:00
Andrey Cherkasov
104921aebc [kotlin] Remove the nullable return type
^KTIJ-29500

GitOrigin-RevId: 5f51e2c3ef43ab03b7d3b6ab23e28893ecb7f043
2024-08-01 13:42:56 +00:00
Andrey Cherkasov
5ef5424fbf [kotlin] Make class not open
^KTIJ-29500

GitOrigin-RevId: 01c78f6f03e83db9e11cfdc7c1f5603daa7e1da1
2024-08-01 13:42:56 +00:00
Alexey Kudravtsev
826ef9e8bf avoid highlighting the same variable twice, for correctness and performance
GitOrigin-RevId: 6fefd372be01af9f89be1ca35020afd23b943cd8
2024-08-01 13:26:37 +00:00
Alexey Kudravtsev
0213b997cc avoid logging (harmless) PCE during pass.getExpiredCondition() computation
GitOrigin-RevId: b805595dad73d9477e509735552a750833c3b735
2024-08-01 13:26:37 +00:00
Evgenii Zakharchenko
b3320e7ed6 [jpab] IDEA-356886 Automatically install JPA Model plugin for JPA Buddy in IDEA Community
GitOrigin-RevId: 33f06230c50838785445509e985067eed115f735
2024-08-01 13:23:28 +00:00
Alexey Kalina
43d1d05799 [evaluation-plugin] LME-21 Provide additional diagnostics in function calling reports
(cherry picked from commit cf17dfda2911d6f89553b2d6247fbe99bea10efe)

IJ-MR-141531

GitOrigin-RevId: f04882ea3212cb9c31e83c5e1baec9a46ffdc929
2024-08-01 13:22:40 +00:00
Georgii Ustinov
7b15b03c29 [Java] Refactor toolbar in ActionPanel for compilation charts
IDEA-356480

GitOrigin-RevId: a1497ba7ae235d09264f268b512c43322597ea9b
2024-08-01 13:20:10 +00:00
Vladimir Lagunov
d18bb6ac3a IJPL-159270 IJent: don't send huge chunks over gRPC
* There's a hard limit for an *incoming* message in gRPC-Java. The new code doesn't send requests that lead to huge responses.
* Requests for huge data chunks lead to bigger memory consumption on the remote side.

GitOrigin-RevId: 376b2c20a1ea3a7ce65527ba4b7d979f9bc245af
2024-08-01 12:59:32 +00:00
Vladimir Lagunov
9278a9eafa IJPL-159270 IJent: don't use ByteArray in FS and tunnels
* Some parts of `IjentTunnelsApi` already use `ByteBuffer`. It's better to use it everywhere for consistency.
* `ByteBuffer` reduce data copying.

GitOrigin-RevId: dff79acdcf2be3b2225c83d7e0f3ac538dd86528
2024-08-01 12:59:32 +00:00
Vladimir Lagunov
71bf242f8d IJPL-159270 Migrate ChannelInputStream/ChannelOutputStream to ByteBuffer
* With `ByteBuffer` it's easier to avoid excessive data copying.
* It's easier to use `ChannelInputStream` with code that uses `ByteBuffer`.

GitOrigin-RevId: 6e3fad7b0c93deb6d2d3f869baab73c7ec7be376
2024-08-01 12:59:32 +00:00
Dmitry Batkovich
91fda8ce5e add todo configuration settings collector
GitOrigin-RevId: 58d158ab46702e0b3e1e69b43c459a5bc78e6e35
2024-08-01 12:41:43 +00:00
Nikolay Egorov
a6270c2051 KTIJ-30773: Do not log CF exceptions
GitOrigin-RevId: 56d990b3383c0efaa73674368db0bf8688640b6b
2024-08-01 12:36:18 +00:00
Bas Leijdekkers
c72b96d481 Java: enable Pratt parser by default (IDEA-305898)
GitOrigin-RevId: 597cfc30aeff88a7791e9e185b5c08426844d4da
2024-08-01 12:35:28 +00:00
Bas Leijdekkers
5fe32f5f14 Java: Pratt expression parser cleanup (IDEA-305898)
GitOrigin-RevId: 97465caee1ec49b759290fef92e48d7231bf4681
2024-08-01 12:35:28 +00:00
Bas Leijdekkers
c8215f8fbc Java: more sensible parse of incomplete binary expression (IDEA-305898)
GitOrigin-RevId: 3d3b59be1621fea7a4702109e1d654b47c5c76f7
2024-08-01 12:35:28 +00:00
Bas Leijdekkers
bc91c92493 Java: remove broken code from test data (IDEA-305898)
GitOrigin-RevId: 82874c8bb5b89e0a18ca77582b61d6836c021379
2024-08-01 12:35:28 +00:00
Bas Leijdekkers
c122a5897f Java: remove heavily broken code from test data(IDEA-305898)
GitOrigin-RevId: 4bffa1842be6eaa4e9a48b8b5ee0ec381a6ff93f
2024-08-01 12:35:28 +00:00