Commit Graph

457274 Commits

Author SHA1 Message Date
Maksim Zuev
d0952cd077 [coverage] IDEA-361058 Fix coverage for lombok methods
bump agent version to 1.0.763


(cherry picked from commit 8328b2accaa15ac853438dbcc39b28da94cfb429)

IJ-CR-147328

GitOrigin-RevId: 3dc2a7065ed4aaa369ce1edc63a25ee48b198f12
2024-10-28 19:57:32 +00:00
Liudmila Kornilova
4f1ee76a4b IJPL-149042 Introduce FilesInContentPropertyPusher to index only files that are in content
(cherry picked from commit 4f76bc5843f9f33b08f0a4e52d953ee97a2cd256)

IJ-CR-147945

GitOrigin-RevId: a9659518e6b2e4c311ef73a3230aaf998c455c82
2024-10-28 19:38:14 +00:00
Dima Golovkov
3d11bfaa82 Add addDirectory icon for UX-2211
(cherry picked from commit a6a05ffbbf1883b14d8fc9196c6f4a32c1e801b1)

IJ-CR-147911

GitOrigin-RevId: 44df925eac3aa6bb1ade9e282b09f7fabe2f9048
2024-10-28 19:14:27 +00:00
Frederik Haselmeier
f798be9da2 [kotlin] Updated K2 mode notification text to be inclusive of Kotlin 2.1+
^KTIJ-31742 fixed


(cherry picked from commit 8034f361ed3e0e517af4e2dce8e7309db6eb2592)

IJ-CR-147701

GitOrigin-RevId: ee64a03ef72cb59c628481afcb19c8292f1938df
2024-10-28 19:04:46 +00:00
Snapshot dependency; Roman Grigorev; Ultimate / 243 / Service / Promote JBR 21 Runtime to IntelliJ 243
784f64cb01 Updating versions of project dependencies: runtimeBuild->21.0.5b631.8
GitOrigin-RevId: fabcc459b846e424ccc458c608522658e7b8bbf7
2024-10-28 18:36:12 +00:00
Roman Golyshev
bf429db3b9 KTIJ-31157 [kotlin] Always add isEmpty properties in K2 implementation of NotPropertiesServiceImpl
We exclude `isEmpty` until KT-72305 is fixed and
it is supposed to be the default behaviour

Hence, we should not ever store it to the settings or allow users to
modify or remove it, because it should be transparent
to the users


(cherry picked from commit fbe5dc2f3aa748d780e98bb038629fe5e20b7922)

IJ-CR-146866

GitOrigin-RevId: ae6f5f100f94782958c29a8d6c7ef495072fafd2
2024-10-28 18:28:56 +00:00
Victoria.Petrakovich
58e5dc7d41 [kotlin] Move excluded Java methods to the K2 implementation of NotPropertiesService
KTIJ-31157 Temporarily exclude `isEmpty` from properties that UsePropertyAccessSyntaxInspection processes


(cherry picked from commit 9fda5d9408ea0b2aee4498cf8614426a1dfe7b8c)

IJ-CR-146866

GitOrigin-RevId: 5d290703ee25edf4e3f18824f05b212a95559759
2024-10-28 18:28:56 +00:00
Victoria.Petrakovich
26e2540cc8 [kotlin] Continue iterating even if overriddenSymbol.callableId?.asSingleFqName()?.toUnsafe() is null
KTIJ-31157 Temporarily exclude `isEmpty` from properties that UsePropertyAccessSyntaxInspection processes


(cherry picked from commit e99b8c052037c10e9dba3ef7114ae60c0f1d84c2)

IJ-CR-146866

GitOrigin-RevId: 47e7e0806ee8adc77221d2f6302120a2e5b78e28
2024-10-28 18:28:56 +00:00
Victoria.Petrakovich
eea506d923 [kotlin] Temporarily exclude AbstractCollection.isEmpty and AbstractMap.isEmpty from UsePropertyAccessSyntaxInspection
KTIJ-31157 Temporarily exclude `isEmpty` from properties that UsePropertyAccessSyntaxInspection processes


