Commit Graph

457740 Commits

Author SHA1 Message Date
Ruslan Cheremin
3d72536a74 [vfs][refactoring] PY-77389: extract VFS content caching limit into dedicated constant
`FileUtilRt.LARGE_FOR_CONTENT_LOADING` was used in 2 roles: as just 'big file, load with caution', and also 'do not cache file content in VFS' -- but those roles are quite different really, and should not be mixed =>
- `PersistentFSConstants.MAX_FILE_LENGTH_TO_CACHE` is now the limit for VFS caching: default value 1Mb, `-Didea.vfs.max-file-length-to-cache=...` to override
- `FileUtilRt.LARGE_FOR_CONTENT_LOADING` is still used for everything else

(cherry picked from commit f7642bf36cba9984f5a6438c88fcecbe769335a8)


(cherry picked from commit 77ef2bc348054154fba9b612f75bcc41ac880f64)

IJ-CR-150186

GitOrigin-RevId: e8a95f377142a793f171d5ba055ab54dc9bc3d6c
2024-11-25 22:15:19 +00:00
Ruslan Cheremin
baad7297be [vfs] PY-77389: limit max file size to store in VFS cache
+ previously we limited max file size to cache _on_load -- but not on save, so if huge file is !readOnly, its saving could easily overflow VFSContentStorage -> now all ways to VFSContentStorage have same limits

(cherry picked from commit 0a5e639f35ae41901a7312d25e2e33be49aa4e97)


(cherry picked from commit 61ba8143c82cf1f32c7ae8d1d82e00505b7f91b0)

IJ-CR-150186

GitOrigin-RevId: c8161c5b36cdcbe0b441b5e85b4268f42d9854a6
2024-11-25 22:15:18 +00:00
Timur Malanin
329fa5cf88 PY-66252 Introduce a new registry key "disable.python.cache.update" to conditionally disable automatic updating of PyPI package cache and ranking on project startup.
Delete unnecessary checks of project-level python.

(cherry picked from commit 7b38138885ac7036895ff6c4dcb9f86358d1ecd5)

IJ-MR-148661

GitOrigin-RevId: 7bb045be17944f51224fd774b3db67f21a510a51
2024-11-25 21:59:15 +00:00
Błażej Kardyś
9a50d834e7 IJPL-167274 Add extension point for disabling essential analysis mode restart per project - review changes
(cherry picked from commit 9d910521699ee69c91bb6fd4f60e4066aeb1d7fd)

IJ-CR-149829

GitOrigin-RevId: b501483f6fcd05e58bc4dc773754eaccbc40e204
2024-11-25 19:43:20 +00:00
Błażej Kardyś
f4cf3566bf IJPL-167274 Add extension point for disabling essential analysis mode restart per project
(cherry picked from commit 35e52cb683d3d990ba74494dea8a537199942d35)

IJ-CR-149829

GitOrigin-RevId: 64f6b75247d7f2e0889c998bfb730ac0d9fa5993
2024-11-25 19:43:20 +00:00
Alexey Kudravtsev
6558ffdac9 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-149829

GitOrigin-RevId: 211d27d11f6f24fcdfab34a00f66706ad4d54223
2024-11-25 19:43:20 +00:00
Ilya.Kazakevich
4a8afad761 PY-77434, PY-76185: Allow spaces in project path.
We now allow spaces in project path (`validatePath`) but convert them to underlines for `projectName` (both changes are in `ProjectPathFlows`).

(cherry picked from commit cc875f7b4e6d2354fba79387a0fc9161a6d267e1)

GitOrigin-RevId: 620e5bca8a406c9588f3e4f54260e5e3162bf686
2024-11-25 19:22:57 +00:00
Aleksandr Krasilnikov
aaffc695ab IJPL-172029: ScrollingModel: Run post animation callbacks after animator is disposed
It allows avoiding the case when a callback triggers some event that leads to animation cancelling and re-call of
callbacks


(cherry picked from commit a194f54a52e35892e69e0e1baa9b03b4b063b0a5)

IJ-CR-149651

GitOrigin-RevId: 9a38c193c6af2e129e792a253d0972c772883bf4
2024-11-25 17:22:14 +00:00
Aleksandr Krasilnikov
96e9c11cb6 IJPL-172029: vcs marker: Fix disposing
(cherry picked from commit 06626edc93dcb233ed21e546ba16cd266462caaa)

IJ-CR-149651

