Commit Graph

30053 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Aleksei Kniazev
f985a175df PY-76629: [python] bundle django-stubs, add them to the interpreter path and turn off stub suppressor
GitOrigin-RevId: 044f50f973193d54ea361d3c9b2d64ee3b83974a
2024-10-28 14:57:56 +00:00
Petr
1732354c38 PY-76506 Indexing process should not rely on non-indexed file data in PyCharm 2024.2
(cherry picked from commit 690d2c0c9b044c4132d607e81e770939a3be2315)

GitOrigin-RevId: a524db73b9bd2bdf914e6302460d2a64ab339356
2024-10-28 12:17:15 +00:00
Artem Ivanov
0668846014 PY-74176 Tweak activation of magic literals so they don't interfere with renaming symbols
(cherry picked from commit 69327fbc6680be176286f8fc3dc2aa89140d6c7d)

IJ-MR-146071

GitOrigin-RevId: 37da3ea34c760c7d61384d96616d746a0b731636
2024-10-25 20:18:37 +00:00
Artem Ivanov
2103981df4 PY-74176 Allow PyTargetExpression along with PyReferenceExpression to hold Constance references
(cherry picked from commit 1b4a1c2c24f0aedbb6782aedfca02e119aabcd59)

IJ-MR-146071

GitOrigin-RevId: c1efa76084136c80242935e1f848a2a064075632
2024-10-25 20:18:37 +00:00
Egor Eliseev
23a2bfac5c PY-65295 Poetry installation
Fix poetry executable detection for the "Add new local interpreter" panel.
There was a problem in `ModalityState`, which prevented updating `state.poetryExecutable` from EDT.


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

(cherry picked from commit 43a807c20f8572bcf570121792269d6ee0c67acd)

IJ-MR-147485

GitOrigin-RevId: fab1de5a2a55e62ff66790defb033b7745259dc5
2024-10-25 13:14:58 +00:00
Egor Eliseev
f9f0322222 PY-76806 Missing Docker container settings in Run/Debug configurations
Deleted two redundant Docker run configuration editor extensions.
Return a Docker run configuration editor extension for Targets API.


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

(cherry picked from commit ec02eedb05f006eaf53e711cda34b0403a7b010b)

IJ-MR-147585

GitOrigin-RevId: f4f44d5e8a7204503e1b6ace7c86996e4fc0c02d
2024-10-25 13:13:51 +00:00
Vladimir Koshelev
0faacc1ca9 PY-76809 fix exception in PyCompletionStatisticLogger
(cherry picked from commit 3c84debd8f1f4b6e2bc89f4b24d003cf950b328d)

IJ-CR-147568

GitOrigin-RevId: 4633d2ec708e2d6496623cd9e7a8e98fa73fc9ea
2024-10-23 19:07:01 +00:00
Daniil Kalinin
814b2947d3 PY-76680 Fix IOOBE: SmartList.checkOutOfBounds in PySyntheticCallHelper.java
(cherry picked from commit 737513a3a2b0c9564055ff17845cebb80af10cd2)

IJ-CR-147142

GitOrigin-RevId: 93bfc9464bcbc97ec80cb6ad4ed10c484f2ee9ec
2024-10-23 16:12:41 +00:00
Irina Fediaeva
106c9fdaa5 PY-59463: Remove requirement for Python 2.* to format Epytext docs
(cherry picked from commit 8fd59526a1f849dcf426da65867b9c37039f273e)

IJ-CR-147140

GitOrigin-RevId: 041794293699d490b6220f22e4156c934a32912b
2024-10-23 14:30:09 +00:00
Irina Fediaeva
e634ac917f PY-59463: Delete redundant file causing import errors
(cherry picked from commit d1a454517f64f5f71fad9b15a54e2f4d0b1ed523)

IJ-CR-147140

GitOrigin-RevId: 7a6364f74f5636476352f31e7d2c1eb1ecc399d1
2024-10-23 14:30:09 +00:00
Irina Fediaeva
5fa187f326 PY-59463: Update 'docutils' package to the latest version 0.21.2
(cherry picked from commit 779fab1c1ef58ea84f197ff4f14a6e88bef1ab3b)

IJ-CR-147140