(cherry picked from commit ecf69f310ffc8dce6b585f13ed88deb0b57a9321)

IJ-CR-146866

GitOrigin-RevId: 8b3c460bd2df54d219f695070a9bf3066309d0d9
2024-10-28 18:28:56 +00:00
Lev Serebryakov
c91c8b6702 IJPL-162040 Store lock permits in context to allow lock inheritance between coroutines.
- Fix check for inheritance in case of Fleet or other coroutine framework.
 - Make tests stricter.
 - Mark new Application API as internal and experimental, as ot is needed only for this code and should not be used in other places.


(cherry picked from commit 63798b6160ca5963499ae066db149d3b2af6017d)

IJ-CR-147289

GitOrigin-RevId: 700746a8c9590945893ef389f2c86724eb8a83d5
2024-10-28 18:14:18 +00:00
Lev Serebryakov
ecb3e54b63 IJPL-162040: as simple as possible variant
- Put lock state into coroutine context in `runBlockingCancellable`.
 - Use lock state from context if thread local is empty.
 - Fix tests which become not valid in new mode.
 - Add tests for new functionality.
 - Add feature flag to enable this new mode by default.

Feature flag: `-Dide.store.lock.in.context={true|false}`. `true` (new mode) is a default.

Merge-request: IJ-MR-146415
Merged-by: Lev Serebryakov <Lev.Serebryakov@jetbrains.com>

(cherry picked from commit 49b4f448f652a2b074501f0cc6fca047cd4d5a8b)

IJ-CR-147289

GitOrigin-RevId: a13959a241fd939dbe71ba52135362c30ff81b59
2024-10-28 18:14:18 +00:00
Kirill.Karnaukhov
fb0757f5d4 [inline-completion] IJPL-165092: rollback added @ApiStatus.Internal
(cherry picked from commit f08b255c5c05793df2ac4f942a0dd09b2dd08941)

IJ-MR-147666

GitOrigin-RevId: 12440db0ae92917719232b67aa1ec7e4a1d37c12
2024-10-28 17:23:56 +00:00
Vlad Koshkin
089f134c57 [kotlin] skip build before run for kotlin scripts
^KTIJ-19022 Fixed


IJ-CR-147605

GitOrigin-RevId: e6b9a60e303028677528ad02bebbe1e6c110d050
2024-10-28 16:55:08 +00:00
Konstantin Hudyakov
e21d283581 IJOB-26 Do now show Run and Debug lessons in Aqua
These lessons expect that `Current File` run configuration is available, but it is not enabled in Aqua.


(cherry picked from commit 0412925c501f3234444702c5f6657078e83d5f30)

IJ-CR-147744

GitOrigin-RevId: 67df76f1c9a5e71eaac90465944e7b894a47fd67
2024-10-28 16:50:17 +00:00
Konstantin Hudyakov
a20b7d5efa IJOB-575 Fix stuck in Git Changelists and Shelve lesson
The UI of the VCS popup that opens on a gutter click was changed in the scope of IJPL-161089.


(cherry picked from commit b5f7ed13c1730f3bf20394c32703bb150a3cbe87)

IJ-CR-147744

GitOrigin-RevId: 7265137bb6829960f1f96e80d71ee55d9124240d
2024-10-28 16:50:17 +00:00
Konstantin Hudyakov
22bbd677da IJOB-574 Fix stuck in Git Project History lesson
The `toString` method result of the node was changed in the implementation.


(cherry picked from commit add04d32d06998a9a357e305340a7507c3d9dceb)

IJ-CR-147744

GitOrigin-RevId: 3e0804a8bda21ccea314d84a0d440f24ee555b64
2024-10-28 16:50:17 +00:00
Konstantin Hudyakov
6219a86371 IJOB-573 Fix stuck after commit in Git Commit lesson
(cherry picked from commit 6139068f467f268af27626961b4ef51d1927649d)

IJ-CR-147744

