Commit Graph

452973 Commits

Author SHA1 Message Date
Bart van Helvert
b52e56549b Merge branch 'kt-master' into master
GitOrigin-RevId: 89e150093e3954d226d62e2e144a55ecd8da0dea
2024-08-28 21:41:01 +02:00
Vyacheslav Karpukhin
065f712b62 FL-28903 Mercury Plugin is not loaded with K2
GitOrigin-RevId: 54786afefeff91157562f67dfcddf3f48c7b0290
2024-08-28 19:06:22 +00:00
Dmitry Kichinsky
3598025b9e [maven] IDEA-337651 MavenProject code cleanup
GitOrigin-RevId: a026378ada838021c5418e0a53afb029272cf8e0
2024-08-28 18:00:43 +00:00
Dmitry Kichinsky
c942a7a175 [maven] IDEA-337651 cleanup MavenProject after conversion to kotlin
GitOrigin-RevId: 346dc0f3493587f0d50a26b272342c82d7898b18
2024-08-28 18:00:43 +00:00
Dmitry Kichinsky
be78b2f1ea [maven] IDEA-337651 convert MavenProject to kotlin
GitOrigin-RevId: a8b116a4550a38e4a15217acb78f2efbde787c36
2024-08-28 18:00:43 +00:00
Dmitry Kichinsky
1ddc7721b7 Rename .java to .kt
IDEA-337651

GitOrigin-RevId: 5c0d81e4df691637ba5e01a28e9b6365fe085899
2024-08-28 18:00:43 +00:00
Lev Leontev
8be2368f7f [platform] Optimize LibraryRuntimeClasspathScope more
GitOrigin-RevId: ecb079cce4dbcd0829bf782b5013f46edc2c57ee
2024-08-28 17:55:55 +00:00
Tagir Valeev
13845dd38c [java-dfa] Call restrictFromState when we track chained qualified value as well
It's possible that we track chained qualifier value only. E.g., under if (!str.trim().isEmpty()) we store nothing about str.trim, but we know that str.trim.length is 'int >= 1'. So if later we get a new fact about str, like if (str.equals("\n")), we still should call restrictFromState, as this fact implies that str.trim == "" and str.trim.length == 0, contradicting the current memory state, so we should not apply such a fact.

Fixes IDEA-357897 DFA produces exception: Precalculated value description.trim mismatches with method handler
Should fix at least partially EA-1080132 ISE: MethodCallInstruction.getMethodResultValue (String.trim, Enum.name)

GitOrigin-RevId: 47849768da15f2878957a0fcce9e358152fbd7e4
2024-08-28 17:54:26 +00:00
Tagir Valeev
f1dc5b52bf [java-dfa] DfaMemoryStateImpl.updateQualifierOnEquality: do not do potentially expensive checks on non-qualified value
GitOrigin-RevId: 4a5ef91d384ee8085c6630645c26722e24dd7936
2024-08-28 17:54:26 +00:00
Tagir Valeev
59325634ab [java-inspections] IDEA-356832 Inspections ignore redundant Class::cast method call
GitOrigin-RevId: 390a19d69020bc91f1395e6c4d23f14992ca396b
2024-08-28 17:54:26 +00:00
Tagir Valeev
646b6ff3d1 [java] VariableNameGenerator: contracts
GitOrigin-RevId: f22a0ac01694934f291d31f0322f4c01d271418e
2024-08-28 17:54:26 +00:00
Alexander.Glukhov
ef8d5d6a70 [external system api][cleanup] removed the deprecated and unused method ImportSpecBuilder#forceWhenUptodate
GitOrigin-RevId: dd7602cc47df4b812b68617f79c3fc40b59ca4da
2024-08-28 17:29:32 +00:00
Alexander.Glukhov
289a241dee [external system api][cleanup] do not invoke ImportSpecBuilder#forceWhenUptodate because this method does nothing
GitOrigin-RevId: 69de2f43ae79f83577b6b8cae6cd0dc883c8759d
2024-08-28 17:29:32 +00:00
Alexander.Glukhov
aeab25d191 [external system api] marked ImportSpec and TaskExecutionSpec as NonExtendable API
GitOrigin-RevId: 8fb25a8bc2c5f27dda205926ef02f7ea4bc4c8b1
2024-08-28 17:29:32 +00:00
Alexey Kudravtsev
1a4c42f516 cleanup: make signature more explicit about modifying its arguments
GitOrigin-RevId: b6466715f24d86399f30e838d3f64a4731841270
2024-08-28 17:06:48 +00:00
Alexey Kudravtsev
bc0ed54e20 notnull
GitOrigin-RevId: 6bff4f44575e9aedc8671b8373181549570f9a78
2024-08-28 17:06:48 +00:00
Vera Petrenkova
ba00f7fbf1 IJPL-161125 Diff tabs have weird names in the switcher
GitOrigin-RevId: 5ddb3cb4f8ffbe1caadf4c0e26eb394067c83835
2024-08-28 16:41:54 +00:00
Vladimir Parfinenko
a5afd57455 [debugger] support evaluation of Java signature polymorphic methods, IDEA-358378
^IDEA-358378 fixed

