Commit Graph

457652 Commits

Author SHA1 Message Date
Vladimir Lagunov
36558d7ec6 IJPL-171655 IJent WSL FS: don't query IJent for obvious information about roots
It allows postponing initialization of IJent through `IjentFailSafeFileSystemPosixApi` from inside File chooser, when no WSL node is expanded.


(cherry picked from commit aafe453201b0e8725d8ce82b89f4d796965135d7)

IJ-CR-149490

GitOrigin-RevId: 783f99bd291b2aee071237a250deec26349a2229
2024-11-21 12:07:14 +00:00
Vladimir Lagunov
5a58a3f2bf IJPL-171655 File chooser registers File Watcher lazily
It allows postponing initialization of heavy IjentWslNioFileSystem until the contents of WSL directories is really required.


(cherry picked from commit 97cda46adbbfe804115160dd5b7f630ebf81fa17)

IJ-CR-149490

GitOrigin-RevId: aeb41904d59d71d4a70f20cff3adf8331d6fe93a
2024-11-21 12:07:14 +00:00
Egor.Skrypnikov
57f92b38c7 [Rider] Backport IJ-CR-149703 to 243
(cherry picked from commit 99b365b55ca8d27529487d7ae285df092d13d943)

IJ-CR-149789

GitOrigin-RevId: 42d5a1d175320934b9c4c9a27a1bb0dc1ff33bb3
2024-11-21 10:02:42 +00:00
vladislav.shishov
3e03cbdd2b [remote-driver] rework JcefComponentWrapper#JsExecutor
(cherry picked from commit 9737ceffe2e195ad733f4e2fb331a040fc82e376)

GitOrigin-RevId: 4838c9ef86343fd0120d8fd6cb786c98cf82547f
2024-11-21 10:01:42 +00:00
Anton Kozub
c933e1f9e0 IDEA-360017 PIEAE at Structure view opening for the modified Spring class
(cherry picked from commit 585582c37b0b57e68c331d46045cf3e6de9e3a5f)

IJ-CR-149745

GitOrigin-RevId: 0ab2fddb3071b76590b439f2a03335d26a6e8e09
2024-11-20 13:00:57 +00:00
Andrew Kozlov
11136008d1 [kotlin] KTIJ-32187, KTIJ-32178 trailing lambda template fully disabled
IJ-CR-149484

(cherry picked from commit 1622f0a0bf63651c86cb9892d9e453dc35ecf07f)

GitOrigin-RevId: 9e5c6f21979a4b28b1d42b42452ebfb8e12bd6b9
2024-11-19 23:35:59 +00:00
Andrew Kozlov
088be2557f [kotlin] KTIJ-31696 trailing lambda parameter elements should appear first
IJ-CR-149484

in some tests a prefix had to be used to eliminate the number of lookup elements present

(cherry picked from commit 8174aceee5d8e7ee060b8c8808810887343f404d)

GitOrigin-RevId: 01c5db3e95183ff5a639c7f3678d2920bac5f94a
2024-11-19 23:35:59 +00:00
ekaterina.itsenko
a537a9ddcf [pycharm] PY-77455 Tables(Jupyter, DataView): Add the correct separator
(cherry picked from commit 7d83ea766b39cc05cb2811aa3a2dd390aec9516b)

IJ-MR-149724

GitOrigin-RevId: 14878906578828af11b06661729b9ea2f78d0db2
2024-11-19 23:34:53 +00:00
Nikolay Chashnikov
04517028c6 [platform api] remove ApiStatus.Internal for IconMapperBean class (IJPL-171878)
The corresponding extension is used in plugins.


(cherry picked from commit 2dae602feafc0ed6b639e1139ecf9a0a76957f30)

IJ-CR-149690

GitOrigin-RevId: 5df51d8a7f7f17bb1d2a365e508fef860ff0ef32
2024-11-19 17:59:58 +00:00
Mikhail Golubev
3d7e118c36 PY-77060 Remove spaces after * and ** in new-style PEP 695 type parameters
(cherry picked from commit cd38f49d0f28894e4f33dbd2fa331eaf895fd70d)

IJ-CR-148110