GitOrigin-RevId: 3926a59644d4751e4c330cf029bae06d3511db7e
2024-10-28 16:50:17 +00:00
Konstantin Hudyakov
f8d7aa015a IJOB-572 Fix stuck after commit in Git Quick Start lesson
(cherry picked from commit 51bbedc92a6610cbf19512c72dc89cc23a2c993f)

IJ-CR-147744

GitOrigin-RevId: 6a7169b3aca92d775ea550e5adb988635858c177
2024-10-28 16:50:17 +00:00
Konstantin Hudyakov
1898fd04be IJOB-571 Fix 'The editor has been closed' warning in Recent Files lesson
(cherry picked from commit deece05f321110b8c6aa4711135dd1cc80d1bcdc)

IJ-CR-147744

GitOrigin-RevId: 55c997f9156cce0dbd59f820ec3667915679f5fa
2024-10-28 16:50:17 +00:00
Konstantin Hudyakov
92315fc7aa IJOB-570 Fix 'The editor has been closed' warning in Java Inheritance Hierarchy lesson
(cherry picked from commit 298e94227a3fdc626ba81cea4e8517db921f1c09)

IJ-CR-147744

GitOrigin-RevId: 5f918afd1b697ce9767c74325b92bc4218a3fcc4
2024-10-28 16:50:17 +00:00
Konstantin Hudyakov
1051f5cabc IJOB-569 Fix 'The editor has been closed' warning in Declaration and Usages lesson
Do not use `editor` property from the runtime context because it can throw an exception (and then warning in the Learn panel) if currently selected editor is null.
Because of the platform implementation, selected editor can be null at the moment between switching the editor tabs.


(cherry picked from commit dc3afe43eb8be4ff8e7993a0da35093577e2f118)

IJ-CR-147744

GitOrigin-RevId: 37571fa1905b762c6e3c8b2d6bad09ce9af6fdbb
2024-10-28 16:50:17 +00:00
Konstantin Hudyakov
5395d08330 IJOB-568 Fix unexpected restore in Surround and Unwrap lesson
It happened in the Java version of the lesson.


(cherry picked from commit e8eee237f0c5d18bc34e34311216402f3215920f)

IJ-CR-147744

GitOrigin-RevId: b82fcc70afad11096af998445f1c97d13c3e4a6c
2024-10-28 16:50:17 +00:00
Konstantin Hudyakov
318a6ca4c3 IJOB-579 Fix unwrap action detection in Surround and Unwrap Kotlin lesson
(cherry picked from commit 9275cd5ee988e83ca6346a7ef9a11d58e8df203e)

IJ-CR-147892

GitOrigin-RevId: 6dff34cd611d5cad0c0af3f7c2d608f1a47d1ee4
2024-10-28 16:39:45 +00:00
Veronika Sirotkina
0940352c6d [KTIJ-29448] Add an env flag to allow updating Jps settings on TeamCity
GitOrigin-RevId: 954f62a4f85e80f81ef3fff3a5f4a128c9755446
2024-10-28 16:39:31 +00:00
Gregory.Shrago
a5260f3476 deprecate AsyncActionExecutionService
Used only by Vim plugin in Rider where actions are performed asynchronously. The plan is to support `AnActionListener` contract properly in Rider.


(cherry picked from commit cfda3da27d37a92cf887e7865fcebb436161169f)

IJ-CR-147856

GitOrigin-RevId: 6c4ff5906d3afb9ccf1258903a5be12ddb50a150
2024-10-28 15:46:02 +00:00
Nikita Pavlenko
ab63e63ae6 PY-74366 Jupyter/RemoteDev (feat): In Remote Dev in notebooks, tables will be displayed in as html-table. Cells execution state will be synchronized.
(cherry picked from commit 853b332b230ffdaf6da890f105811171fd84a4ca)


(cherry picked from commit 059b813db573293afa210cd39dcc76c7d081a4b7)

IJ-CR-147319

