Commit Graph

458768 Commits

Author SHA1 Message Date
Anastasia Katsman
aac80c5a19 [rdct-tests] better notifications api usage
GitOrigin-RevId: 4d4c3fa7814db49c6ba8f31a67df30be64dc11e4
2024-12-24 16:58:06 +00:00
Anastasia Katsman
4643e7331a [rdct-tests] more consistent naming
# Conflicts:
#	community/platform/remoteDev-util/src/com/intellij/remoteDev/tests/impl/DistributedTestHost.kt

GitOrigin-RevId: a5b024a7a7389b882ecc03344733b19b4434c2be
2024-12-24 16:58:06 +00:00
Anastasia Katsman
8f8b2ae2d3 [rdct-tests] always include exception cause in failure stacktrace
GitOrigin-RevId: a9006c0f60439b01d3efbd360bb59349480f23f3
2024-12-24 16:58:06 +00:00
Anastasia Katsman
53caa81e0e [rdct-tests] handleCheckBoxWithFileName: minor polishes
GitOrigin-RevId: 448431b71c7586360bbd1e0a4aefc18aed4ac441
2024-12-24 16:58:06 +00:00
Anastasia Katsman
9c88d9696a [rdct-tests] dump heap when the exception is received from agent directly
GitOrigin-RevId: d9ef43b8151c9e91d8fc9828a6be2af61d1e3a36
2024-12-24 16:58:06 +00:00
Yuriy Artamonov
1da8465556 [java] IDEA-365068 FUS: Java Exception file template logged as third.party in statistic events
(cherry picked from commit a1c205f3d5fbabec1b606c82fa33aa1c5d12ef66)
IJ-CR-152109

GitOrigin-RevId: 5cd6886bd3ed3e3fcb033947b07039d93b8214e9
2024-12-24 14:28:54 +00:00
Vladimir Lagunov
ad9bc79cb7 IJPL-166435 IJent: change log level of the server-side app in runtime
(cherry picked from commit 582b8d52d52c4776188f1fc22fe896d9fb40c9e4)

IJ-CR-148991

GitOrigin-RevId: 762baeed11b0785d735943d22a8e662a7a33ce50
2024-12-23 23:21:38 +00:00
Dmitry Batkovich
a992979edb Revert "[kotlin] Put configureLibraryJar() in KotlinWithLibraryConfigurator under WA for configureModuleWithLibrary()"
This reverts commit a26bfde0489c2d5e28e33bfe9fcd89c402a2061e.


(cherry picked from commit b08e0a2202ed71088d389bfdf13c9d8b2f8c276c)

IJ-CR-152120

GitOrigin-RevId: fbd624ce203a8a601f33e20ee0d37fa95ce3ff0f
2024-12-23 19:36:17 +00:00
Frederik Haselmeier
e2faf5facc [kotlin] Check for cancellation after processing each module in ComposeLibraryUsagesCollector
^IDEA-365003 fixed


(cherry picked from commit 4c23cb6ee9d18caea16bb2aaa47a7015b8bba87f)

IJ-CR-152016

GitOrigin-RevId: f4830fc713bfeaaccc829d1ed533ed0706678436
2024-12-23 13:50:10 +00:00
Dmitry.Neverov
a45a704503 CPP-42585 more precise check for editor window shown in a DockWindow
DockManager.getContainerFor() returns DockManager.dockContainer for editors
opened in the main window. This made us think that the singleton editor opened
in a Split is shown in a DockWindow. As a result the same singleton file
with disassembly was opened in another Split in the main window.


(cherry picked from commit 8584fd131615209cf26ff70315d959828a6a46d2)

IJ-CR-151729


(cherry picked from commit 201e364498109091c37d35cb43c59014eb90f58f)

IJ-CR-152082

GitOrigin-RevId: bdd2a78b5958066f77843931c12ad626da5fb76f
2024-12-23 11:55:56 +00:00
Patronus
c33a4b8c2f Merge IJ-MR-152068: IJI-2443
GitOrigin-RevId: 55a556b7cd90ff7a1ef2e3d711ace9dc0b196521
2024-12-20 17:04:36 +00:00
Mikhail Golubev
1be05f5d9e PY-78189 Flip expected and actual types in warnings about __set__ argument
(cherry picked from commit 65f8c92b852539908c71715756ec407781a9fb6b)

