Commit Graph
426096 Commits
Author SHA1 Message Date
Tagir Valeev 55fb552005 [java-analysis] InferNullityAnnotationsAction: better behavior when nothing was found
GitOrigin-RevId: 974ee800b075c09118a2f87551da45d41cdf33fa
2023-11-28 15:14:48 +00:00
Tagir Valeev 8c478f8da1 [java-inspections] CreateSwitchBranchesUtil: update labels after shortening
Should fix EA-922716 - IAE: PsiUpdateImpl$ModPsiUpdaterImpl.getRange

GitOrigin-RevId: e034d73b73be8432cc05d82bfca11b1216c46708
2023-11-28 15:14:46 +00:00
Georgii.Zorabov e1026ad8ae [tables] removed non-ascii symbol in comment in pydevd_polars.py and pydevd_pandas.py
Merge-request: IJ-MR-120966
Merged-by: Georgii Zorabov <georgii.zorabov@jetbrains.com>

GitOrigin-RevId: 810815417b3ae59ff70a201773f3231e2a8e5c5f
2023-11-28 15:13:58 +00:00
Roman Shevchenko eb27d57541 Cleanup (code duplication)
GitOrigin-RevId: fbbfa0160fd9169e5cdc8688763756d46482e06b
2023-11-28 15:10:19 +00:00
Roman Shevchenko db541de9b9 [updater] consistent use of "keep" and "ignore" options (IDEA-336163)
The former is used when other options are available for a file (like "replace" or "delete").

GitOrigin-RevId: 4674747a06adb81f3ccd81392a0a91e66757739c
2023-11-28 15:10:15 +00:00
Roman Shevchenko e5776f72b4 [updater] preparing conflict resolution options for localization (IDEA-336163)
GitOrigin-RevId: ea3aa7f3df24ab6ad0bcb0c5a5cebeb699913170
2023-11-28 15:10:11 +00:00
Andrei Klunnyi 8044f96707 KTIJ-27907 [kotlin][scripting]: Gradle build script files not highlighted on project reopening
Script highlighting is on when `KotlinHighlightingUtils.shouldHighlightScript` returns `true`.
Its value is cached (see [1]) and reset on modification trackers increment.
`ScriptDependenciesModificationTracker` was missing but shouldn't as the one signaling about
`ScriptConfiguration` availability (see conjunction [2] at [1]).

More details on trackers

There are two preconditions for scripting highlighting: indexing is over, and script-configuration
is available. The first one is tracked via `ProjectRootModificationTracker`. It's triggered at [3].
The second - via `ScriptDependenciesModificationTracker`. It's incremented at [4].

On project opening from scratch (when indexing happens), we mostly rely on `ProjectRootModificationTracker`.
But when the project is reopened, `ScriptDependenciesModificationTracker` comes into the scene.
Why can we rely on its increment? The update at [4] is a snapshot containing all script dependencies
roots [5].

---------------------------------------------------------------------------------------------------------
[1]: KotlinHighlightingUtils.shouldHighlightFile()
[2]: ScriptConfigurationManager.getInstance(project).getConfiguration(this) != null
[3]: ProjectRootManagerOnEndOfDumbModeIncrementer.exitDumbMode()
[4]: ScriptClassRootsUpdater.doUpdate()
[5]: ScriptClassRootsCache.FullUpdate.getHasNewRoots()

GitOrigin-RevId: f19eb026fe36a59bf3a1af6f295b4fbd79088071
2023-11-28 15:05:55 +00:00
Dmitry Krasilschikov 22d6081013 IDEA-339114 fix NPE on open Actions tab on the welcome screen
GitOrigin-RevId: a68a615dc7aea79c1b5e67f03b5d981069af1bfa
2023-11-28 14:52:34 +00:00
Daniil Kalinin 99bca18eb1 PY-63856 Add info about TypeVar bounds into the inspection message about unmatched types in PyTypeCheckerInspection.java
Merge-request: IJ-MR-120117
Merged-by: Daniil Kalinin <Daniil.Kalinin@jetbrains.com>