GitOrigin-RevId: c0e59976528fb09fc3379a5da9c01d7b8cc84113
2024-11-25 17:22:14 +00:00
Aleksandr Krasilnikov
1d0ecfe682 IJPL-171808: vcs marker: Fix "Commit" icon color in the Dark theme
(cherry picked from commit fb8b53d3cc47eb3624c0c3a0503614da1f53c46c)

IJ-CR-149651

GitOrigin-RevId: d4266e5dac6793d4c5a61799032cfa70b67b56a3
2024-11-25 17:22:14 +00:00
Aleksandr Krasilnikov
f6f1d9b68a IJPL-161089: ApiCheckTest
(cherry picked from commit d92b4c3934facef24db643c5067db2d32f08e618)

IJ-CR-149651

GitOrigin-RevId: e2e20253663334b2c7b4bc500918a60b7b1e1d80
2024-11-25 17:22:14 +00:00
Aleksandr Krasilnikov
9172eaea23 IJPL-165254: vcs marker: don't reset the input size on reopening in case the commit message isn't empty
(cherry picked from commit b5283be2d154ab9439486e1554bc03f5747276af)

IJ-CR-149651

GitOrigin-RevId: 19c51946a31c0027e067d0d5f0dc9102218863f7
2024-11-25 17:22:14 +00:00
Aleksandr Krasilnikov
6901adc6dc IJPL-165414: vcs marker: Rework the popup opening
Delegate the popup building and opening to the `LineStatusMarkerPopupService` and control that opened popup is disposed
before creating the new marker panel


(cherry picked from commit fff881f00d75ce4d4b9fa0fc5fa2e2407f7e8813)

IJ-CR-149651

GitOrigin-RevId: 3458a2e0f1e7830d5c67aa539839182840e9d64c
2024-11-25 17:22:14 +00:00
Aleksandr Krasilnikov
814318fa18 IJPL-166447: vcs marker: Close popup when call the completion
(cherry picked from commit 4e1b49b0a9e6304f33fcb29610f86535e2006ca1)

IJ-CR-149651

GitOrigin-RevId: d478b1ef381380156b2ab03aaa0d392dd0492b54
2024-11-25 17:22:14 +00:00
Aleksandr Krasilnikov
008dc74c2c IJPL-166455: vcs marker: Filter unrelated scrolling events to prevent popup closing
(cherry picked from commit a82ded9d80c58ac1fb70e758a9a77f6987220db0)

IJ-CR-149651

GitOrigin-RevId: 09430ea3e37046b7f0173efa6508d3259a2d2028
2024-11-25 17:22:14 +00:00
Aleksandr Krasilnikov
67ba805200 IJPL-166421: vcs marker: Fix NPE
(cherry picked from commit abc84e99c64a0ad50e44244f2488c58b85630aed)

IJ-CR-149651

GitOrigin-RevId: 957d2a53c741bd3474cea4a01e7d1620311cea9d
2024-11-25 17:22:14 +00:00
Aleksandr Krasilnikov
a2ff5e6b79 IJPL-165241: vcs marker: Add a shortcut for committing chunk action
(cherry picked from commit 31c9bfe2a6af44a2b7bd439732a0060a6a3a8e55)

IJ-CR-149651

GitOrigin-RevId: bb58848763ed3fa5af1f1485d43e0bb7070ce564
2024-11-25 17:22:14 +00:00
Aleksandr Krasilnikov
633ffa3474 IJPL-165414: vcs marker: Move "Highlight words" action form toolbar to the context menu
Add "Copy" as well to the context menu


(cherry picked from commit 7a64bba4ba719d3a5a45e9ca51ecf27ca8ed9bd0)

IJ-CR-149651

GitOrigin-RevId: 4dac3794ff4e2716cfdf5fed1fbc6b5cd1c1550f
2024-11-25 17:22:14 +00:00
Aleksandr Krasilnikov
90ee4cefd1 IJPL-165254: vcs marker: Align actions
(cherry picked from commit 1618165c41cfe0dce37e16e179441fb1792abbcc)

IJ-CR-149651

GitOrigin-RevId: 195145b946a0f294c8b149bf0a9ab9396798ccfd
2024-11-25 17:22:14 +00:00
Aleksandr Krasilnikov
2d971cffbb IJPL-165254: vcs marker: Add gap to the left of the commit input field
(cherry picked from commit ec59b14a25491c69acd7c90e2262b6beed61a352)

IJ-CR-149651

