Commit Graph

258 Commits

Author SHA1 Message Date
Ilya.Kazakevich
33b437d620 i18n
GitOrigin-RevId: ce5f135d452f84f2a88c7db227ac445128ee1023
2020-02-17 15:20:42 +00:00
Semyon Proshev
8f58988590 i18n
GitOrigin-RevId: c6b70355ca538e522a1b896f412c972fe7aa56e9
2020-02-13 16:19:54 +00:00
Stanislav Utikeev
0101444102 LAB-31 Move fake artwork to according package and create icon-robots to skip it
GitOrigin-RevId: 91cb450b8822a4b4e7686469fcda7c1b5f3e9818
2020-02-13 12:37:01 +00:00
Petr Golubev
4abd8b7270 LAB-31 extracted 'getSkeletonsPath' to PythonSdkUtil
GitOrigin-RevId: a21ea748af169b76bc665a0e2918276104c8fd22
2020-02-12 19:11:33 +00:00
Elizaveta Shashkova
b1eb8abec4 PY-40431 Extract messages for Py function parsing to a bundle
Signed-off-by: Elizaveta Shashkova <Elizaveta.Shashkova@jetbrains.com>

GitOrigin-RevId: fadcbbf3fcc57c0b95328c76536b6c984ddf2f35
2020-02-12 11:40:58 +00:00
Elizaveta Shashkova
7fa177d873 PY-40431 Extract messages for Python Console parser to a bundle
Signed-off-by: Elizaveta Shashkova <Elizaveta.Shashkova@jetbrains.com>

GitOrigin-RevId: 1a5f6517de1be211c6c698aa531c3ed1bedbaf7f
2020-02-12 11:40:58 +00:00
Vladimir Krivosheev
bac2b6d2f8 use java 7 API — get rid of home grown assertNotNull and notNull
GitOrigin-RevId: 4df1569fc01d15cfbe42b00a5b5edf7c1ea0f5b3
2020-02-11 10:36:25 +00:00
Stanislav Utikeev
1b72efbf1c LAB-31 Use StandardFileSystems.local() in getExecutablePath to avoid unnecessary casting
GitOrigin-RevId: e2747e6fca1c7a527f3ee26861720260abac1cc0
2020-02-10 11:03:00 +00:00
Stanislav Utikeev
3607636422 LAB-31 Move skeleton util methods from PythonSdkType to PythonSdkUtil
GitOrigin-RevId: 28433a354e92f57bdcfe589b18de05eb03ff2be4
2020-02-10 11:03:00 +00:00
Stanislav Utikeev
d610a6bca7 LAB-31 Provide a way to explicitly define helpers root path
GitOrigin-RevId: 762d976c9289baeb7a81099cf7a1c7132f9bb253
2020-02-10 11:03:00 +00:00
Vladimir Krivosheev
585062f61c extract RegistryManagerImpl
GitOrigin-RevId: eb4789621b3cd3c3d18bc0a37f324fe205504686
2020-02-10 11:03:00 +00:00
Lada Gagina
74af383d1a EA-221477 Fix ISE in PyTypedDictTypeProvider
GitOrigin-RevId: 2ca3d6d808c9ee7b061cf66b0f9df30b0ddea859
2020-02-10 11:03:00 +00:00
Mikhail Khorkov
aada2d1238 PY-37755 Add type inference for nonlocal/global variables
Now nonlocal/global target expressions gets type from its original reference.

GitOrigin-RevId: 2af93318bd0a1e978e9251e38ec2d6b218a021ed
2020-02-05 11:32:10 +00:00
Sergey Stupin
a2dca0a8a4 add PySignatureHelp test, proper highlighted param definition
GitOrigin-RevId: 54b0c07a18bc0e58d18f62fa2dc6c75d5922aae4
2020-02-05 10:34:39 +00:00
Mikhail Khorkov
eae34dc336 PY-14844 Add integer suffix support for Cython
Cython supports C-style integer suffix (u, l, ll). I added them to Python lexer and annotator checker to highlight them in Python language.

More information:

- https://cython.readthedocs.io/en/latest/src/userguide/language_basics.html#differences-between-c-and-cython-expressions

- https://en.cppreference.com/w/cpp/language/integer_literal