GitOrigin-RevId: fdf3c6fd734f69f82595bb51ce5badc437ca5045
2023-11-28 14:51:31 +00:00
Ruslan Cheremin 3a795295bd [vfs][cleanup] mark VFSContentStorage as @Internal
GitOrigin-RevId: 1fe56489f0666f99be129d51a59e814cc74844bc
2023-11-28 14:40:45 +00:00
Ruslan Cheremin 222ca15f92 [comments] added few TODOs remainders
GitOrigin-RevId: a400a18ede477351826c96d421d3549092bd0b93
2023-11-28 14:40:45 +00:00
Tagir Valeev 652fdc6960 [java] MethodParameterInfoHandler: handle constructor completion when it's resolved to a class
Fixes CCE: MethodParameterInfoHandler.findElementForUpdatingParameterInfo

GitOrigin-RevId: 78cc87045e240bbd54418c85edf354618a67a17f
2023-11-28 14:37:55 +00:00
Alexander Bubenchikov 634f6fb5ca unignore MavenArchetypeTest
GitOrigin-RevId: c7c23ddee70e760dd0b41281b6e65d63ef504afd
2023-11-28 14:21:44 +00:00
Alexander Lobas 72275a3fbe IDEA-332821 Inline banner: Wrong insets near 'Close', 'Settings' buttons
GitOrigin-RevId: f07f86c4551bb24feb41e2e41914780f9aa07b46
2023-11-28 14:21:21 +00:00
Vera Petrenkova 819b1d9cd6 IDEA-338576 using alpha in saturation calculating
GitOrigin-RevId: 5997eaed9748cc0682b961bd974a205d19bd9a53
2023-11-28 13:47:21 +00:00
Vera Petrenkova e83a63f2e2 Revert "IDEA-331405 Hide IntelliJ Light from new UI and replace to Light with light header if it was installed"
This reverts commit 57219591e8b71260969dcfe160bc07febc927f0c.

GitOrigin-RevId: 31175b91dbcb86583135507930a90b7f52136d51
2023-11-28 13:13:50 +00:00
Tagir Valeev fd00898d32 [java-refactoring] Inline variable: fix CompilationError test; support inline at ref in the presence of compilation error
Improves IDEA-336815 "Inline variable" misleading error message when compile-errors are present

GitOrigin-RevId: 6e443a44c4ccf8a65d10f4f83665cfe2641282b0
2023-11-28 12:44:11 +00:00
Tagir Valeev 0679a1a9f4 [java] JavaConcatenationToInjectorAdapter: patterns used
GitOrigin-RevId: 023a7d77c660f656f7d4ada42d5121cfd728eaae
2023-11-28 12:44:07 +00:00
Nikolay Chashnikov 0b555e8b56 [configuration store] fix updating component state from stream provider if it was removed
In the previous version, if 'updatedFromStreamProvider' is firstly called when the element cannot be loaded (e.g., because its file is empty, such a situation reproduced in RemoteDevConfigShareTest, see CWM-8547), it stored 'null' in 'storageDataRef', and then 'updatedFromStreamProvider' is called again and now the element is loaded, it did nothing, so configuration of the component wasn't updated.

GitOrigin-RevId: 65636a3e984a9416c1a9e532328aac5f3cc9d0c2
2023-11-28 12:33:42 +00:00
Vera Petrenkova a6272ebc54 IDEA-339069 Show the path to the project in the project widget tooltip
GitOrigin-RevId: 545cd7a3328363beb2ac836e40f9757363554625
2023-11-28 12:26:22 +00:00
Vladislav.Koshkin bb358bc5a8 [kotlin] JoinDeclarationAndAssignmentInspection in k2
^KTIJ-21115 Fixed

GitOrigin-RevId: 89614afe5b87b7e01810e45a71dc11bd4ccedd5c
2023-11-28 12:23:49 +00:00
Maksim Zuev 05b591aa56 [coverage] Refactor: rename to CoverageInfoCollector & change interface
GitOrigin-RevId: 1e18def6f33663afdb575411b0c1ea007417d29b
2023-11-28 12:08:04 +00:00
Alexander.Glukhov e7bc6ec6a3 [gradle][IDEA-335663] do not corrupt encoding of the gradle.properties file
By specification all Java property files should be encoded with ISO 8859-1. `Files#newBufferedReader` read bytes from the file and decodes them into characters using the UTF-8 charset.

