Commit Graph

6024 Commits

Author SHA1 Message Date
Alexey Sedunov
c443410d79 Django: Extract Django/Jinja2 commons
GitOrigin-RevId: 3f6bb7b7cd80cbf6007e1930d4d018e1b1cff44a
2022-10-16 11:59:01 +00:00
Elizaveta Shashkova
a3af1d900c PY-46053 Huge Parameter Info popup
GitOrigin-RevId: 039b51b225ec6eb20b77305b47cc71d180398c79
2022-10-15 00:15:54 +00:00
Daniil Kalinin
93e169eea2 PY-26060 New version-dependent super method signature macro
Tests for PY-26060

Merge-request: IJ-MR-95531
Merged-by: Daniil Kalinin <Daniil.Kalinin@jetbrains.com>

GitOrigin-RevId: 134f45d43aefc3cf7a3f806e0ea1ea6f768528f4
2022-10-14 14:02:44 +00:00
Ilya.Kazakevich
20ae1f84d8 PY-56766: Use project name as default env name
GitOrigin-RevId: a58458667d6c0e43feae5e80f83303b9506d0211
2022-10-13 17:19:37 +00:00
Ilya.Kazakevich
825378e7f6 PY-56763, PY-56768: Fix conda SDK name and error wordings
GitOrigin-RevId: 0b526fb17f37230b1d394b104f7574c57af2c5ad
2022-10-13 17:03:09 +00:00
Ilya.Kazakevich
ee538772ac PY-35978: support old SDK to new Conda conversion
GitOrigin-RevId: dc4edb65c5eae997ff07e329cd35190309f51e85
2022-10-13 17:03:07 +00:00
Nikolay Chashnikov
e7195f6214 cleanup: remove '@author peter' tags from javadoc comments
Now we have Code Vision hints which determine the author via Git history and show it in the editor automatically, and this information is more accurate than the tags which were automatically added when files were created.

GitOrigin-RevId: 99ea11604b3d5dfdf838d7f3685477814e642ceb
2022-10-13 14:39:10 +00:00
Daniil Kalinin
3d3da180b8 PY-24792 Fix for incorrect formatting of a multiline return statements
Fix pycodestyle-violating alignment in multiline binary statements in return and yield expressions
Fix pycodestyle-violating alignment in multiline tuple expressions in return, yield and assignment expressions
Tests for it
Merge-request: IJ-MR-35686
Merged-by: Daniil Kalinin <Daniil.Kalinin@jetbrains.com>

GitOrigin-RevId: 989b4f4aeb61b43d3215a0ad74f7a9d9685464b8
2022-10-13 09:44:57 +00:00
Ilya.Kazakevich
c0821d179d PY-35978: Fixing conda tests and adding mac paths
GitOrigin-RevId: d361c527038eb442e2c0b27e55244f6c936e1b05
2022-10-12 17:55:32 +00:00
Ilya.Kazakevich
a4dcfdd16e PY-35978: Improve Conda support and refactor other parts to support it.
Each sdk has additional data with flavor and flavor-specific data. For target-based SDK there is also target information. ``PySdkExt`` has extension method that uses this data to execute code on some SDK. For Conda we store path to conda binary and env name.