IJ-CR-152050

GitOrigin-RevId: 2672bc7f5d39dd2bec1a9b2c2d322dffb3d66062
2024-12-20 14:45:15 +00:00
Aleksandr Sorotskii
4ed6a858d4 Automatically switch client/server mode in debugger tests; PY-78168
(cherry picked from commit 3714877098305edcc4eae4f9761ab176c0112355)

IJ-MR-151881

GitOrigin-RevId: e6c06cfd22fa03964b8373ecd738fec26c7d785f
2024-12-20 14:42:55 +00:00
Aleksandr Sorotskii
f5e820f848 disable python debugger single port by default; PY-78168
(cherry picked from commit e73f477e2424c4c103bfaa676cdf94098170d4b5)

IJ-MR-151881

GitOrigin-RevId: 7a665d852d77554e00a51cce697940ebd5da538b
2024-12-20 14:42:55 +00:00
Alexey.Merkulov
8b28e1dba3 IDEA-364943 Report LinkageError exceptions as MISCOMPILED problems
(cherry picked from commit 673c46d7a6f41a52c085a5df37decd1ae030d1a1)

IJ-CR-151999

GitOrigin-RevId: 9dd247c866114827814acf2d28f637fbbccc8f73
2024-12-20 14:25:04 +00:00
Dmitriy.Panov
480469430a Merge IJI-2443
GitOrigin-RevId: a68106cf773ceab89cc73135f697e172f65e6c45
2024-12-20 15:25:01 +01:00
Vera Petrenkova
5686a77d89 IJ-CR-149796 IJPL-171716 Improve project path handling in untrusted project dialogs
Enhance null safety for project path names in dialog titles and UI elements. Adjust logic to handle cases where parent folders or file names are missing, ensuring better user experience and preventing potential null pointer exceptions.

(cherry picked from commit 9c37e2d41b113e42ee4f11efb4097f20cb1faf85)

# Conflicts:
#	community/platform/platform-impl/src/com/intellij/ide/trustedProjects/TrustedProjectStartupDialog.kt

GitOrigin-RevId: 6ab20958aecbf89f6351ec9ad0b3022067146220
2024-12-20 11:54:42 +00:00
Yuriy Artamonov
c388c9cc0e [performance] IJPL-173892 FUS: add project count, oom error flag and last action to low.memory events
(cherry picked from commit 048a9136700b3d9741cd21cb74260e9a8e62a16b)
IJ-CR-151911

GitOrigin-RevId: d0a323177357b21ec1a0db98ab699c6a4fb5eb15
2024-12-20 10:33:27 +00:00
Maxim.Kolmakov
2584933ede Don't suggest to analyze heap if OOM happened on the next start of IDE
The OOM already happened and current dump won't help to detect what was wrong.
Yet, it creates "empty" reports and takes user time to collect snapshot, restart IDE and send the report.

(cherry picked from commit 862e560a4a337e56ba4ca7f7467cae5db30d9a8b)
IJ-CR-151911

GitOrigin-RevId: 91735559c7e21b371171bc789e4db0b0449e6c9d
2024-12-20 10:33:27 +00:00
Vladimir Lagunov
2653654fd3 IJPL-162321 Git: don't use relative paths in GitExecutableFileTester for executing commands on WSL
(cherry picked from commit 815801e1c7e105319cd100a2aae84705a5b0e1c7)

IJ-CR-150934

GitOrigin-RevId: 8311951fc9220c4fef9bb214d4294a3977c664c5
2024-12-19 18:52:43 +00:00
Piotr Tomiak
ebac977c88 IJPL-165058 Further improvements to AsyncRendering - make sure non-suspending renderers do not spin hundreds of threads
(cherry picked from commit 4dd4fa0920ad178d5ae6a0809b27d034160b4a94)

IJ-CR-151474