GitOrigin-RevId: 9febcc6d20fac8b79ab755dd46dce51d66d19ac0
2024-08-28 16:41:37 +00:00
Louis Vignier
14772a4268 [npw] Use the new JDK combo for generators
#IDEA-343968 Fixed

GitOrigin-RevId: eaf4cd1b94775054277d9b5d3e06519e2f73dfb5
2024-08-28 16:36:40 +00:00
Louis Vignier
5c785be0e7 [ui] Fix vertical position of 'Dependencies storage format'
#IDEA-357801 Fixed

GitOrigin-RevId: fb91433bfc35545ff625613329c66724f52dbda6
2024-08-28 16:36:40 +00:00
Yuriy Artamonov
dd402795e7 [ui] Await tool window manager for LibraryDependentToolWindowManager init
GitOrigin-RevId: 365518e3f2996bfd32a71627c8150bfb4ab98b14
2024-08-28 16:23:02 +00:00
Vera Petrenkova
1e3e69e1c2 IJPL-43606 Untrusted Server's Certificate window is confusing
GitOrigin-RevId: c714299776c29dcffbe40cbcb7afbcb16a551a12
2024-08-28 16:08:02 +00:00
Vera Petrenkova
d8634e0aec Rename .java to .kt
IJPL-43606

GitOrigin-RevId: 33b1904f6c9aafd5f7f77a9bbfa0f6ca5f6a83a3
2024-08-28 16:08:02 +00:00
Andrey Lisin
27ae684901 PY-75515 Fix connection logic to debugger when IDE acts as debugger client
Implemented a retry mechanism to address situations where the debugger server socket may not be instantly available. Replaced `ScheduledExecutorService` with a single-thread executor for task execution in `ClientModeMultiProcessDebugger`, thereby reducing unnecessary "Connection to Python debugger failed" error messages.

GitOrigin-RevId: 2ea542680605ea960d0c94f421761c69a722f4d2
2024-08-28 16:05:01 +00:00
Andrey Lisin
d1c7e0917a PY-73432 Minor: better name for registry key
GitOrigin-RevId: cec63f671f0635ba39d62126f21e023c0cf7fe73
2024-08-28 16:05:01 +00:00
Artem.Bukhonov
f5fee916be [IJPL] currentThreadContextOrNull() should also fall back to IntellijCoroutines.currentThreadCoroutineContext as its non-nullable version.
currentThreadOverriddenContextOrNull is added for tests.

GitOrigin-RevId: 6f956e79d6e059edf471f7d0d1cc7b9bfb6890a2
2024-08-28 15:53:41 +00:00
Bart van Helvert
611b0d4e1c [kotlin] Don't use in-memory file to check accessibility
Also disables some KMP tests because there is a problem in the test infrastructure for them. #KTIJ-31128 Fixed

GitOrigin-RevId: 180454971b5343994755a50c845ad550fd79bee7
2024-08-28 15:48:13 +00:00
Vladimir Dolzhenko
b92c1a7af2 [kotlin] Initial porting of ElementActionsFactory.createAddAnnotationActions and createAddFieldActions
#KTIJ-30931

GitOrigin-RevId: 36f29a9081fa911ce039da87f631212034ee99a9
2024-08-28 14:59:02 +00:00
Aleksey Dobrynin
e70c081733 [java, compilation-charts] fix: the color of the search field
GitOrigin-RevId: bdc15263289008a2339f76591600ab95ca4e5a74
2024-08-28 14:22:49 +00:00
Roman Golyshev
06745e8971 FL-26673 [kotlin] Avoid too long ID names in Kotlin "expect" indices
GitOrigin-RevId: f07f766119be6039fa34e45ba0faa57cf6a324e4
2024-08-28 14:15:17 +00:00
Alexey Kudravtsev
d862bdf898 mark some dangerous methods internal
GitOrigin-RevId: 0dc569bb7b13770b65fb925b265a9e70f08dc276
2024-08-28 14:15:07 +00:00
Vladimir Parfinenko
cc11cd4bc5 [debugger] make visualized JSON/XML popup draggable
GitOrigin-RevId: 9081114db09d7108f315fce0c1d6d5e162ac76a3
2024-08-28 14:03:59 +00:00
Aleksey Pivovarov
6ec09a4ebb editor: cleanup - remove code duplication for 'Distraction Free Mode' gutter layout
GitOrigin-RevId: a46a85dbf8e006ed8ce10ed4146eade78cae93af
2024-08-28 14:02:50 +00:00
Aleksey Pivovarov
102d1225ca editor: properly reserve space for the second line number column
Follow-up: 02a9335d8d60a50dd578b7b0fc8d45b6fa3cb377- Fix 'Distraction Free Mode' layout as well