GitOrigin-RevId: d8a6a7b3952aae2bc4e0ab64b9d1086baf3cc5b3
2024-10-23 14:30:09 +00:00
Irina Fediaeva
921eed52d3 PY-59463: Update 'six' package to the latest version 1.16.0
(cherry picked from commit 037d5e0b984ff825a518bb2b02a9da6c16955be5)

IJ-CR-147140

GitOrigin-RevId: 2eaf8ecbeb5ad51b2e37ac55928bef8ff587a513
2024-10-23 14:30:09 +00:00
Gregory.Shrago
d5b6063609 fix missing RunSphinxQuickStartAction text
(cherry picked from commit f7652ac2dde099ac831ee52fa4b294824f3ad04e)

IJ-CR-147430

GitOrigin-RevId: 70515cf607c54f69e20196657a8b344e8ef5f0c8
2024-10-22 20:44:41 +00:00
Aleksandr Sorotskii
e4ef6c41d9 fix matplotlib version parsing in case of any non integer suffixes; PY-75115
(cherry picked from commit b1cc9828a1e83488cd89f70b9982b7cb18969383)

IJ-MR-147326

GitOrigin-RevId: b0d1478df587d88166ea0a03ce6db7dd0c0ac00e
2024-10-22 16:56:09 +00:00
Tatiana Ber
30416ced81 Fix typo in UI text
GitOrigin-RevId: 77a7cf873c9892e39deed4eb789dd997b513460b
2024-10-21 12:50:19 +00:00
Petr
08c5bfb142 PY-75537 Implement PyAstNamedParameter.getRepr()(PyFrontendElementTypesFacadeImpl.kt)
(cherry picked from commit ef38af29fd176324f4c1bec503a116a5b4f351b4)

GitOrigin-RevId: 9b47c8018c3f8ad04c365175bbeb2791feb966cc
2024-10-18 17:10:51 +00:00
Petr
411f36db5a PY-75537 Implement PyAstStringLiteralExpression.createLiteralTextEscaper() (PyFrontendElementTypesFacadeImpl.kt)
(cherry picked from commit c42b7626a6e57c118e7028a4806bd8fa7938076c)

GitOrigin-RevId: e68adbb728051d49654d76df856b522191330170
2024-10-18 17:10:51 +00:00
Petr
78c67850e3 PY-75537 Implement PyAstStringLiteralExpression.getStringValue(), PyAstStringLiteralExpression.getStringValueTextRange() (PyFrontendElementTypesFacadeImpl.kt)
(cherry picked from commit 372f147a61e07c6cb21aaeb8a7d0f3d14d49417d)

GitOrigin-RevId: 9682c8df1f0acd21580e87d8381995960abeeb8a
2024-10-18 17:10:51 +00:00
Petr
001266a5b7 PY-75537 Implement PyAstAssignmentStatement.getTargetsToValuesMapping() (PyFrontendElementTypesFacadeImpl.kt)
(cherry picked from commit 8c4926689e42f117275986c2e1246d7e04bde489)

GitOrigin-RevId: f83b02700ce17a182807ac8bfe1a0108e09d4741
2024-10-18 17:10:51 +00:00
Petr
63ccfc1fb1 PY-75537 Slightly simplified PyAssignmentStatementImpl.getTargetsToValuesMapping()
(cherry picked from commit 41f02b5c164380ad978cfa66eb36bb5b97189855)

GitOrigin-RevId: 7f0eec0447f4e39d18b265f86e37a3057d71d9b2
2024-10-18 17:10:51 +00:00
Petr
34a015c9af PY-75537 Implement PyAstAssignmentStatement.getTargets(), PyAstAssignmentStatement.getRawTargets() (PyFrontendElementTypesFacadeImpl.kt)
(cherry picked from commit 0f9292ac3ca0f4f4728b25cb2e5ddcd618b8319d)

GitOrigin-RevId: ced0f2fe8d877e80af4f4568a11cf8ab0f64d57c
2024-10-18 17:10:51 +00:00
Bogdan Kirilenko
09c25b2e66 [PyCharm] PY-73511 Fix HF module error if the user is isolated from the internet by error catching
(cherry picked from commit 736943f685e7825b4547b13d4fee405f428b5fc0)