GitOrigin-RevId: 821c54212056b6ea8a61d45cb9b7a0426f9d9ef1
2024-11-25 17:22:14 +00:00
Aleksandr Krasilnikov
3076cb9bad IJPL-165254: vcs marker: Disable search in the commit text field
(cherry picked from commit d1af0ce1e16c07b8cff14f689f9881d312f7b7dd)

IJ-CR-149651

GitOrigin-RevId: 910cbeb03c98408c44a247b292ff09f3d76e0deb
2024-11-25 17:22:14 +00:00
Aleksandr Krasilnikov
879aeb2988 IJPL-165254: vcs marker: Better border painting
(cherry picked from commit fcb2dfb9842b344692621c359fa5a5c2fe7f253b)

IJ-CR-149651

GitOrigin-RevId: bdf09a6ec009ca07a500e052bbace93148a9ce07
2024-11-25 17:22:14 +00:00
Aleksandr Krasilnikov
9827ba5473 IJPL-165254: vcs marker: Speed up animation
(cherry picked from commit a2c7c1cf9f464159b4cdb39d057e15b6ff58792d)

IJ-CR-149651

GitOrigin-RevId: 72947194c2bc32017cd25b7314f4621d1e3a6ecc
2024-11-25 17:22:14 +00:00
Mikhail Filippov
7f62f9e5d7 IJPL-165516 bump Kotlin to 2.0.21
(cherry picked from commit 103555f4853c71b01dac1a313fef725c300fdfa7)

IJ-MR-150145

GitOrigin-RevId: 298b286a369d44cca5c4c60fbb8fa59274cf1988
2024-11-25 16:42:53 +00:00
Alexander.Glukhov
70b74d183d [gradle][IDEA-363327][IJ-CR-149446] update Gradle compatibility matrix for Gradle 8.11
(cherry picked from commit 64689fbd4785e044283d8645949df17e09f84993)

GitOrigin-RevId: 4d8b46440821cea3f141f47889726e7be078d1ee
2024-11-25 16:17:39 +00:00
Mikhail Pyltsin
4746abf37e [java-decompiler] IDEA-363689 (IJ-CR-150053) Fernflower fails to decompile Java 8 Map.class
- use VARTYPE_UNKNOWN for all unknown types and `getExprType` must always return non-null type

(cherry picked from commit ebe50921fe40561ef6219ff4a51448a910f90c3a)

GitOrigin-RevId: b85b5de42549a32a7b445c5bce1df889f6e4a808
2024-11-25 16:09:15 +00:00
Mikhail Golubev
1e741360c8 [python] PY-75983 Fix "when branch is never reachable" after removing PipBasedPackageManager
(cherry picked from commit 64fdf617bc5bd2addc7b7e21ade59b92febbdfbe)

IJ-CR-150140

GitOrigin-RevId: 339ed7723bd80e5dfae657ca1d0a7421b86f011b
2024-11-25 15:49:55 +00:00
Dmitry Krasilschikov
d66864249f IJ-CR-150136 Revert "LLM-11798 make suggestTitle suspend and check default name for the change list"
This reverts commit 31164f741219c9b957db3f7a223852d88927acfa.

(cherry picked from commit 81e86ecace5f1ce4ea767e2557815ebf61708c74)

GitOrigin-RevId: daf254c08de0646c2be2190cc62fa068983deb71
2024-11-25 15:17:29 +00:00
Dmitry Krasilschikov
fe87189f90 IJ-CR-150136 Revert "LLM-11798 hide EP_NAME and rename API: title -> name"
This reverts commit 96bf9be0

(cherry picked from commit ec0af5f9576b975853f2bcfd2c1b95a82777fc2b)

GitOrigin-RevId: 5ce9cf748a4690b4a02356c7f8e4b93bce6e6f31
2024-11-25 15:17:29 +00:00
Dmitry Krasilschikov
0801c5284a IJ-CR-150136 Revert "LLM-11798 shelve name provider: update public API dumps"
This reverts commit 2738fed75d40b9d7cccec5fc6c0f3a0fab043b2e.

(cherry picked from commit 84e74dd9852b5b7a6f5af55807f3c22790967d0a)

GitOrigin-RevId: 96a0d44a71f7c743d1381cae1af1e725afcad7ca
2024-11-25 15:17:29 +00:00
Tagir Valeev
b6f684ed23 [java-dfa] IDEA-363270 Misleading warning for switch case when expression on Boolean values
(cherry picked from commit 449fdf6cb9137b7dcd038adca7b26ffc15f7d59a)

IJ-CR-150040