GitOrigin-RevId: 177d11260385a3b1dc514c39a52701f585507647
2024-10-28 15:15:12 +00:00
Natalia.Murycheva
f9d6899d51 [PyCharm Tables] PY-76729 tf.EagerTensor and tf.ResourceVariable cannot be sorted in Data View #PY-76729 Fixed
* In case of sorted table, we get a dict for numpy and numpy_based tables. After that, we should extract a specific type of table and define the right python_code_provider. For tf.EagerTensor and tf.ResourceVariable tables the wrong python_code_provider was selected

(cherry picked from commit 62596418a8ac942136379f814bfdac57b60b697a)


(cherry picked from commit 8c9d39f2e82a64d3794fd84d50c255f15becb8b9)

IJ-CR-147319

GitOrigin-RevId: 939dbaa2d97812cd8a040d0fc22fc33cbed800ad
2024-10-28 15:15:12 +00:00
Natalia.Murycheva
c347819edc [PyCharm Tables] PY-76723 Fixed Multiple problems in CSV serialization #PY-76723 Fixed
* see the YT issue for more details

(cherry picked from commit 676a021e221c430c6fd3b600640d7aec1503239e)


(cherry picked from commit 5c8a478a2cc3edb148b684b48dfaf85f9d50627f)

IJ-CR-147319

GitOrigin-RevId: 3d5caa7d348861bc904335db3ff0b1edef2a17b1
2024-10-28 15:15:12 +00:00
Natalia.Murycheva
d3c97e24b0 [PyCharm Tables] PY-72208 fixed table info extracting when pandas is not installed for torch, tensorflow
(cherry picked from commit 80074e8429a4c881d79f5679962f4711db8561c1)


(cherry picked from commit 2829893866821fbbb2c0229abce67caa3a5e6993)

IJ-CR-147319

GitOrigin-RevId: 905af935c1d4c0dedc32a744040f4de97cc870dc
2024-10-28 15:15:12 +00:00
Natalia.Murycheva
48cd6487ae [PyCharm Tables] PY-76675 Fixed rendering Python None values in the csv case for pandas, polars frameworks
(cherry picked from commit f823121ce4adc23d6e9b8e03b87b8b19a789a46b)


(cherry picked from commit 93d7530c7ce0ba60fee5d1d0e909a39ce3b9dc65)

IJ-CR-147319

GitOrigin-RevId: d6dd4a5f63f172685df3e1a1c0d3d6cbcb063071
2024-10-28 15:15:11 +00:00
Nikita.Ashihmin
7d89c85eba [PyCharm] PY-74366 Jupyter/RemoteDev (fix): Keep command mode action handler only on frontend
(cherry picked from commit 5ada255740be515ddeb7237b86680630669682e6)


(cherry picked from commit faa788f65a73279c6c62539e5c468f7d984215e1)

IJ-CR-147319

GitOrigin-RevId: 2820d6df53ba458f2df2bfa2f381c3587a6b2bcc
2024-10-28 15:15:11 +00:00
Bogdan Kirilenko
a5608efc3a [PyCharm] PY-76699 python.huggingFace module uses PythonPackageManagementListener instead of BulkFileListener to check whether any relevant HF library is installed
(cherry picked from commit 3d91d2d1444dd8d682d866fd79a24a6851c6214b)


(cherry picked from commit 3343a64ec240926532e793e16ace55be6bfe4010)

IJ-CR-147319

GitOrigin-RevId: 304e4d25c5a2ee57333c4dccf641126ab55a0554
2024-10-28 15:15:11 +00:00
Nikita.Ashihmin
4c88de60ff PY-76662 Jupyter(fix): Add ability to force save document changes even if document is not changed
We need to do it because in jupyter a lot of infor especially outputs are not in document but in metadata

(cherry picked from commit 0fe7ce59b7e9d64f5a03080c1f4ce9a0dc7c121f)


(cherry picked from commit 2007b95711b213a014d7be2b349989b04ca7ed24)

IJ-CR-147319

GitOrigin-RevId: 6945f3b7f07e6147281423c2e8bd1c3d0899526a
2024-10-28 15:15:11 +00:00
Nikita.Ashihmin
8beae300b4 [PyCharm] PY-74366 Jupyter (refactor): Refactor JupyterCommandModeActions, remove use delegate actions
(cherry picked from commit f8f52837594539b04b6a8c2f0d9c011cac1d3a52)