GitOrigin-RevId: 99164b1b95b89d7c4b729308c02a8d2800c2f20c
2024-11-19 17:59:42 +00:00
Tagir Valeev
b0321520e6 [java-refactoring] Refactoring dialog: avoid updating var-type state on every updateControls()
It should be updated only on type change (which happens rarely, especially because in many cases, we do not allow to change the type at all)
Fixes IDEA-360822 Introduce Variable: "Replace all occurrences" (Alt+A) triggers flood of exceptions
Slow operations are still possible but should not cause 'flood'. Given that dialog mode in refactorings is rarely used (it's non-default), current fix looks good enough


(cherry picked from commit 6ad7e2826b11e1f39598e991201ba05620acae84)

IJ-CR-149663

GitOrigin-RevId: 39bd201313a72d262d03283fd93ae5a6a64cecd0
2024-11-19 17:39:30 +00:00
Mikhail Golubev
99a6645e5d PY-36889 Type check assignments to class/instance attributes outside of class bodies
Previously, PyTypingTypeProvider.getReferenceType returned a type from a class attribute
type hint only for assignment to instance attribute located inside a class definition.

In other words, here we inferred the expected type from the annotation
and reported incompatible types in assignment:

```python
class C:
    attr: int

    def m(self):
        self.attr = "foo"
```
but in the following we didn't:

```python
class C:
    attr: int

inst = C()
inst.attr = "foo"
```

Now we try to resolve any qualified target expression to a class
or instance attribute and then infer the type from the corresponding
annotation.


(cherry picked from commit 086dbb678a8cd89cfe332bf801631568fb6c3a4d)

IJ-MR-147382

GitOrigin-RevId: 4e3f71baa598d4caf684d0aeab23d1a9a688b94d
2024-11-19 17:25:06 +00:00
Alexey Kudravtsev
24284fe20f make registry flag "highlighting.essential.should.restart.in.full.mode.on.save.all" to fix "disable IDEA-362841 Essential Mode unconditionally shows invalid reference errors after "Save all". Can we make it configurable?
(cherry picked from commit 3d36bd1698f443ea8ffb89b286ad7e9cd84607b8, IJ-CR-148950)

GitOrigin-RevId: 0442c7dce9ac137bb6ddd1f25f1ea8e59509f28e
2024-11-19 15:24:44 +00:00
Dmitry Zhuravlev
26b513be7f git: generate a proper pinentry script with existing fallback
Since "[[]]" properly handled by bash/zsh shell and may not be handled in the others

IJPL-165453

Follow-up: 89951442ccaf2feec1b6b04efb9dff4dd1b0d32c


(cherry picked from commit 55b82745c5045ea46a03e11b581c9b6384e8af49)

IJ-CR-149656

GitOrigin-RevId: dbd131f64eb298d43519433543bc2906f517078c
2024-11-19 15:11:12 +00:00
Dmitry Zhuravlev
bb24b2aacb git: do not query GPG sign configuration by commands not related to sign
Follow-up: a32f415e4732699f6fd062a3b8bf902e99dccf13


(cherry picked from commit 69249b47ec79e297290980c15f0d0fae928feaf6)

IJ-CR-149656

GitOrigin-RevId: 63229dd650f7941e9abbfad402f0ec4542d89784
2024-11-19 15:11:12 +00:00
Dmitry Zhuravlev
60e0fff2fd vcs: ensure min pinentry password length in tests
(cherry picked from commit 60e4b656f84c29abd8074d7b9f232167af8d2a9f)

IJ-CR-149656

GitOrigin-RevId: a4d567960fc50e2282b3cf9d158da8d1afb4b284
2024-11-19 15:11:12 +00:00
Aleksey Dobrynin
ed58651022 [java, property] use ISO_8859_1 by default IJPL-171550
(cherry picked from commit 03eef91339fe1a0f2c2a7936d6809b0cfce1c52d)

IJ-CR-149616

GitOrigin-RevId: 10a49bd5dc9c8e6da37a9499df164a0184506516
2024-11-19 14:17:52 +00:00
Tagir Valeev
32684d7e9f [java-intentions] Create method from usage should skip external type annotation
Fixes (finally) IDEA-360115 Create method from List.of results in long jetbrains NotNull annotation


(cherry picked from commit 8e1657ad1d3af686e50c048eea1f7c439ec7365b)

IJ-CR-149633

GitOrigin-RevId: 1c86e8a1b9b0d5902f095ca7393bef8e2dea66d9
2024-11-19 14:11:05 +00:00
Egor Ushakov
1097e6a771 fixes for IJ-CR-147189
(cherry picked from commit bf02e3a97601b4252d80157b132a5960069bba9f)

IJ-CR-147195

GitOrigin-RevId: 7d789a44df27bf81f3d8dfaa0091af4074688049
2024-11-19 13:50:21 +00:00
Egor Ushakov
478ed5f349 IDEA-360567 Evaluate expression, where array is cast to subtype array inside a lambda that returns the cast result, results in EvaluateException
(cherry picked from commit c7e27f136dadd2d028eedda594b20a9111bbbe4e)

IJ-CR-147195

GitOrigin-RevId: 20f27cd9dfdd918ed4dc4567977b24793ac6a23b
2024-11-19 13:50:21 +00:00
Aleksei Kniazev
00cf06cd4a [python] limit custom response to python job survey to 25 symbols (PY-74269)
(cherry picked from commit 020574e608d450ebb44fe89b8484e6ebab65e258)

IJ-CR-149662

GitOrigin-RevId: 1f83e0ee622609d07ed360a46b8b31e7f7c1ac54
2024-11-19 13:47:41 +00:00
Aleksei Kniazev
f0b1bdbb11 [python] added internal actions to test python surveys (PY-74269, PY-74269)
(cherry picked from commit a6c55625c47592e7c8b6572e887cc50410585451)

IJ-CR-149662

GitOrigin-RevId: 9ae176dc14cefeca56cfa1cb9ab107c3600100b6
2024-11-19 13:47:41 +00:00
Aleksei Kniazev
0956043be6 [python] removed web survey logging to FUS (PY-74270)
(cherry picked from commit 4820822bb8d7f78597e3fb091587f47dd6acd2d3)

IJ-CR-149662

GitOrigin-RevId: e38330e680b5901128e6c8bbf32769c109321d95
2024-11-19 13:47:41 +00:00
Daniil Kalinin
28719826e7 PY-76640 change wording for promotion message
(cherry picked from commit 5d1b976da6c4e10dbb35afca12a386be956abb5f)

IJ-CR-149632

GitOrigin-RevId: 2d8d7e8cc80c134c050b038a28dd12b50b78bdff
2024-11-19 13:03:04 +00:00
Daniil Kalinin
06eb0577b2 PY-76640 remove opencv from the promotion list
(cherry picked from commit 6d6a13f9210527e8d9b2b33b750adfb5df4f076c)

IJ-CR-149632

GitOrigin-RevId: 63f4a5fb0f4784c11fb1b719e41ddeefa0b757c8
2024-11-19 13:03:04 +00:00
Sergei Tachenov
41677ecfc8 IJPL-166086 Implement PhysicalAndLogicalStructureViewBuilder.createStructureViewSuspend
To avoid executing slow ops in getLogicalStructureBuilder()
on the EDT, split the implementation into the BGT and EDT parts.
The old function remains the same, but the new suspend
one executes the slow part in a regular readAction,
and the UI part on the EDT under the WIL.


(cherry picked from commit f772898db79b87079d03ee404ea8152359ec79e9)

IJ-CR-149552

GitOrigin-RevId: ef76166383c63919ffab3d7b14e30b8a5ee61a0d
2024-11-19 12:48:35 +00:00
Sergei Tachenov
66782f337c IJPL-166086 Convert StructureViewBuilder to Kotlin
Need to add some suspend stuff to it.


(cherry picked from commit 0a12edfddbe7cdc4c2254657155d4ae3cde2ea06)

IJ-CR-149552

GitOrigin-RevId: 33b50b8c12769c9072d02be869f3ca85a6fb6ca6
2024-11-19 12:48:35 +00:00
Sergei Tachenov
0fb0844ba9 IJPL-165730 Move logical structure builder creation to a BGT
The way structure view builders are designed, when they're created,
there can be a lot of PSI work. But when the createStructureView
method is invoked, there's a lot of UI creation.

Currently the builders are created on a BGT, which is correct,
and after a recent change, createStructureView is now invoked
on the EDT, which is also correct.

But PhysicalAndLogicalStructureViewBuilder specifically
performed a lot of slow ops stuff in createStructureView.
Let's move that stuff into its constructor instead to fix
those slow ops.


(cherry picked from commit 9eb0470cdd9e59ce39049f6df2696019c03569fd)

IJ-CR-149552

GitOrigin-RevId: b3e7f3c7e8c97e021f8ea766ff93e3586ca2e980
2024-11-19 12:48:35 +00:00
Sergei Tachenov
698783ef8e IJPL-165642 Create the Structure View UI on the EDT
(cherry picked from commit e9996decdd83fb657bfaabede8aae1435a51968e)

IJ-CR-149552

GitOrigin-RevId: 3661e7c28297e8f28023e324f2e74fc545e3d8d7
2024-11-19 12:48:35 +00:00
Yuri Trukhin
eb031cebe7 [terminal]_IJPL-163445 Add tools to FUS terminal command
(cherry picked from commit fba6f2a14e1c24c61eee3caf593051141440b48e)

IJ-CR-147273

GitOrigin-RevId: 746885db78abf4cbe87ae689a5ddf8a5cee78bec
2024-11-19 11:36:29 +00:00
Victoria.Petrakovich
d7c20abaf2 [kotlin] Prolong K2 feedback gathering until 1 April 2025
KTIJ-32186


(cherry picked from commit 116b4e00846f5dad2e5b83a32a6a26f8abd65ab1)

IJ-CR-149538

GitOrigin-RevId: 063f673c8d449869910c0882f74991391a456a77
2024-11-19 09:13:06 +00:00
Ilia Kirianovskii
a8934ab22b [configuration-script] Fix generating ij-scheme.json (of intellij.yaml) from module descriptors in ComponentStateJsonSchemaGenerator#generate (RIDER-118944)
NET-CR-15655


(cherry picked from commit a91301c6e711b42a7f7909782b0410e6c2ea3f34)

GitOrigin-RevId: f44a2d89c70380c84436907223606ab5a53b0137
2024-11-19 08:18:51 +00:00
Snapshot dependency; Vitaly Provodin; Ultimate / 243 / Service / Promote JBR 21 Runtime to IntelliJ 243, build #21.0.5b631.19
99f3124ddb Updating versions of project dependencies: runtimeBuild->21.0.5b631.19
GitOrigin-RevId: 0a1c52d8c91bb32641492dffb4defe89d2d51f1b
2024-11-19 04:45:11 +00:00
Patronus
61d90b98f8 Merge analyzer-update/rride/kt-243/KT-72315 into 243
GitOrigin-RevId: 129723b399dfc335995923833ced2d4327ff890e
2024-11-18 23:14:06 +00:00
Ilia Kirianovskii
968b0f56a2 [testng] Don't override main class if !null in TestNGRunnableState#createJavaParameters (RIDER-118944)
Now we can use a custom main class from JUnitDevKitPatcher to run tests in dev-mode,
e.g. com.jetbrains.rider.test.devServer.RiderTestNGDevMainKt which then uses com.intellij.rt.testng.RemoteTestNGStarter.


NET-CR-15442


(cherry picked from commit 30bb9ce22cab93a2adbc7e0f29dff2bfd8ebe32a)

GitOrigin-RevId: f4e9104ab8001232623afd9d24d4ebb4aabcc42a
2024-11-18 23:13:33 +00:00
Roman Shevchenko
f4927410ed [platform] making the Defender configuration script expand paths only once
(cherry picked from commit c7679a8c40eb4f9640d009c141b382c2ca2b3b64)

IJ-CR-149419

GitOrigin-RevId: 2ad4dd17438bad9032d6dd7b2925fb3d4d561785
2024-11-18 21:50:59 +00:00
TeamCity
47e041cdf1 [kotlin] Update analyzer version to 2.1.20-ij243-27
GitOrigin-RevId: 20d0337f9dc39bfbbac2a20abecebeaafe427a99
2024-11-18 21:31:39 +00:00
Mikhail Pyltsin
7f3845bfea [java-generator] IDEA-363289 generate text from type directly, non-replace if the type is different
- add test


(cherry picked from commit 35ce0439d2a7a7a815e346e7be70c8d5f9fea96a)

IJ-CR-149472

GitOrigin-RevId: ea285ba56b6dece1f2a8b3531ba6496cc53706b6
2024-11-18 21:11:25 +00:00
Mikhail Pyltsin
bf7c8f67cb [java-generator] IDEA-363289 generate text from type directly, non-replace if the type is different
(cherry picked from commit 125504d8af961ab0289182714ebed35d09f0508c)

IJ-CR-149472

GitOrigin-RevId: 18f0e9a16d80a96627ee03a82ee81f2f3b526603
2024-11-18 21:11:25 +00:00
Roman Shevchenko
2938916539 [platform] skipping secured paths when processing the Defender exclusion list (IJPL-148226)
(cherry picked from commit 5a4c5c559226337aad96fac7799025f44055f44f)

IJ-CR-149481

GitOrigin-RevId: b556a1b0973db042d5ccd89bf767b4693964ff4f
2024-11-18 21:00:01 +00:00
Anna Kozlova
1837b05b9e [kotlin] detection of read/write access
^KTIJ-32177 fixed


(cherry picked from commit c32ff924a9508fa573eb40a3b784ed7217719d77)

IJ-CR-149523

GitOrigin-RevId: 4f8068d773d4053f24c4c531bc0516630c5a6782
2024-11-18 20:00:47 +00:00
Ilia.Shulgin
6c93365378 IJPL-159997 Fix InvalidVirtualFileAccessException caused by AnnotationsPreloader
GitOrigin-RevId: a413db6dc3573229fa8caca4742f3e4436b16dbe
2024-11-18 19:18:31 +00:00
Maksim Zuev
a2dbe7a527 [debugger] IDEA-361675 Fix API compatibility DebugProcessImpl.StepOutCommand
(cherry picked from commit 68fa7e7f7f5e2b21f28fbcc32ccfe6b416b89a62)

IJ-CR-148037

GitOrigin-RevId: 7b5bf721f9871eb06a0492262cfc4b74e93a950c
2024-11-18 19:16:28 +00:00
Anton Kozub
6f2cd64d5e IDEA-360318 Spring Structure View: wrong view after reopening IDEA
(cherry picked from commit 740c6e68144d3469f639cf0ef5d7df6e8b35e066)

IJ-CR-149597

GitOrigin-RevId: 4543b4374e4cc3279ddc61ae9abfc32196e035eb
2024-11-18 19:13:36 +00:00
Anton Kozub
829b85afd1 IDEA-360318 Spring Structure View: wrong view after reopening IDEA
(cherry picked from commit 9483a6374ff19de88d4c399ee1b40240904edc49)

IJ-CR-149597

GitOrigin-RevId: f8b24cd73c00220c22b263bc99b939c3c44c0654
2024-11-18 19:13:36 +00:00
Irina Fediaeva
5e6cc9697d EA-926314: Fix IllegalArgumentException
(cherry picked from commit 99659628ac1514c83a1ac4820ef53558b10d6526)

IJ-CR-149566

GitOrigin-RevId: 94bd1112772f6d479c299456f691825a026410bb
2024-11-18 18:59:30 +00:00
Maksim Zuev
92900c401a [debugger] IDEA-362335 Hot swap button: reset lastSearchTimeNs when batch update completed
* so that the next updates can be processed


(cherry picked from commit 7b2d52c23ee9db0f2601c85c5760e36aec5537ac)

IJ-CR-148479

GitOrigin-RevId: 79064bb506fb5be9a9bf180ecc5fdcbc4df63df2
2024-11-18 18:32:21 +00:00
Maksim Zuev
5d907d803d [debugger] IDEA-362335 Hot swap button: limit local history search to prevent UI slowness
(cherry picked from commit 7e959747892b039ba66d98a6090c2b1212376a76)

IJ-CR-148479

GitOrigin-RevId: 7f75e41e28915ee846cddbecb0ae1109d268294b
2024-11-18 18:32:21 +00:00
Marat Dinmukhametov
9421bfc3bb [uast] IDEA-324930 Support providing nullability facts for UTypeReferenceExpression
It helps to get information about nullability for fields


(cherry picked from commit b396cfac3bd2586cd6e1de2fda131dcd135b1ecb)

IJ-CR-149011

GitOrigin-RevId: d1fa105b06c2444def5f801a26c436980b27c61f
2024-11-18 18:30:21 +00:00
Marat Dinmukhametov
7703245b39 [uast] IDEA-324930 Added tests for JavaUastAnalysisPlugin
It's based on KotlinUastAnalysisPluginTest.kt


(cherry picked from commit 039846d89ca95288411254209b0578ea366b9600)

IJ-CR-149011

GitOrigin-RevId: c4251d8eec9f309e29bfd0438eb04c2a60dd3ae7
2024-11-18 18:30:21 +00:00