GitOrigin-RevId: 9a6c8eaefbf8428761f0bc0abfd0a2854d22cc44
2023-11-28 12:07:23 +00:00
Alexander.Glukhov 0e08afb197 [gradle][IDEA-335663] do not enforce utf-8 in the gradle.properties reader
By specification all Java property files should be encoded with ISO 8859-1. `Files#newBufferedReader` read bytes from the file and decodes them into characters using the UTF-8 charset.

GitOrigin-RevId: fff810c7b83550ccfc63e46ad4fa1ec63d67cdf6
2023-11-28 12:07:20 +00:00
Alexander.Glukhov fcb82d4eae [gradle][IDEA-335663] gradle wrapper reader cleanup
GitOrigin-RevId: 1120d0b17e2eb0ee0727cfdb2e75aef0b45f0860
2023-11-28 12:07:16 +00:00
Aleksey Pivovarov 23a8fdd944 IDEA-318130 vcs: explain that VCS is disabled for untrusted projects
GitOrigin-RevId: f7d4d34062cd1270bfe1840d3ca18e887566a48f
2023-11-28 12:00:03 +00:00
Alexey Belkov dfafd52e21 [java-analysis] NullityInferrer: don't try to add both annotations to a variable
The conditions are mutually exclusive logically, and the `else` keyword makes it explicit.

GitOrigin-RevId: cbb0b81fb4495f2ac74e7e190f9289a232bde2be
2023-11-28 11:50:53 +00:00
Alexey Belkov ca6c111248 [java-analysis] "Infer Nullity" cleanup
* Formatting
* Nullability annotations
* Small refactoring to improve readability
* No semantic changes

GitOrigin-RevId: ac02f7c7561ef85da500153823f538ce786e1f89
2023-11-28 11:50:50 +00:00
Eugene Zhuravlev 149913cf57 JPS mappings for incremental compilation refactoring: introduce general diff strategy with extensions for bytecode-based nodes
GitOrigin-RevId: b9637d0bcfcb38a901c3c13605efc56ef736f00a
2023-11-28 11:12:48 +00:00
Vladimir Krivosheev d1ea04c98c IJPL-379 print LogMessage.Kind.ARTIFACT_BUILT as span event for console logger (to print in context)
GitOrigin-RevId: ee527e901962615f99f54852dec0461fbafeb49b
2023-11-28 10:59:52 +00:00
Vladimir Krivosheev f9315d1690 IJPL-379 mark copyAdditionalFilesBlocking as obsolete
GitOrigin-RevId: 661a623fd8f421d1f1b161ec726415d6c4f01ba4
2023-11-28 10:59:46 +00:00
Vladimir Krivosheev fc46d93e2d IJPL-379 build script - async JDK downloading
GitOrigin-RevId: a184a6022696e8194dfe61117f3ab774af002975
2023-11-28 10:59:44 +00:00
Vladimir Krivosheev 19e1ee508a IJPL-379 cleanup
GitOrigin-RevId: 95b3ac350d7e4fea78f78f399132e49e843d9b1c
2023-11-28 10:59:42 +00:00
Vladimir Krivosheev cb4cb357b3 BeanBinding - revise warning message
The new message now explains the implications of not having accessors for a class, stating that it means the state class cannot be serialized properly.

GitOrigin-RevId: 45430952424769045cfc26f784498d34bd72b330
2023-11-28 10:59:40 +00:00
Nikita Kudrin 57e33ebc7f [artifacts metrics] AT-598 Taking into account all the returns in measured code
GitOrigin-RevId: f2a9833a22cc6c4d6148a232a97fefd830022051
2023-11-28 10:35:54 +00:00
Vera Petrenkova 2c9e6d6595 IDEA-331405 Hide IntelliJ Light from new UI and replace to Light with light header if it was installed
GitOrigin-RevId: 57219591e8b71260969dcfe160bc07febc927f0c
2023-11-28 10:23:44 +00:00
Vera Petrenkova 17217c72e9 IDEA-338755 replace path from project root to full path
GitOrigin-RevId: 8764a80165fc3f1d66913aea0c46edf216e8ce77
2023-11-28 10:23:15 +00:00
Vitaly Legchilkin 0b0b49c460 Increment python.sdk.install.events version (PY-63083)
(cherry picked from commit 2cac078aeed8e211ffd7907ed6f8e4049be3cb8a)