GitOrigin-RevId: c63b57aac9b5a267b3a6710902670bfe7d10c722
2022-10-12 17:55:25 +00:00
Irina.Fediaeva
cb8edc622b PY-33341, PY-56416, PY-28900: Render attributes and init params description in the class documentation
PY-33341: Now we render the “Attributes” section in the class documentation, it also allows to describe inherited attributes. (Previously we didn’t render it at all)
PY-56416: In the attribute documentation popup we are able to render attribute description from class docstring. (Previously we took documentation only explicitly from attribute one-line docstring)
PY-33341: We render the “Parameters” section in the class documentation for init parameters, described in the class docstring. (Previously user couldn't use class docstring to describe init parameters)
PY-28900: For the init parameter documentation we take the description from the class docstring if init doesn't have its own docstring. (Previously we took parameter description only from init docstring)

GitOrigin-RevId: d67bf49c72cf7a3634805a6e310c943f1ea848d1
2022-10-07 14:42:01 +00:00
Irina.Fediaeva
6155f366c3 PY-55521: Show documentation for targets inside type declaration statement
GitOrigin-RevId: 3f3f2a440b4226f5af8848e75fdbc841b8a7d505
2022-10-04 14:47:05 +00:00
Tagir Valeev
adb060863f Text blocks used
GitOrigin-RevId: 7db538c0a10131a3f946436c85b42fe7d7dc5b10
2022-09-29 12:58:29 +00:00
Ilya.Kazakevich
dc1b8ef76c Use `EmptyProgressIndicator` instead of null
GitOrigin-RevId: 236d01ca12cf1b0601c3d9b438bf2ed962b236e4
2022-09-20 14:35:35 +00:00
Irina.Fediaeva
4b1eca9771 PY-43035: Fix multiline sections in section-based docstrings
Now when parse docstring we take into account the block type. For OPTIONAL_TYPE sections such as Returns and Yields we don't require additional indent for lines following the summary.

GitOrigin-RevId: 5dd7adf5f9042204a29b731a3a7379cc3c743af9
2022-09-19 22:02:59 +00:00
Ilya.Kazakevich
bb949d238c Move UUID to the `PythonSdkAdditionalData` because each SDK (including local one) should have unique id.
``homePath`` isn't unique for things like conda and remote interpreter.

Merge-request: IJ-MR-95540
Merged-by: Ilya Kazakevich <ilya.kazakevich@jetbrains.com>

GitOrigin-RevId: 2695cd29f2e102e48e22d751d8fb37a5aea567e4
2022-09-19 15:58:44 +00:00
Ilya.Kazakevich
fb4ba6ef06 Make `ProgressIndicator optional for createProcess`
GitOrigin-RevId: 04cbf536ea3c8e10c0a90f0cb15e22043de98ff3
2022-09-15 21:47:31 +00:00
Alexander Koshevoy
918ff4e7ee PY-55396 Map working dir and content roots to paths on targets when collecting Python paths for Python Console execution
GitOrigin-RevId: 1f3634c5c92b8c2fcb90396594f358f7bf747ea7
2022-09-14 14:47:29 +00:00
Nathan Paige
bdbdfdd891 https://github.com/JetBrains/intellij-community/pull/2125
GitOrigin-RevId: 842017b398157d9b9802d55b0d77a239f5074a76
2022-09-12 15:02:34 +00:00
Egor Eliseev
7ec061b418 PY-37311 Patch interpreter command for Python 2
IJ-CR-26283

GitOrigin-RevId: 24575b5177831685d56f66c5546800c66553bd19
2022-09-07 12:39:17 +00:00
Elizaveta Shashkova
fde77c8f55 PY-56077 Set action update thread
GitOrigin-RevId: cb44dc3b5e8b8c70d7f6890f7f28dd57a1a1193f
2022-09-06 11:12:16 +00:00
Mikhail Golubev
48b07b9057 PY-54503 Provide the type of Enum.value when accessed on a type-hinted value
GitOrigin-RevId: b8105d28955d5f25dc07bbafedb410ea5821d8b4
2022-09-02 20:51:07 +00:00
Mikhail Golubev
49f40ec3a8 PY-54503 Provide Any as the result type for Enum.value when we cannot access AST
GitOrigin-RevId: 307b05d8b9910bd37b85898fa82086b10c14a7cb
2022-09-02 20:51:05 +00:00
Mikhail Golubev
59e79c3c7c PY-54503 Provide the result type for Enum[...].value and Enum(...).value
Precise types can be inferred only over AST if it's accessible.

I had to move PyStdlibTypeProvider higher in the provider's hierarchy
so that it could override types coming from Typeshed, otherwise we
infer enum.property type for the "value" attribute.

GitOrigin-RevId: 8727e080cfc06d0edda13eccfd601601dc661da9
2022-09-02 20:51:03 +00:00
Mikhail Golubev
0fc1981b5c PY-53388 Override the callable type for enum.auto() from Typeshed stubs
GitOrigin-RevId: 132e934de4da01983bebc55fcb1d3440d7053249
2022-09-02 20:51:00 +00:00
Andrey Vokin
3c1adcbb73 Revert "DS-3787 Missing "No SDK" panel for Python and Jupyter files"
This reverts commit d733de44d45b1c012bd16187416978930daf6277

GitOrigin-RevId: 4d7f542133189347e6be96c27dbb7c403b345f39
2022-09-02 10:50:12 +00:00
Egor Eliseev
6260c013df PY-28396 Sci Data doesn't show complex numbers
Change `PY_COMPLEX_NUMBER` regexp.
Add quoting for structs fields.
Add check for empty ArrayTable values.
Add test.

GitOrigin-RevId: 80b23a20c7558a1885968d5a61e3dc72cfd9643a
2022-08-31 06:02:57 +00:00
Andrew Kozlov
2b0f46a581 [core] *RegistryManager moved to intellij.platform.core
GitOrigin-RevId: 7a91ec370fb4b6482f8c6ed02327d07915ce1fa9
2022-08-30 16:17:31 +00:00
Irina.Fediaeva
cce0ef17d5 PY-16760, PY-28549, PY-35743, PY-55609, PY-46654: Correct resolve of class attributes in docstrings
Previously in docstrings we incorrectly recognized references in 'Attributes' section only as instance attribute references. It led to false positive 'Unresolved reference' on class attributes references in docstrings and wrong resolve when using class and instance attributes with the same names. Now we use ReferenceType.VARIABLE to identify both class and instance attribute references in 'Attributes' section and then resolve them with priority of instance attributes. Also fixed wrong resolve of attributes references to constructor parameters.

GitOrigin-RevId: ea10bfb092472c0ab14b77f06efd93093cfcd684
2022-08-25 21:11:57 +00:00
Irina.Fediaeva
2c35b284f9 PY-21883: PR remarks. Show elements from 'Other Parameters' inside 'Parameters' section in Numpy docstrings
Removed redundant keyword arguments in parameters section, cosmetics.

GitOrigin-RevId: 213132671cc844eb31a168c4e8a17af169d1aac2
2022-08-24 15:20:53 +00:00
davfsa
680913f146 PY-21883: PR. Show elements from 'Other Parameters' inside 'Parameters' section in Numpy docstrings
closes https://github.com/JetBrains/intellij-community/pull/2051

GitOrigin-RevId: 2438d1c9fdf8d90fd2c046c8a9a55c07f6683778
2022-08-24 15:20:52 +00:00
Alexey Kudravtsev
6f66b354d5 test optimization: do not instantiate inspection tools unrelated to the file language
GitOrigin-RevId: bb94581e1d8af713f70109f693a893eff9b41c21
2022-08-24 12:02:36 +00:00
Alexey Kudravtsev
85895e8989 add more SSR: replace stream expression with ContainerUtil call
GitOrigin-RevId: 629f61b8d4541fb374dedcbbce2964ddb70dfdf1
2022-08-24 11:15:49 +00:00
Vladimir Krivosheev
cd70ce6049 don't schedule EDT activity if editor notification provider is not applicable
GitOrigin-RevId: b117f5f780e5bc2a011451af37e768aa133acc1e
2022-08-23 19:20:33 +00:00
Mikhail Golubev
68ecd6048f PY-46257 Special-case missing __getitem__ on the "type" builtin
GitOrigin-RevId: ef377cd103b4dd673d426c0f88d3f0bb6bd9d2e3
2022-08-22 17:01:46 +00:00
Vladimir Krivosheev
4d819cb70c EditorNotificationsImpl - use coroutines
GitOrigin-RevId: 8873d0ccd0f6f1b1c36d0123ab7bcf7232bc9cfa
2022-08-21 15:38:04 +00:00
Mikhail Golubev
4f24b7351d Remove redundant .pyi stubs for "attrs" from PSI stub tests
We can't resolve into these stubs (as to any external file) during building
PSI stubs.

GitOrigin-RevId: 7e5a52f50fd2dc0f044ca0102f7e03255aa6b1c8
2022-08-18 16:13:27 +00:00
Mikhail Golubev
84c48c48a9 PY-47532 Support new API and namespace of "attrs" package
GitOrigin-RevId: a8a0f909b21cc9f3b95a7b823452599374a943a9
2022-08-18 16:13:12 +00:00
Mikhail Golubev
0260afeb90 Swap expected/actual values in an assert
GitOrigin-RevId: 73642e84fd1e534bcdc6acd2f9d3c39f66565376
2022-08-18 16:12:58 +00:00
Alexey Kudravtsev
261f9f8cf6 fix "notnull can't be applied to type parameter"
GitOrigin-RevId: 52fa57547b5af2f89bea35ad3da70aa25e4fe7b4
2022-08-18 15:07:29 +00:00
Andrey Vokin
0bef9bdf84 DS-3787 Missing "No SDK" panel for Python and Jupyter files
PyInterpreterInspection -> PyEditorNotificationProvider

GitOrigin-RevId: d733de44d45b1c012bd16187416978930daf6277
2022-08-18 08:59:09 +00:00
Andrey Vokin
efb28f98cc DS-3787 Missing "No SDK" panel for Python and Jupyter files
File level warning turned into EditorNotification, like it's done for other IDE

GitOrigin-RevId: 4ad17f7dd14a6ed9c76bf127aad02778d0764c9e
2022-08-18 08:59:04 +00:00
Ilya.Kazakevich
cd9e96567a Remove unused class
GitOrigin-RevId: adfcbd6e90be2f3e825b051222b9191097c2dc07
2022-08-17 22:53:07 +00:00
Yuriy Artamonov
d66a5b13b6 IDEA-299444 TemplateContextType should be a bean extension point to not load implementation class eagerly
GitOrigin-RevId: d5a8d8216814a9790282033abdb6de9675b50515
2022-08-12 14:52:13 +00:00
Tagir Valeev
accd4283af Use Stream.toList(); other minor fixes
GitOrigin-RevId: 80cd98f05d25a63413085a2c6ee2bd650d7f5716
2022-08-12 09:31:14 +00:00
Daniil Kalinin
ac21144456 PY-21354 Call Hierarchy - go to line where function is /used/ (not defined)
`Jump to source` or double-click action now moves cursor to the first usage of the selected function inside other function, not to the definition
If there is more than one usage of the function A inside function B, it is now shown with an additional label like `(3 usages)`

PY-55537 Call Hierarchy: don't show last node as expandable
Last node no longer shown as expandable if it has no children

Merge-request: IJ-MR-25288
Merged-by: Daniil Kalinin <Daniil.Kalinin@jetbrains.com>

GitOrigin-RevId: ea290dc20f03207a8197e7e2ec2d5d17232c3d72
2022-08-11 12:47:35 +00:00
Tagir Valeev
ff07590cb2 Fix javadoc problems
GitOrigin-RevId: 0329ac7a2caf87296ca8474b3437974361a1505b
2022-08-09 10:55:59 +00:00
Tagir Valeev
9038e3f77b Remove empty and irrelevant javadoc tags
GitOrigin-RevId: dcbbb8cff7ef267525129c464769f761d92c2120
2022-08-09 09:41:49 +00:00
Irina.Fediaeva
1e7d7b339d PY-52281: Fix doc for in, as, from, else keywords when they are inside some statement.
IJ-CR-26384

GitOrigin-RevId: 07f7f8c4ce17c4906e9346715f92a9489d1f6c74
2022-08-08 20:23:28 +00:00
andrey.matveev
04f5b85d4a PY-29898 Impl resolve keyword argument to dataclass attribute
Also fix PY-55231
Add declarationElement field to callable parameter to resolve parameters to class fields in dataclasses

GitOrigin-RevId: ae2703b958061df6f2d74b19920a6e3be2a084f6
2022-08-05 11:19:33 +00:00