GitOrigin-RevId: 957b8f5555a16e1e4912bc19bfe9ff133715709b
2024-11-25 14:43:15 +00:00
Victoria.Petrakovich
3c83acc797 [kotlin] Prolong Build tools feedback in-IDE form until 01.12.2025
KTIJ-32277


(cherry picked from commit dab36a75f584d24b5f3cd1f429bed64fdecc5aae)

IJ-CR-150046

GitOrigin-RevId: 91b9f977e512f01460cf2f0ad599cc0d2a4abce9
2024-11-25 14:30:42 +00:00
Nikolay Chashnikov
3375a8093e [platform API] remove @ApiStatus.Internal from OptionalReformatActions (IJSDK-2292)
It was marked as internal in 9f89109681d1c68, but it appears that some plugins use ReformatCodeAction.reformatDirectory, which accepts an interface extending OptionalReformatActions. A proper API should be written instead, which takes a builder for formatting options instead of requiring to implement these interfaces, but until it's done, it's ok to use OptionalReformatActions directly.


(cherry picked from commit da63da8e791643d96f0f12f20e164fe32542de0c)

IJ-CR-150019

GitOrigin-RevId: 616b6bdb966e2cda1982700457cf17f250d46a99
2024-11-25 13:16:55 +00:00
Yann Cébron
2661a16379 [devkit] Project Wizard: Gradle 8.11.1
(cherry picked from commit 3a8b760fb4ddbcb7fca3744f5cc3b7a88a3e447b)

IJ-CR-150113

GitOrigin-RevId: 8dbe74919fe1e3ca7607e4951667f3175b260dce
2024-11-25 11:51:11 +00:00
Vladimir Kharitonov
7841791008 IJPL-172117 JCEF: disable JCEF if glibc < 2.28
GitOrigin-RevId: 10d547d74132c4567ce1a2c615289c3f265176de
2024-11-25 10:34:59 +00:00
Ilya.Kazakevich
149ca9aa4c Python: Do not break interpreter widget if certain python is broken.
`versionString` might be `null` if python in severe broken.

Such pythons shouldn't be here, and we will fix it as soon as we introduce PythonInterpreterService


(cherry picked from commit d4658e07833d6f886991e794f90e5a16f28e50c3)

IJ-CR-150093

GitOrigin-RevId: e0fe53bdacbd014afa67115c9c9414a0cba9ba59
2024-11-24 19:09:46 +00:00
Snapshot dependency; Vitaly Provodin; Ultimate / 243 / Service / Promote JBR 21 Runtime to IntelliJ 243, build #21.0.5b631.28
4a71f151f5 Updating versions of project dependencies: runtimeBuild->21.0.5b631.28
GitOrigin-RevId: a2b89e99de7a2b6cb5acbebc7a9603357824c251
2024-11-24 10:30:38 +00:00
Snapshot dependency; Vitaly Provodin; Ultimate / 243 / Service / Promote JBR 21 Runtime to IntelliJ 243, build #21.0.5b631.26
fdb2635f8d Updating versions of project dependencies: runtimeBuild->21.0.5b631.26
GitOrigin-RevId: 91ff34c8270aee019c1ee5cb99de956e9e269760
2024-11-23 13:37:39 +00:00
Louis Vignier
c830b530a1 [jdk] Add SdkConfigurationUtil#createIncompleteSDK
This makes it possible to get an incomplete JDK in the new project wizard for detected JDKs, and initiate JDK paths setup in the background.

#IDEA-363220 Fixed
#IDEA-358703 Fixed

(cherry picked from commit 4b62235b1243df8d2bc8ff24bb7932ee954c7633)

GitOrigin-RevId: 130c333fd60ff654d550a5db1bf232de9c3adec0
2024-11-23 11:15:06 +00:00
Kirill Bochkarev
5f38ba337c [IJPL-166430] Refactor com.intellij.openapi.module.ModuleUtilCore#collectModulesDependsOn
introduce WorkspaceModelLegacyBridge; collectModulesDependsOn via WSM edition

Merge-request: IJ-MR-148336
Merged-by: Kirill Bochkarev <podockonnik@gmail.com>

(cherry picked from commit fab2218a8b90eac677c3c9408af4319a842cf3fb)

IJ-CR-149781

GitOrigin-RevId: ee7277e9ddb6587d445ca7029ba4f89eb905ee86
2024-11-22 22:52:28 +00:00
Ilya.Kazakevich
89e0d237d4 PY-75549: Fix "Create" text on Welcome Screen.
https://youtrack.jetbrains.com/issue/PY-75549/Simplify-creation-of-the-default-first-project#focus=Comments-27-11093574.0-0