GitOrigin-RevId: 97d7bcb19239f931d9ed5e5746aaed84ac09cbc8
2020-02-05 08:01:18 +00:00
Sergey Stupin
471ab0b7d3 LAB-31 introduce signature help EP and python impl (simplified version of ParameterInfo, more suitable for client-server protocol)
GitOrigin-RevId: 3b8db9e6ea4432fe9142261c9f9da713de9b5da6
2020-02-04 15:10:52 +00:00
Semyon Proshev
e554ef0533 Consider metaclass __call__ as one more possible constructor (PY-17877)
GitOrigin-RevId: 2b2a6e8ddf5bde58c628057dc609e63c135430c3
2020-02-04 12:04:59 +00:00
Semyon Proshev
5db328c1a0 Support dataclasses whose predefined type is one of the supported in PyDataclassTypeProvider (PY-37802)
GitOrigin-RevId: c991b30f108a3ba08b5cf31a42179d352cbab7b7
2020-02-03 15:33:45 +00:00
Dmitry.Krasilschikov
d4c5ac8854 API for lazy localized messages
Use `XBundle.lazyMessage()` API a string to be changed to its localized variant on a language plugin enabling w/o restart

`public static Supplier<String> lazyMessage() {...}` added into many bundle classes

GitOrigin-RevId: 8c6ef21c8bc774614e6bb94dad27ff5db6cbff07
2020-02-03 09:39:27 +00:00
Semyon Proshev
e0f7bb46cc Drop PyiModuleMembersProvider since, if a module has a python stub, this stub is presented in resolve results (PY-39956)
GitOrigin-RevId: 86553aa62f7c02a329441a7cdfb3781947e68a88
2020-01-30 14:07:49 +00:00
Semyon Proshev
d9756f9e05 Guard against duplicates provided in completion (PY-39956)
GitOrigin-RevId: f46c03dcf78b22d2d973a117a20a044bea394acf
2020-01-30 14:07:49 +00:00
Mikhail Golubev
be2d55e603 PY-32123 Ignore escape sequences in raw f-strings by adding special token type for their text
GitOrigin-RevId: 0b15201c60ac56daa45f22bb5ff3c1f8836efee3
2020-01-28 16:04:27 +00:00
Sergey Malenkov
7d10769f95 Remove deprecated icons in AllIcons.Modules
GitOrigin-RevId: c3d2acd2fe562039ae0fa39fa3a5ba568934a3a5
2020-01-28 10:37:03 +00:00
Vladimir Krivosheev
ba98224912 remove author (only some, where it is ok)
GitOrigin-RevId: 7dbab7524fe4efc5d17a04b95dee88b6f80fbe8d
2020-01-21 17:36:52 +00:00
Sergey Stupin
b34fb65e82 LAB-31 move numpy extensions to python psi impl
GitOrigin-RevId: 0d5261644db280b78f816da7b076da4949a2bbe3
2020-01-21 15:07:57 +00:00
Sergey Stupin
4cc2b248fc LAB-31 move some stdlib-based extensions to python psi impl
GitOrigin-RevId: ca2dc9385c843cb81dddb59c3f793ffe6e9aa63b
2020-01-21 15:07:57 +00:00
Semyon Proshev
370bc2852f No more warning about using thread-local instead of recursion manager
GitOrigin-RevId: d44885d814c7aec485d100a21ebf2f9b4d1ae2bf
2020-01-21 14:38:56 +00:00
Sergey Stupin
c3973b7e90 LAB-31 move PyNamedTupleTypeProvider, PyNamedTupleOverridingTypeProvider to python psi impl
GitOrigin-RevId: 0ab0e8cbb19012301239e9b74396994c7e8ffb49
2020-01-21 14:21:26 +00:00
Sergey Stupin
5b0f548ffe LAB-31 move PyDataclassTypeProvider to python psi impl
GitOrigin-RevId: c0235c21b38ea6c95370512bbc29d556504120f9
2020-01-21 13:40:37 +00:00
Sergey Stupin
b93ba4a472 LAB-31 move PyStdlibTypeProvider to python psi impl
GitOrigin-RevId: 342567f190c9fc0598f61a9e4ddf4350b44adfee
2020-01-21 13:34:43 +00:00
Sergey Stupin
6156d1b7b9 LAB-31 move PyOverridingClassDunderMembersProvider to python psi impl
GitOrigin-RevId: 0bdc9771414a3ba5308d2c8e24a3752756bb2b7e
2020-01-21 13:34:43 +00:00
Sergey Stupin
6281064e88 move PyBreakContinueGotoProvider python-psi-impl
GitOrigin-RevId: f947fa080f2258dd1def86349e5796ffeda485c9
2020-01-20 10:36:42 +00:00
Mikhail Golubev
c955ffbcc7 PY-39682 Handle union types of qualifiers when deducing FQN for unresolved attributes
The underlying problem is that we started to infer a confusing union type
of __init__.py modules found both in site-packages and python_stubs
for such imported packages, but I want it to be addressed separately in PY-39911.

