Commit Graph

30025 Commits

Author SHA1 Message Date
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
Gleb Marin
09c2b90e35 [ml imports ranking] Anonymize number of files in py project
FUS-5036 Change group "pycharm.quickfix.imports"


Merge-request: IJ-MR-146185
Merged-by: Gleb Marin <Gleb.Marin@jetbrains.com>

GitOrigin-RevId: 278f9c703398a18bc47d2c724d44f12e9ec3610e
2024-10-07 14:14:08 +00:00
Yuriy Artamonov
b79a859047 [java] IDEA-352641 File - New contains many irrelevant templates for Java source sets
GitOrigin-RevId: bd18866f6d60839fa9474c7071aca2761989986e
2024-10-06 17:03:10 +00:00
Vladimir Krivosheev
4a176d4c02 IJ-CR-146078 extract intellij.platform.bootstrap
GitOrigin-RevId: b79efc92829111228e83058e54381d8e02116b6f
2024-10-05 22:01:55 +00:00
Nikolay Chashnikov
88f5f288f9 [python] API cleanup: remove unused deprecated API (IJPL-156972)
GitOrigin-RevId: 57adfe085fe2b77e3c608ba1230688c35b5615d0
2024-10-04 17:44:12 +00:00
Daniil Kalinin
440e53f50b PY-76362 Correctly resolve TypeVar from typing_extensions
GitOrigin-RevId: 9318c0f8b4eece25a427129db7cdcecdf7767dbe
2024-10-04 14:48:11 +00:00
Ilya.Kazakevich
00864df050 Python: Run wait fo external process on IO
GitOrigin-RevId: 6f4fbe85294a5f0aa7c8ec1e8b8a4be03628bdb4
2024-10-04 12:53:13 +00:00
Alexey Kudravtsev
fa88174b0a allow python quick fix tests to change document during highlighting
GitOrigin-RevId: f69e2b152a473941411e1574c79235c50e5e8922
2024-10-04 12:14:40 +00:00
Ilya.Kazakevich
87f4e387b2 Python: Unused symbols removed
GitOrigin-RevId: 0fad739d17679c12565078dc776fa928f85bbfa5
2024-10-04 04:32:16 +00:00
Ilya.Kazakevich
ae6bda01df Python: Make createVirtualenv suspend, process error and cover with tests.
We now fail silently in case of any error. This commit fixes it.

GitOrigin-RevId: 76977843a892dd450d8292378a7cefb522cb78c1
2024-10-04 01:08:48 +00:00
Vladimir Krivosheev
2af05dec25 extract intellij.platform.ide.internal
GitOrigin-RevId: 0e5e80fd53c3ef15ed9835a9400381d383526ca3
2024-10-03 19:22:03 +00:00
Ilya.Kazakevich
ff33887a25 Python: Close classes that aren't part of the public API.
`PySdkToInstall` breaks LSP and will be deleted soon. Do not use it

GitOrigin-RevId: 1dd7ede18ac1f92aafffd03d7b50fcd922c4b226
2024-10-03 16:09:40 +00:00
Daniil Kalinin
783bbde096 PY-75760 - allow reference to another ParamSpec be default of ParamSpec type, simplify logic of generic substitution for TypeVars
GitOrigin-RevId: 9ca5d7f3529513c683424d2f4d6da75f40d58e4a
2024-10-03 12:19:06 +00:00
Daniil Kalinin
d29d55476e PY-75760 - adjust testTypeVarParameterizedConstraints test
Sacrifice this old test for a good cause. The inferred type of `my_list_t1` is now `List[null]` which matches with pyright - it also has no complaints in the changed fragment

GitOrigin-RevId: 2176ffa69c6a24ec55344f4294e04542185ca7e7
2024-10-03 12:19:06 +00:00
Daniil Kalinin
411f2af7ba PY-75760 Refactor the implementation of PEP 696 support - Tests
Change the expected type of `testNewStyleTypeAliasOneWithoutDefault` test (now it is the same as in pyright)
Add the same tests but using old-style type aliases

Add a couple more tests on aliased types for some tricky cases

GitOrigin-RevId: 9d289d8e0964c592f4282f9970eeb9a08a8105e5
2024-10-03 12:19:06 +00:00
Daniil Kalinin
c5b81e03f3 PY-75760 Refactor the implementation of PEP 696 support - Type Aliases
Refactor the logic of inferring aliased types according to the previous refactoring

GitOrigin-RevId: c03a1533eee0fa6f45fa0f3c2b9ced5e7cc3c336
2024-10-03 12:19:06 +00:00
Daniil Kalinin
23cee33c35 PY-75760 Refactor the implementation of PEP 696 support
1. At first, get rid of the explicit mapping of generics to default types (remove all these not-good-looking methods which were added earlier, such as `PyTypeChecker.trySubstituteByDefaultsOnl`y and `PyTypeChecker.getSubstitutionsWithDefaults`) and their usages. All the related logic now will be handled in `PyTypeParameterMapping`, as we wanted it to be.

