Commit Graph

458776 Commits

Author SHA1 Message Date
Artemy Pestretsov
36d3d826a1 IJ-CR-151119 [dotenv] add missing commits
- migrate to Symbols API
- add new logo

Co-authored-by: adelf <adel.faiz@gmail.com>
(cherry picked from commit 38df2c3c89446bb5c3ff2901280245b718225fe9)

GitOrigin-RevId: e2ea805b4f88e9d791bb54f7570c51cf1029c67d
2025-01-02 17:24:16 +00:00
Vladimir Lagunov
1d8ca26477 Update copyrights in Kotlin Tests to let Test Aggregator pass
Otherwise, `org.jetbrains.kotlin.idea.testGenerator.all.AllTestsGeneratedTest.testAllTestsIsUpToDate` fails with an error like:

```
com.intellij.platform.testFramework.core.FileComparisonFailedError: 'GradleBuildFileHighlightingTestGenerated.java' is not up to date
Use 'Generate Kotlin Tests' run configuration to regenerate tests
  at org.jetbrains.kotlin.testGenerator.generator.TestGeneratorKt.write(TestGenerator.kt:156)
  at org.jetbrains.kotlin.testGenerator.generator.TestGenerator.write(TestGenerator.kt:72)
  at org.jetbrains.kotlin.testGenerator.generator.TestGenerator.write(TestGenerator.kt:32)
  at org.jetbrains.kotlin.fe10.testGenerator.Fe10GenerateTestsKt.generateK1Tests(Fe10GenerateTests.kt:172)
  at org.jetbrains.kotlin.idea.testGenerator.all.AllTestsGeneratedTest.testAllTestsIsUpToDate(AllTestsGeneratedTest.kt:10)
  at java.base/java.lang.reflect.Method.invoke(Method.java:580)
  at junit.framework.TestCase.runTest(TestCase.java:177)
  at junit.framework.TestCase.runBare(TestCase.java:142)
  at junit.framework.TestResult$1.protect(TestResult.java:122)
  at junit.framework.TestResult.runProtected(TestResult.java:142)
  at junit.framework.TestResult.run(TestResult.java:125)
  at junit.framework.TestCase.run(TestCase.java:130)
  at junit.framework.TestSuite.runTest(TestSuite.java:241)
  at junit.framework.TestSuite.run(TestSuite.java:236)
  at com.intellij.TestAll.runOrCollectNextTest(TestAll.java:399)
  at com.intellij.TestAll.run(TestAll.java:280)
  at junit.framework.TestSuite.runTest(TestSuite.java:241)
  at junit.framework.TestSuite.run(TestSuite.java:236)
```

GitOrigin-RevId: c8a0adce00acd8196ac923bf62425f682be70931
2025-01-02 17:06:48 +00:00
Vladimir Lagunov
fd8609fc38 IJPL-171206 WslProxy: Require application address instead of port to avoid IPv4/IPv6 confusion
(cherry picked from commit 0090e4166b7d69fcb3b02d4bdac378afa3a1929b)

IJ-CR-150935

GitOrigin-RevId: d029181951626dafe9ead9456a8e452d8d9f0410
2025-01-02 16:24:56 +00:00
Vladimir Lagunov
1b51229ac7 IJPL-171206 WslProxy: Use correct logger category
Previously, some messages were written with the category `#kotlinx.coroutines.CoroutineScope`

(cherry picked from commit 2d665f82654f3d2b1d50c0128de7019f7d754f44)

IJ-CR-150935

GitOrigin-RevId: ec0073f82e41c973886284f6cba0a57d720f1329
2025-01-02 16:24:56 +00:00
Alexey.Merkulov
97b2653a4b IDEA-365198 Improve detecting of miscompiled evaluation problems
(cherry picked from commit 2a68d81ea4e95086a3c37724d28c6c981d194797)

IJ-CR-152216

GitOrigin-RevId: d44c9e6560909e033906d56ad5112a19b3d67f95
2025-01-02 15:44:49 +00:00
Alex Plate
2ab18edac8 [Python Onboarding] There is no need to require a module to open the interpreter settings
Also, silently returning from the function will leave the link non-working, what is confusing for the user


(cherry picked from commit 7b0384c5810ab38268420f172c7e3ddbef0d7b15)

IJ-CR-151630

GitOrigin-RevId: 15bdac04edde15e1b181e18d9006485c141b6308
2024-12-27 15:06:26 +00:00
Anastasia Katsman
845d1ddf90 [rdct-tests] add troubleshooting coroutine dump
GitOrigin-RevId: f72c0092ffdbf81a5c4f53870fa9c6e6b48e7877
2024-12-24 16:58:06 +00:00
Anastasia Katsman
557ea312a0 disable screenshots/screen recording on wayland
GitOrigin-RevId: 80715b3d3601177099a953fe22f943c49442012a
2024-12-24 16:58:06 +00:00
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