GitOrigin-RevId: 9b6416eea336c664afbe8d95d9011be1fe586e4b
2024-08-28 14:02:50 +00:00
Aleksey Pivovarov
df72284cc0 editor: cleanup - rearrange code
GitOrigin-RevId: 53c0805801beab3e862d4ed5c94dc7ad456756c8
2024-08-28 14:02:50 +00:00
Aleksey Pivovarov
97d81c047a editor: cleanup - extract 'Distraction Free Mode' margin into a separate layout group
GitOrigin-RevId: 573317c0161ba0f488d71352b25c72b332e22f37
2024-08-28 14:02:50 +00:00
Aleksey Pivovarov
38112a8b3f editor: do not reserve space for the second line number column if line numbers are hidden
Follow-up: 02a9335d8d60a50dd578b7b0fc8d45b6fa3cb377 - Fix 'Distraction Free Mode' layout as well

GitOrigin-RevId: 1d25f85aaa71464ac4a5fb0b8bfd095363d21878
2024-08-28 14:02:50 +00:00
Aleksey Pivovarov
c89c521a3c editor: cleanup - unify gutter layouts in different modes
GitOrigin-RevId: dd11dfe3e70645a9ad2b9f892fc9b40076c71e75
2024-08-28 14:02:50 +00:00
Aleksey Pivovarov
e7cebb40dd editor: cleanup - remove dead code
GitOrigin-RevId: ab14172d38cf2e36fef1094d8b7aeabe1ab33e58
2024-08-28 14:02:50 +00:00
Aleksey Pivovarov
1980b01e18 IJPL-161142 vcs: fix ColorIcon rendering in action popups
EmptyIcon has non-trivial implementations.

GitOrigin-RevId: 2a143295abc9852c1314ebab3bf91da3b7bbfa11
2024-08-28 13:38:48 +00:00
Aleksey Pivovarov
b9b03887d6 IJPL-161142 vcs: fix CheckboxIcon rendering
The mutable 'mySelected' state does not work well with 'JBCachingScalableIcon' cache.

GitOrigin-RevId: 0610f54a55900be826137ebf119724d29daf6e0c
2024-08-28 13:38:48 +00:00
Ruslan Cheremin
52a3942a57 [vfs] IJPL-160972: use ContentTooBigException to skip storing too big contents in VFS
+ catch `ContentTooBigException`, don't store the content, set contentId=0

GitOrigin-RevId: ff1330a251f3b24ea597f25067ff9e30aca95708
2024-08-28 13:34:55 +00:00
Ruslan Cheremin
1fc82042ff [vfs] IJPL-160972: AppendOnlyLogOverMMappedFile throw ContentTooBigException on too-large-file-content
+ throw `ContentTooBigException` instead of `IllegalArgumentException`: allows catching _specific_ exception and provide more meaningful fallback

GitOrigin-RevId: ae4ad1f92bf1fca23de0e78590dc96055cc5c57d
2024-08-28 13:34:55 +00:00
Ruslan Cheremin
c1f3dd3b4a [vfs][cleanup] fix naming, add comments and todos
GitOrigin-RevId: 7b65acf2cb95ae41f8823e28b1f969f1c4c43891
2024-08-28 13:34:55 +00:00
Andrey Vokin
368a0df14c PY-72690 Slow code analysis for Python code using many TypedDict
Performance snapshot shows that an enormous amount of time is spent calculating hashcodes for types.

GitOrigin-RevId: 47d488ada253c1aa78ae247d45af50cf4a553426
2024-08-28 13:26:25 +00:00
Andrei Iurko
f65c970d2d [qodana] QD-9527 Enabled Poetry SDK creation for Poetry projects in headless mode
GitOrigin-RevId: edaab8de048359a95a197989fb2c53068dd21f3e
2024-08-28 13:11:34 +00:00
Vladimir Koshelev
29ca865bc6 [pycharm] enable appcds for PyCharm PY-75476
GitOrigin-RevId: d20fd55316fb6049f5f1effe6e47248aa5a46555
2024-08-28 13:07:35 +00:00
Mikhail Pyltsin
07ce79c60f IJ-CR-143108 [java-action] IDEA-356782 Incorrect place of caret into text block with injection after enter
GitOrigin-RevId: 0550bdd9f009773eb84fb51c0faf82df157b5265
2024-08-28 13:04:23 +00:00
Nikolay Chashnikov
d23d55e2a8 [remote dev launcher] unset environment variables set by remote-dev-server launcher when starting processes from the IDE (GTW-9586)
EnvironmentRestorer removes variables from the environment for processes started from the IDE if the corresponding INTELLIJ_ORIGINAL_ENV _ variable is set to empty string. So the native launcher should set empty value for variables set by it like it is done in the old launcher.sh.

GitOrigin-RevId: 1a3b69637f52e5f654a21911155567e042ff20ac
2024-08-28 12:44:42 +00:00
Nikolay Chashnikov
d8b290f19f [xplat launcher tests] diagnostics: print full stdout and stderr if a test in remote_dev_tests.rs fails
GitOrigin-RevId: 0fd4974e94ce9d94e3b4b65200548a08e3aa7732
2024-08-28 12:44:42 +00:00