2. Do some changes in `PyTypeChecker` to be able to correctly parameterize class via constructor call, and also take defaults into account in `PyTypeChecker.getSubstitutionsWithUnresolvedReturnGenerics` for methods

3. Get rid of the explicit calls of `PyTypingTypeProvider.tryParameterizeClassWithDefaults` in `PyCallExpressionHelper`, `PyReferenceExpressionImpl`, rename this method to `parameterizeClassDefaultAware` and call it directly in `PyTypingTypeProvider.getReferenceType`

4. Add a new flag to `PyTypeParameterMapping` to be able to correctly match type parameters (see `PyTypeChecker.matchTypeParameters`)

GitOrigin-RevId: 5dd90ee3bdf8319b36f1945ce22a33a8edf6bc93
2024-10-03 12:19:06 +00:00
Egor Eliseev
15f26f8d9f PY-65295 Poetry installation
Rewrite poetry installer.
Add a new test for installation using poetry_installer.


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

GitOrigin-RevId: 0f9802a7c6f0d2c6e46b496915b972e618cd80b3
2024-10-03 12:12:57 +00:00
Vladimir Krivosheev
26c94d85b0 extract intellij.platform.ide.remote
GitOrigin-RevId: 9d68fda3031f89d5b0207782e796a54f24683176
2024-10-03 09:58:11 +00:00
ekaterina.itsenko
cefb5228e1 [pycharm] PY-72208 Tables(Jupyter, SciView): Refactoring, fix tiny errors
GitOrigin-RevId: a936672fbdf51c9692150bd7c78721988abde3f7
2024-10-02 19:17:45 +00:00
ekaterina.itsenko
2b3832d5a9 [pycharm] PY-72208 Tables(Jupyter, SciView): Add registry, refactoring
GitOrigin-RevId: 937c9127a008028ad63f0f2d04b14bf972dbcab0
2024-10-02 19:17:45 +00:00
Pavel Karateev
85c6eee402 PY-75714 Fold single line match case clauses
Merge-request: IJ-MR-144163
Merged-by: Pavel Karateev <Pavel.Karateev@jetbrains.com>

GitOrigin-RevId: 352d1111988371b6edd9fa1af71b345dbb7aee38
2024-10-02 15:01:14 +00:00
Mikhail Golubev
190a55438e [python] Special-case typing.Generic while calculating a class MRO
typing.Generic is a magical class that can be specified in any position
in the list of base classes, not affecting the MRO consistency. It's done by
the custom __mro_entries__ implementation in typing._BaseGenericAlias (Python < 3.12),
which skips this Generic entry if there are other generic classes following
it on the list of superclasses. Namely, it's possible to do the following:

```
class Base(Generic[T]):
    pass

class MyClass(Generic[T], Base[T]):
    pass
```

which would cause a TypeError for regular classes. Since it broke our implementation
of the C3 algorithm in PyClassImpl.getMROAncestorTypes, we now special-case it by
always moving typing.Generic to the very end of the base class list while constructing
MRO.

See https://github.com/python/cpython/blob/3.11/Lib/typing.py#L1298 for a pure-Python
version of typing._BaseGenericAlias.__mro_entries__ and a relevant discussion in
https://github.com/python/cpython/issues/106102.

GitOrigin-RevId: e7d765193d532ab8457133e8fb5ad06840d89225
2024-10-02 14:29:04 +00:00
Mikhail Golubev
5622587ae3 PY-76243 Add an extra test for an explicitly parameterized conditionally defined type alias
GitOrigin-RevId: c15c9d4d8edd36f5acc8ada8935c79e787b4bc3e
2024-10-02 14:29:04 +00:00
Andrey Vokin
e3d5629229 PY-75580 Experiment with extended completion
GitOrigin-RevId: ae24082e7b57ea55e35e64b27b26751ec79cdc1d
2024-10-02 14:20:30 +00:00
Roman Shevchenko
69479687e5 [project] replacing FileChooserDescriptor#isFileVisible with file- and/or extension-based filters (IJPL-150176)
GitOrigin-RevId: 7176005f3d39d2f2e928c2e5f804de173e5d83f4
2024-10-02 09:28:56 +00:00
Nikita Pavlenko
382b256f33 [PyCharm] PY-75914 Jupyter (feat): From scientific.py.tables also removed dependency to intellij.notebooks.visualization. Added suggestion to install Jupyter to view rich tables.
GitOrigin-RevId: 705a0f5f7883517da51da0f0c532eb90fd50e5ac
2024-10-01 13:04:25 +00:00
Nikita Pavlenko
0220055ba2 Rename .java to .kt
PY-75914

GitOrigin-RevId: 7155ea08cf1a6a74492942cd0c84b377ab50c6f3
2024-10-01 13:04:25 +00:00
Daniil Kalinin
b934cfe38a PY-74231 Fix false positive "Statement expected, found Py:DEDENT" for a nested type alias
GitOrigin-RevId: 03d64abe2c949a5912eb5c16ef48a5149568d66f
2024-10-01 11:43:14 +00:00