GitOrigin-RevId: 674f829893359bb8f4e6f6e4bac59abf47075f89
2024-12-19 18:43:02 +00:00
Natalia.Murycheva
050782b5ea PyCharm Tables] PY-33448 PyCharm freezes with large objects in SciView #PY-33448 Fixed
* Fixed also the Python Console case: transposed 1-Dim table there as well

(cherry picked from commit a6c783dc38aa3c5050a836c36d8a76e8b3cbda19)

GitOrigin-RevId: b7fe92925fe8702ffd80e56a4fe0c313c6411372
2024-12-19 15:17:52 +00:00
Natalia.Murycheva
53d3243005 [PyCharm Tables] PY-33448 PyCharm freezes with large objects in SciView #PY-33448 Fixed
* Transposed 1-D numpy array on the Python side of the Debugger
* Applied setMaxItemsForSizeCalculation method to the myRowHeader table to minimize calculations for getRowHeight

(cherry picked from commit f88fa625f2d8673cba2c9819f2907462b3f2301d)

GitOrigin-RevId: de6f919f18caec6624b1696790a88e10659e96f0
2024-12-19 15:17:52 +00:00
Natalia.Murycheva
c68e31976c [PyCharm Tables] PY-77591 Added "is None"/"is not None" conditions to tables' filters #PY-77591 Fixed
(cherry picked from commit ad48262cab5d46f06b1ee7f72c764ee899f0c926)

GitOrigin-RevId: 75313468a9f205fce99fae1215399d32131626a5
2024-12-19 15:17:52 +00:00
Ilya.Kazakevich
785ae87864 PyCharm: Skip files in PYCHARM_PYTHONS dir in tests.
We might have scripts there (on Windows) like `fix_path.cmd`, we need to exclude them


(cherry picked from commit e09ceac554f456a3d8a931e0dfe26872908c303c)

IJ-CR-151567


(cherry picked from commit 8a8d68e41a6bd607622f3b6afa76e5dc878f4236)

IJ-CR-151953

GitOrigin-RevId: 9a463cdc1e0c348c2ffa27f26e64781f5014bd97
2024-12-19 15:16:27 +00:00
Ilia Shulgin
da00fd4e04 [git] IJPL-173721 Detect git executable in WSL v1
WSL v1 is still not supported. However, there is a notification suggesting a hack.
Previously, no notification was shown and git was detected on a host machine producing
"detected dubious ownership" errors.
Also introduced `UnsupportedWSLVersionException` preventing potential miss-leading
notifications in `WindowsExecutableProblemHandler` and hide VCS widget for the
unsupported WSL case.


(cherry picked from commit 9f86bd101b0d2612e116933d2ef086c4b7ae8148)

IJ-MR-151925

GitOrigin-RevId: 5ae4e5711900c7c14f1688f26b245b0f6ddb380f
2024-12-19 14:04:29 +00:00
Nikita Pavlenko
0809096b0f [PyCharm] Jupyter (feat): Fixed Markdown cell mode switch on entering command mode and on cell conversion. #PY-77183 Fixed
(cherry picked from commit 1c4a35dc577363afe2744a904e91e92a15630184)

IJ-CR-151924

GitOrigin-RevId: f7e0e1e3e0b4d22be2f294e7ab14eb5c71e022b1
2024-12-19 13:02:18 +00:00
Roman Golyshev
49894bdce7 KTIJ-32202 [kotlin] Do not lock out conflicting symbols for the type positions
Locking in `java.lang.Deprecated` also led to locking out `kotlin.Deprecated`
alternative symbol.
This, in turn, led to adding explicit imports for everything from `kotlin.*`
package.

This seems like a wrong logic, but this will be dealt with later,
probably as a part of KTIJ-32231.

The current solution is to not lock out the `kotlin.Deprecated`
symbol for `KtUserType` positions (it includes annotation calls).
This logic is already present in K1 Mode's `OptimizedImportsBuilder`.