`comment` is 12 by default, while `text` is 13 (According to DSL UI' author Pavel Porvatov)

Other scales are also fixed

(cherry picked from commit 9f415b5a329f535925d47e0487eca384a185a343)
 IJ-CR-149723

GitOrigin-RevId: ad4d1da11cc7bfbc30f63d7ebb3bf686b17d38c2
2024-11-22 22:37:31 +00:00
Ilya.Kazakevich
73fc94c8ab PY-75549: Refactor code to method to preserve history.
Extract code to method to simplify next refactoring.

(cherry picked from commit 7928c74167a0b72fb74ecc04ac509f02dba7b2ac)
 IJ-CR-149723

GitOrigin-RevId: 8fffd1bbb9ea8d130bf6dd17a9cf8ebaefa04b51
2024-11-22 22:37:31 +00:00
Ilya.Kazakevich
4aa56d1ac7 PY-75549: Refactor code to method to preserve history.
Extract code to method to simplify next refactoring.

(cherry picked from commit 7928c74167a0b72fb74ecc04ac509f02dba7b2ac)
 IJ-CR-149723

GitOrigin-RevId: 2e19e9ea475668313bd4f25babd1ff06a34071ff
2024-11-22 22:37:31 +00:00
Ilya.Kazakevich
0e5cd3da5f Extract number of primary buttons on welcome screen to the registry.
We need to overwrite it in PyCharm for PY-75549

(cherry picked from commit 61aeaeab41a2d0eef8d0b1683edcb5c1c36911cf)

IJ-CR-149723

GitOrigin-RevId: af69920d60e8232b796076a50d9d96e435fcee07
2024-11-22 22:37:31 +00:00
Dmitry Drobotov
45074b3937 IJPL-165323 Use ReadAction in EditorAccessibilityCaret's getMark and getDot methods
(cherry picked from commit 58dd6e4a4abaab755b29e01b5b126e466d4646e7)

IJ-CR-150010

GitOrigin-RevId: f939ba6a8935864bcca744bdb257c5cb2b2ed402
2024-11-22 16:40:33 +00:00
tanya011
43c51f2955 IJPL-164473 Fix exceptions 'Read access is allowed from inside read-action only'
Fix exceptions from appearing by wrapping in read-action


(cherry picked from commit 9b0b142f2f186dd8da3d64594d498e99b19988d1)

IJ-CR-150010

GitOrigin-RevId: b041d82901b3840ad9100199883a7c1a6b5b3204
2024-11-22 16:40:33 +00:00
Ilia Kirianovskii
94a9869aab [devkit] Allow to use custom main class/module/jvmArgs/envs per test module via intellij.yaml in JUnitDevKitPatcher (RIDER-118944)
Also adds intellij.devkit.junit.skip.settings.from.intellij.yaml option to fallback to the previous behaviour.


(cherry picked from commit 3d60faf7632e3e4f497650ced02aa1f7b60e63a0)

GitOrigin-RevId: 0e087b02cf3070d02c76f5056cf7089e119e37b5
2024-11-22 16:19:32 +00:00
Ilia Kirianovskii
caffe82e2d [junit] Don't override main class if !null in TestObject#createJavaParameters (RIDER-118944)
Now we can use a custom main class from JUnitDevKitPatcher to run tests in dev-mode,
similarly to com.jetbrains.rider.test.devServer.RiderTestNGDevMainKt and then use com.intellij.rt.junit.JUnitStarter.


IJ-CR-149961


(cherry picked from commit a6255c22c1ec972cbfc35837af31503fe81ac2a9)

GitOrigin-RevId: 47d1329fca6e9061fd7f43626321813e3783b7e3
2024-11-22 16:14:33 +00:00
Aydar Mukhametzyanov
bd6b47dc3d IJPL-171343 Fix the if condition
(cherry picked from commit 8b6f8da929b722b8d0042902774056a83dc49fe3)

IJ-CR-149795

GitOrigin-RevId: ef97cea373beb6c67c7995c994d5e26c7c6b6c94
2024-11-22 16:13:16 +00:00
Aydar Mukhametzyanov
92dcbee7c5 IJPL-171343 IdeStatusBarImpl has a leak of a widget component
(cherry picked from commit f9c0799e71ab982a65b13f8fb27a774942d64b85)

IJ-CR-149795

GitOrigin-RevId: 9604db721d8d9c5b2ed73a40960c6f673bae753e
2024-11-22 16:13:16 +00:00