IJ-MR-120874

GitOrigin-RevId: cc1a7fd00d25c6b4625c2cf0ea43fbc1b9751427
2023-11-28 09:58:52 +00:00
Vitaly Legchilkin 34f3828f5a Redesign of download python sdk (PY-63083)
+ Installer for pkg (MacOS packages)
+ Installer for exe (Windows executable)
- get rid of XCodeSelect installer (command line tools)
* Split PySdkToInstall

(cherry picked from commit c1a0becc70c6e421c48dd03bb80f31b8b7509dfe)

IJ-MR-120874

GitOrigin-RevId: 4fdcaa18c41bcdd0c004fed76de3054683b9ffbd
2023-11-28 09:58:50 +00:00
Vadim Salavatov 56de140cf3 IDEA-332041 fix classloader leak in IconMapLoader
GitOrigin-RevId: 42b5299d52a3203da2236b1907d457d61100ba0a
2023-11-28 09:53:48 +00:00
Bas Leijdekkers f321eb129c Java: prevent CCE when unknown type of member is passed to statistics manager
GitOrigin-RevId: bfa2b1362bcfc47db9f7fd6d193a7eada348fdbd
2023-11-28 09:40:30 +00:00
Bas Leijdekkers d9e2cea4b0 Java: fix slow operations in generate equals wizard (EA-841384)
GitOrigin-RevId: dc8003ff099d31b8432da4eaf872963827734c7f
2023-11-28 09:40:28 +00:00
Bas Leijdekkers 053caa01b5 Java: don't generate instanceof class check in equals for final classes (IDEA-209430)
GitOrigin-RevId: 73f6b3e28dd466b9975f0c169b9c3d52fdf9ff82
2023-11-28 09:40:26 +00:00
Bas Leijdekkers 9b2fe7815f Java: use correct variable prefixes in Generate Equals (IDEA-265430)
GitOrigin-RevId: 04f96ac8c0bafb53370d8075bb39730e5f870136
2023-11-28 09:40:24 +00:00
Bas Leijdekkers 9c6f41248b Java: test conflict warnings on inheritors (IJ-CR-120227)
GitOrigin-RevId: 1d79b300e30699cd544055deea2124f97ea66218
2023-11-28 09:40:22 +00:00
Georgii Ustinov 2625546a26 Swap checks of superCall and delegateCall in OverrideOnlyInspection
IDEA-338095

GitOrigin-RevId: 084ff67e15159c4cf5d07950220e41cc8f02bba6
2023-11-28 09:30:51 +00:00
Vojtech Balik 035a4cb296 [formatter] IDEA-338921 fix inconsistent behaviour of undo/redo with "reindent file" action
The "reindent file" action is now also a named command.

GitOrigin-RevId: fc497084f3b09b3896f82d036e6dea9f5dcec790
2023-11-28 07:21:51 +00:00
Ilya.Kazakevich 9f573f31dc PY-61628: Pass background color to Jupyter web app.
There is much more themes than "darcula" and "light". So, we pass editor gutter background to the web app, and it uses as background.

GitOrigin-RevId: afc01d21723c092327ab29203f1dbf84fbc87641
2023-11-28 03:22:31 +00:00
Henry Wylde 874b7d0da1 RUBY-32066 add support for indexing __todo__ and including them inside the todo toolwindow
GitOrigin-RevId: ded92634b23201afdedfe07308795639b298bd1e
2023-11-28 01:27:55 +00:00
Henry Wylde 275a2aee05 RUBY-32066 allow for null TodoPatterns in TodoItem
Some languages have some built in syntax for "todo" markers, such as Kotlin and RBS. In these cases it can be useful for support to always include these markers as todo items and not pair them with a comment-specific TodoPattern.

GitOrigin-RevId: 3dd4b39bf14d73b23faecbda8ada0ef9056ee975
2023-11-28 01:27:52 +00:00