Also, add a muted testcase for KTIJ-32231 (doesn't work in both K1 and K2)

Also, add muting logic to the K1's `AbstractOptimizeImportsTest`

^KTIJ-32202 Fixed


(cherry picked from commit 89ce6287a44bd05b55cc6bbb3b01157bee30b41c)

IJ-CR-150012

GitOrigin-RevId: e4d004a7a10631afca474330c966a9332933d3da
2024-12-18 18:48:43 +00:00
Roman Golyshev
6c3b9fa8f7 KTIJ-32202 [kotlin] Small cleanup in OptimizedImportsBuilder
Better naming, get rid of redundant nullable lists early


(cherry picked from commit 6cbaaee13a290500d7fbdc7d96fdd2946723cb05)

IJ-CR-150012

GitOrigin-RevId: 20c92c10aafd73ee0c65c662f49b51760f358489
2024-12-18 18:48:43 +00:00
ekaterina.itsenko
c404d3fdbc [pycharm] PY-76963 Tables(Jupyter, DataView): deal with NaN's
(cherry picked from commit db266d1e3d57ab2808d04da0ec020c698a687d98)

IJ-MR-151825

GitOrigin-RevId: fa805e62023b27fde32a82f3b2563278f5060e85
2024-12-18 16:36:33 +00:00
ekaterina.itsenko
e11ed05c0b [pycharm] PY-77107 Tables(Jupyter, DataView): fix display issues
(cherry picked from commit b6eb5b7e6b62a9c850a7f7512702ce5c87685cb4)

IJ-MR-151825

GitOrigin-RevId: 4716c26e57ff3163dbd4046b653c6e0350a70554
2024-12-18 16:36:33 +00:00
Egor Eliseev
cc30351cde PY-77788 Fix Requires Thread annotations
Merge-request: IJ-MR-150426
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

(cherry picked from commit 58bc50470e72e24d85869fb43a2556b6ecc01c61)

IJ-MR-150426

GitOrigin-RevId: 0bb2402914a3fbb9dcda6a868ce87fdbca31af03
2024-12-18 16:04:53 +00:00
Egor Eliseev
cf06be9b95 PY-52265 Poetry in-project environment
Add the new setting: create poetry env in the project.


Merge-request: IJ-MR-149143
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

(cherry picked from commit ed85efe339518cdf6949752be286172113931c22)

IJ-MR-149143

GitOrigin-RevId: 3a682aac846e4a80e8310a3dcc0a5f1c988d28e2
2024-12-18 15:50:26 +00:00
Tagir Valeev
b6fd54065e [java-completion] Resolve annotations inherited from any instance of java.lang.Annotation
If the project has 2+ JDKs, it's possible that we want to use an annotation from another module, which uses another JDK, so we won't be able to find it if we search inheritors of java.lang.Annotation defined in our JDK only
Fixes IDEA-362050 Annotation auto-complete is broken for some classes from other modules


(cherry picked from commit 3133dce302d9dfd03e169678c00fb4d0e23dd50b)

IJ-CR-151470

GitOrigin-RevId: 9f67471bcb07f2da5717414466832c5630414fd2
2024-12-18 15:19:13 +00:00
Egor Eliseev
f910392d5d PY-77160 Poetry/Pipenv modules refactoring
Split pipenv into separate files.
Rewrite functions/methods using coroutines.
Add `internal` or `@Internal`.

Merge-request: IJ-MR-148379
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

(cherry picked from commit b398d04bfa358ce97bf1d30d59b2113548e7983c)


Merge-request: IJ-MR-151355
Merged-by: Egor Eliseev <Egor.Eliseev@jetbrains.com>

GitOrigin-RevId: 2cd929fad7649fd6302100b8af5ff7969de8ec3e
2024-12-18 14:01:31 +00:00
Aleksandr.Govenko
51fe58feb5 PY-20710 Fix NPE in PyTargetExpressionImpl
Merge-request: IJ-MR-150854
Merged-by: Aleksandr Govenko <aleksandr.govenko@jetbrains.com>

(cherry picked from commit ae24337d4cf3e2f8aa3219681bb36abce17cd212)

IJ-MR-150854

GitOrigin-RevId: f42a45ee8af4e48ab83442960e1c9cbe3e15f361
2024-12-18 02:37:10 +00:00
Anton Kozub
345944c3ff IDEA-364245 Column cannot be resolved if using @field:[Column(name = "...")] in JPA
(cherry picked from commit cd2f0b1f53f4a881a572012543052056ef0f914d)

IJ-CR-151650

GitOrigin-RevId: ebd107f2dc2406a11d2956b95fe0f167f4b772c5
2024-12-18 01:20:34 +00:00
Vladimir Panimaskin
ea119b9264 WEB-70221 WebTemplateNewProjectWizard-based generators misplace the *.iml file
(cherry picked from commit 7d14bd613239e7c7c65e1a7e387fc6aeff0a8b19)

IJ-CR-149103

GitOrigin-RevId: b1ab392eadc2c263812bc10cd735408326311d2c
2024-12-18 00:25:41 +00:00
Aleksandr.Govenko
70fe60b4c8 PY-20710 Support 'Generator' typing class
Check YieldType of yield expressions in PyTypeCheckerInspection
Check that (Async)Generator is used in (async) function
Check that in 'yield from' sync Generator is used
Convert PyMakeFunctionReturnTypeQuickFix into PsiUpdateModCommandAction
Infer Generator type for lambdas
When getting function type from annotation, do not convert Generator to AsyncGenerator
Introduce GeneratorTypeDescriptor to simplify working with generator annotations


Merge-request: IJ-MR-146521
Merged-by: Aleksandr Govenko <aleksandr.govenko@jetbrains.com>

(cherry picked from commit b3b8182168c5224f0e03f54d443171ccf6ca7b89)

IJ-MR-146521

GitOrigin-RevId: a95670d7e2787015bcf162637ea6d7bfb47a312a
2024-12-17 20:59:50 +00:00
Tatiana Ber
362a0344a7 PY-77814 Update text in messages
GitOrigin-RevId: f04fcb10130b6fe79516d36b0b16c3f38dcc2462
2024-12-17 19:40:40 +00:00
Vladimir Parfinenko
8c13685cde [debugger] use soft wraps int text visualization popups, IJPL-171620
^IJPL-171620 fixed


(cherry picked from commit 09e431fdccd59fc60eaa88fd63d4f01d43e0a84b)

IJ-CR-150031

GitOrigin-RevId: 1b447ca10e4aa98265d0b5543c69d8fd34bb5f5f
2024-12-17 19:22:15 +00:00
Aleksandr.Govenko
4dd41ee9f5 PY-20611 Missing warning about functions implicitly returning None when return type is not Optional
Updated PyFunction to account for implicit 'return None' statements when inferring return statement types.

It affected return type inference of PyFunction.

Fixed a failing test related to formatted strings.

Added a quick fix to make all return statements explicit.

Updated the CFG to include PyPassStatements, enabling detection of exit points in empty functions.

Simplified PyMakeFunctionReturnTypeQuickFix to independently infer function types and handle required imports. Currently, it does not support specifying custom suggested types.



Merge-request: IJ-MR-148719
Merged-by: Aleksandr Govenko <aleksandr.govenko@jetbrains.com>

(cherry picked from commit 9f58961f9eb70e4f9dbba7359f5aafdfd392b7e2)

IJ-MR-148719

GitOrigin-RevId: 68ef5c4a1cc0fcaffd750cc0713250a106136643
2024-12-17 18:16:40 +00:00
Max Medvedev
137b1d2b13 IJPL-171917 don't allow GrazieInspection to touch indexes in dumb mode
GrazieInspection can run in dumb mode after implementation of IJPL-155874.
But unfortunately, one of its filters (CommentProblemFilter) needs indexes.
So in some situations IDE gets stuck.

The easy solution is just to avoid checks requiring indexes.
A better solution would be to detect todo comments without indexes IDEA-364846.


(cherry picked from commit bc8962287f61eade48df703b7fa25dbd78fb83aa)

IJ-CR-151765

GitOrigin-RevId: 41df36e2ee169afedd2667c923afb36f932e6685
2024-12-17 18:05:04 +00:00
Dmitry Zhuravlev
f45c905fe2 git: extract gpg agent configuration action (IJPL-173525)
Follow-up: a6ec805357dd60578f2408a2ffaabadc53dad00e


(cherry picked from commit 771857ed0cafbdf74d9c82af47bd609a6bd58ea7)

IJ-CR-151739

GitOrigin-RevId: a537016fa7cae17945baf1b297696924d5281210
2024-12-17 16:26:16 +00:00
Dmitry Zhuravlev
f4380c4522 git: add a registry key to control GPG Agent configuration proposal (IJPL-173525)
(cherry picked from commit a6ec805357dd60578f2408a2ffaabadc53dad00e)

IJ-CR-151739

GitOrigin-RevId: 9b042866d32efa53fcc23e6aafaaf91481f9d8d1
2024-12-17 16:26:16 +00:00
Aleksandr.Govenko
bdbe78b63a PY-60714 PyCharm does not understand async iterators
__anext__ method is required to return Awaitable. When getting iterated type, unwrap that awaitable


Merge-request: IJ-MR-150432
Merged-by: Aleksandr Govenko <aleksandr.govenko@jetbrains.com>

(cherry picked from commit 97a070ead70c0ec0f2da08000517c592c5805965)

IJ-MR-150432

GitOrigin-RevId: 21dc20b164e6095e56707ea50bc93bf67564e88e
2024-12-17 15:42:06 +00:00
Piotr Tomiak
da3a2976a7 IJPL-31694 Dots appears by hovern some links in quick-doc pop-ups
(cherry picked from commit 1a72c5a070226925da44c61612ed6995fef7ba84)

IJ-CR-151642

GitOrigin-RevId: d7a7d513843a85df4ac91cbab7f42d157ce6dd1a
2024-12-17 15:35:26 +00:00
Mikhail Golubev
31678081b3 PY-77167 Simplify resolve logic for overloads, get rid of RatedResolveResult#RATE_LIFTED_PY_FILE_OVERLOAD
If there is an overload not followed by an implementation, which is
already an error, always resolve to the first overload, regardless
of whether it's a .py file, or a .pyi stub. It allows us to eliminate
the special RatedResolveResult#RATE_LIFTED_PY_FILE_OVERLOAD rate in .py
files, because we no longer need to duplicate the last, closest reachable
overload (normally an implementation should be reachable) with a higher
priority, and then filter it out during overload resolution.

Meanwhile, this filtering out didn't work right before
because some type inference logic, e.g., PyCallExpressionHelper.getCalleeType
used in PyReferenceExpressionImpl.getCallableType bypassed it. It should have
been done at the level of
PyCallExpressionHelper.forEveryScopeTakeOverloadsOtherwiseImplementations.


(cherry picked from commit 99a624ab85957d7a2d3c2c0ced596e472f9d615b)

IJ-MR-148398

GitOrigin-RevId: c2cdfe8c8b046118f4e6f7269dbf7848dd746e08
2024-12-17 15:33:39 +00:00
Shumaf Lovpache
dc39c7d32d [JavaScript Debugger, script debugger] WEB-70558 support reading of array of object or single object value
In r1359167 Google introduced a breaking change: the type of the `Debugger.scriptParsed.debugSymbol` field was changed from `Debugger.DebugSymbols` to `array[Debugger.DebugSymbols]`.

To provide backward compatibility with old browsers, this fix introduces a new reader method `readObjectArrayOrSingleObject` which used if some object property marked with `JsonArray` annotation.


(cherry picked from commit 7847455a7c59cf7c7af3de9b991f2b6ca51928e7)

IJ-CR-150473

GitOrigin-RevId: ae6d2a42490bdcbf867d2727ce8207695d6ee3c5
2024-12-17 15:11:26 +00:00
Mikhail Golubev
714c16f197 [python] Simplify PyResolveUtil#resolveQualifiedNameInScope
(cherry picked from commit 6b95f07ddffbbd246e5c3a852de42c0cc19098ce)

IJ-CR-151380

GitOrigin-RevId: 24a9cb2f52bdc9ace2e2d21ac0d0f2e002451dae
2024-12-17 14:53:28 +00:00