IJ-CR-146842

GitOrigin-RevId: c6da4d1ba16dc35f792419308b4b7602a78d0480
2024-10-15 21:04:46 +00:00
Evgeny Abramov
2432f44af3 (IJPL-163509) Move semantic search and embeddings code to AI Assistant plugin
GitOrigin-RevId: 5fcbe793b7c13fd930a4189e3ff4363f389f532e
2024-10-15 01:48:10 +00:00
Nikita Pavlenko
ff567970a9 [PyCharm] Jupyter (fix): Fixed suggestion to install Jupyter to view rich tables, added restart IDE. #PY-75914 Fixed
GitOrigin-RevId: 60ea3742324774979f6db883b0d2b2d63db3227d
2024-10-14 17:46:18 +00:00
Daniil Kalinin
fa240427fa [python] PyParameterInfoHandler - do not store reference to PyArgumentList to avoid project leak
GitOrigin-RevId: 60dad81303c261cefc611e2f66fcc18316916ba6
2024-10-14 15:42:19 +00:00
Andrey Vokin
63487fda41 PY-75580 Experiment with extended completion
GitOrigin-RevId: 8aeb4c123eb6c8eae3255c974d8630a0745df395
2024-10-14 13:15:14 +00:00
Nikolay Chashnikov
b56e64f92d [pycharm] build scripts: extract code which adds JetBrains proprietary plugins to PyCharm Community and reuse it when running with dev build
Artifacts of PyCharm Community published by JetBrains include additional proprietary plugins. It's better to use the same layout when running PyCharm Community from sources using 'dev build' to make dev build more similar to production (we do the same when running IDEA Community using dev build). This is also needed to allow testing these additional plugins in PyCharm Community (see RDCT-1407).

So code from 'PyCharmBuilder.createBuildContextForCommunityProduct' was extracted to a separate 'PyCharmCommunityWithProPluginsProperties', and this class is now used when running using 'dev build'. This also fixes PY-72924, because 'IdeBuilderKt.createProductProperties' passes the path to the ultimate project home to the constructor of ProductProperties class, so before 'PyCharmCommunityProperties' bundled incompatible plugins from plugin-list.txt from PyCharm Professional.

GitOrigin-RevId: f5c66ff7449d1dacdf6e8156d9f274d594e648df
2024-10-14 12:23:57 +00:00
Bogdan Kirilenko
44d69305ba [PyCharm] PY-63670 minor wording fix for python.hugging.face.spaces.documentation.not.supported
GitOrigin-RevId: 2eb181878fc7ecd9aab3ed7f62b5b0880a14a33b
2024-10-12 19:16:10 +00:00
Andrei Iurko
4111cfc875 [qodana] QD-9891 Add aspects with the highest certainty for inspections
GitOrigin-RevId: 8fad66714287192bd5cbc8396a3d30f1ba139302
2024-10-11 14:49:57 +00:00
Tagir Valeev
feb2ee9625 Warnings fixed (mostly redundant cast)
GitOrigin-RevId: 63bdb7f359a1a2cd37cb6a691b3d94db8ba3ce02
2024-10-11 08:10:27 +00:00
Nikolay Chashnikov
b03b560520 [python] API cleanup: mark deprecated unused API for removal (IJPL-156972)
Deprecated APIs which still have internal usage are marked as internal to ensure that new external usages won't appear.

GitOrigin-RevId: 09818b884851d7b768f8ee0f356f982e79b46ed9
2024-10-10 23:55:42 +00:00
Vladimir Krivosheev
387be9d569 IJ-CR-146078 extract intellij.platform.ide.ui
GitOrigin-RevId: 1d77381f1bcc811dbf644e47e70972a572c095f2
2024-10-10 23:38:08 +00:00
Vladimir Krivosheev
9f566cc5fb experimental ij void
GitOrigin-RevId: c980a4927fabeedda2284695f234ee41652b6db5
2024-10-10 23:38:08 +00:00
Tagir Valeev
ac6e041167 Remove groovy-stdlib dependency where unused
GitOrigin-RevId: ecbe272c09c97517177b2214479f2644c1ef3229
2024-10-08 09:28:42 +00:00