GitOrigin-RevId: 053a4a092ce7fcc71d192dbaa6b1623b82472a17
2020-01-16 08:11:51 +00:00
Tagir Valeev
78a91459c4 Array annotations changed to type-use style (not compilable now)
GitOrigin-RevId: 68aa4ba200618083684599228e13dfdba35967a4
2020-01-16 08:11:51 +00:00
Sergey Stupin
5651d08c33 LAB-31 move NumpyDocStringTypeProvider to python-psi-impl
GitOrigin-RevId: b65fb8c08de5bbb99c7b6a8347bf225b79e0f0f1
2020-01-14 14:35:29 +00:00
Sergey Stupin
d70b2af48e LAB-31 move PyTargetElementEvaluator to python-psi-impl
GitOrigin-RevId: 1bf806d3498a4dc19c770c1c08253f99690b14a1
2020-01-14 13:39:31 +00:00
Sergey Stupin
b60e92eb0a LAB-31 env-based specific completion contributor for providing dir with user files
GitOrigin-RevId: 1be992cdaba18286372338d64b2947fa4f0fd787
2020-01-14 12:06:23 +00:00
Sergey Ignatov
2a8215156b rename after an old refactoring
GitOrigin-RevId: b757431b7a1c51e53f4d517de477314e0b13de12
2020-01-12 00:12:25 +00:00
Stanislav Utikeev
ae21cd4bf7 [analysisTool] Move some of EPs used in analysis tool to proper XMLs
- Move .pyi filetype definition to python-core-common.xml as it is registered via CoreFileTypeRegistry
- Move referencesSearch to Indexing.xml

GitOrigin-RevId: 1e8e38d0c371f0042ce517391da10bbc8bbcc886
2020-01-09 15:10:17 +00:00
Sergey Stupin
fbe47de0c5 LAB-31 add rename API to PythonAnalysisTool (wip). Move several EPs from lang to analysis
GitOrigin-RevId: e66c50404670eeca27358f942153f146d8c742b3
2020-01-07 10:02:06 +00:00
Sergey Ignatov
5237befd34 mv PyPsiBundle
GitOrigin-RevId: 3cb6b9f7906e9ce9b4d8880a1f62deeea383660a
2020-01-05 19:31:47 +00:00
Lada Gagina
16be4d1594 IDEA-CR-56349: PY-39404 PY-39594 Fix type inference for TypedDict types
* For cases when a TypedDict was defined in a separate file
* Fix race when typing near inherited TypedDict's field

GitOrigin-RevId: e19792592c744e9c5a7a7c00af847296efb11d0c
2019-12-27 10:34:55 +00:00
Sergey Ignatov
9432eb9178 py bundle
GitOrigin-RevId: f881a433069400ce5e23bd4b179120cd7497bbef
2019-12-23 15:07:19 +00:00
Semyon Proshev
b369994381 No more disregard for unresolved member on None (PY-39078)
GitOrigin-RevId: aa2cb4908b8472905400e11a2f12f3e67556abeb
2019-12-23 15:07:19 +00:00
andrey.matveev
d66e0eec0e PY-10184 Impl hasattr support
GitOrigin-RevId: e5826372ddfe233656097da774d978c57ee54937
2019-12-23 13:08:30 +00:00
Ilya.Kazakevich
f8544fb8ee PY-26062, PY-38540, PY-25935: Various Django performance improvements.
* Do not provide references for "open" in Django (already done by another code)
* Do not use full resolve for class and functions names. In most cases "resolve", "ManyToMany" and "ModelForm" are imported as-is, not with aliases.

GitOrigin-RevId: 8a0803e6b19482654c91186aa9754ea3d91da282
2019-12-18 17:32:32 +00:00
Semyon Proshev
161a28d32a Infer correct type for docstrings (PY-35885)
GitOrigin-RevId: 2994a2e312611b038c72ec18abb2cd96880213e9
2019-12-17 14:06:19 +00:00
Andrey Vlasovskikh
1bb27a0cc0 Added a method to search helpers-pro
GitOrigin-RevId: c1022294b3b340ffd21eec3f04fce1d046898879
2019-12-16 19:36:07 +00:00
Petr Golubev
fd72ec6e18 rm obsolete PyUnresolvedReferencesInspectionBase class
GitOrigin-RevId: c43097fdb06d9836dab094e9c3c47a2bfadd4b12
2019-12-16 13:11:04 +00:00
Petr Golubev
ba7bdc9706 unresolved ref inspection: get rid of PyUnresolvedReferencesQuickFixBuilder
GitOrigin-RevId: a00b3258cc0189010f1999cecd9f664ad6cc8c40
2019-12-16 13:11:04 +00:00