(cherry picked from commit 51621231af852333aad204797ca8b5801a2b254d)

IJ-CR-147319

GitOrigin-RevId: 7a56e7d579258afc964be00c0f468f9f087a7c3e
2024-10-28 15:15:11 +00:00
Natalia.Murycheva
df0ad5da47 [PyCharm Tables] PY-72208 fixed the missed parameter during refactoring
(cherry picked from commit 67f798c44f0ce5cc3effdc452750ffee9d18bc5f)


(cherry picked from commit 6cb9a806ad46f4e855c9fa3caa14ec1eee9f91a8)

IJ-CR-147319

GitOrigin-RevId: 507e62dcf37fa46e5dfb2cb4f0249cec0a2cb054
2024-10-28 15:15:11 +00:00
Natalia.Murycheva
d61525e4a1 [PyCharm Tables] PY-75937 reduce the amount of extracted data that is not used in parsing
(cherry picked from commit 4ffc7411ebfab7d7544a616d04ad44025a5d7d02)


(cherry picked from commit 0960a4c22129641fb5ba2195b05c6a2e5c45926a)

IJ-CR-147319

GitOrigin-RevId: 37c0d6641191b48230ad03d000e2ee55e76c8443
2024-10-28 15:15:11 +00:00
Nikita Pavlenko
b97b90e46d [PyCharm] PY-76277 Jupyter (fix): Restored muted test in JupyterMoveCaretsHorizontallyInEditModeTest.
(cherry picked from commit 4a0ba695d979df8a04fba5d5c9a55750bef9ddfe)


(cherry picked from commit 765a8f6b4ebd73af408644397add1c198657ca05)

IJ-CR-147319

GitOrigin-RevId: d88b2e930b567e3b70a9550fac4cde7bc6828d7a
2024-10-28 15:15:10 +00:00
Nikita Pavlenko
8514cdbb1a [PyCharm] Jupyter (refactor): From EditorCell removed 'mode' and NotebookCellInlayManager lost subscription to NOTEBOOK_EDITOR_MODE. #PY-76627 Fixed
Also small refactor of HeadingInfo and a system of extensions in EditorCell.

(cherry picked from commit c7817c899947c94aa7d288d757cb6b642941414c)


(cherry picked from commit a2a93f22e6a6d264785a9ea236b1689bd69b88cf)

IJ-CR-147319

GitOrigin-RevId: e99bfb9ce00f69cf3679b0f3f12ca06e9d7d1a24
2024-10-28 15:15:10 +00:00
Anton Efimchuk
5bf8a16266 PY-75948 [Jypyter] Restore destroyed inlays after edit
(cherry picked from commit 948f8885dd3ec8958ab495fb2e6506e5899759a4)


(cherry picked from commit f7d2159f71bdb66460abc639b4a8f73093b1cde5)

IJ-CR-147319

GitOrigin-RevId: 855755003147e51d3a4db4e42de2c6b8286ac9af
2024-10-28 15:15:10 +00:00
Bogdan Kirilenko
d8f4c3b0ef [PyCharm] PY-75896 Improved appearance of jupyter diff - showing cell markers and separators
(cherry picked from commit 63fe10754c073b9b3ab74df5b619165af4ba8bca)


(cherry picked from commit 4c7c25a45e2fa789ef5bc13ec0ab16aba3373fb7)

IJ-CR-147319

GitOrigin-RevId: 6ed8e098b92c3a724c7d5b62e287d661bb082847
2024-10-28 15:15:10 +00:00
Ilia Zakoulov
a7b3aaec00 PY-76629: Do not resolve bundled stubs when the package is not installed
The implementation is very similar to the PyTypeShed,
it should be merged into more general solution.

GitOrigin-RevId: 1449a774e93206349f17f264c27e2a7877d79b19
2024-10-28 14:57:57 +00:00
Ilia Zakoulov
948779f507 PY-76629: PY-76714: Handle empty string of bundled stubs path
findPathStringInHelpers might return an empty string,
that will be equal to the home path,
that will lead to indexing of the home directory.

GitOrigin-RevId: e800896a4c0631844a7b7a3a79334c3853a30c32
2024-10-28 14:57:57 +00:00
Ilia Zakoulov
ab53444089 PY-76629: Get rid of Django skeleton tests
GitOrigin-RevId: e96b82a3bcba484a5321c54cd15ff755dd7e276d
2024-10-28 14:57:57 +00:00
Ilia Zakoulov
6439b63a2d PY-76629: Get rid of django skeletons
GitOrigin-RevId: 3554062045a5226a95720ae3577af2313a8ce5ff
2024-10-28 14:57:57 +00:00
Ilia Zakoulov
4e6eefa61e PY-76629: Refactor completeBasicAllCarets to make it more understandable.
With two charToType it is more clear to understand the behaviour of the `completeBasicAllCarets`.

GitOrigin-RevId: a87af2ffdfea7b9d3c9332dacd9a36f1a1346fa7
2024-10-28 14:57:57 +00:00
Ilia Zakoulov
91f27d8587 PY-76629: Suppress PyProtectedMemberInspection if a member is defined in .pyi
Protected member should not be highlighted as a warning if it resolves to .pyi file.
We assume that everything in .pyi file is a public API.

GitOrigin-RevId: c8275f3e48e3cd69b1676de9b78606f28ea224c8
2024-10-28 14:57:57 +00:00
Ilia Zakoulov
214f894da3 PY-76629: Introduce new argument typeCharIfOnlyOneCompletion for completeBasicAllCarets.
There are a few tests that provides `charToTypeAfterCompletion = "\t"` to complete the first variant.
It makes tests "ditry" - somewhere in tests you have to check that "\t" is present after completion,
somewhere "\t" is not present because it completed the first variant.
This argument allows to avoid adding unnecessary `charToTypeAfterCompletion`
when there is only one completion variant that is already completed.

GitOrigin-RevId: a11c407f6033a8181a9eb8cb37e00f0320d26005
2024-10-28 14:57:56 +00:00
Mikhail Golubev
d69f93c593 PY-76629: Fix DjangoViewNameCompletionTest.testViewNameCompletionInMethods
There were two underlying problems in Kotlin code:
```
run { DjangoFQNamesProvider.ACCEPTS_VIEW_NAME.isNameMatches(this) } != null
```
returned true regardless of the result of `isNameMatches(this)` call.
As a result, we used to suggest Django view names for *all* functions called
"reverse", "redirect" or "reverse_lazy".

Secondly, in FQNamesProviderExtKt.isNameMatches:
```
return getQualifiedNames().any {
  return it.firstComponent == elementQualifiedName.firstComponent &&
         it.lastComponent == elementQualifiedName.lastComponent
}
```
always returned the result of comparison with the first qualified name, ignoring the rest
due to non-local return from the inline `any`.

Finally, DjangoUrlViewProvider.isReverseFunction expected a PyFunctionType as the type
of reverse/redirect/reverse_lazy, but since these functions have overloads in .pyi
stubs we started to infer a union type of PyFunctionTypes for them, breaking the reference
provider. In general, it's better to perform a name resolution instead of type inference
to detect a fully qualified name for a reference.

GitOrigin-RevId: 69949b1b0e65f00557536cf16127279a83ea4f9d
2024-10-28 14:57:56 +00:00
Mikhail Golubev
20b2e20d26 PY-76629 PY-39761 Don't type check __class_getitem__ arguments inside type hints
GitOrigin-RevId: 060a2952d49777bff9853a2d5bc4d257271e559e
2024-10-28 14:57:56 +00:00
Aleksei Kniazev
732cd5275a PY-76629: [python] moved bundled django-stubs to helpers-pro package
GitOrigin-RevId: 24543c7c6249bd7ae8eac0cb6140754b5126858c
2024-10-28 14:57:56 +00:00