Commit Graph
179212 Commits
Author SHA1 Message Date
Anna Kozlova a493ff0f1d annotations: check that modifier list corresponds to class modifier list when ignore list during process declarations (IDEA-160106) 2016-09-16 08:34:14 +03:00
Mikhail Golubev 0d37cf70eb PY-20783 Select correct scope owner to resolve symbols inside injection
Previously only PSI file containing host element was used to resolve
them, thus variables coming from local and nested scopes couldn't have
been found inside f-strings. It also fixes similar problems in other
places that make use of injections: doctests, type comments and escaped
forward references in type annotations.
2016-09-16 08:16:26 +03:00
Mikhail Golubev aaa2389549 PY-18972 Automatically close quotes for f-string literals 2016-09-16 08:16:26 +03:00
Mikhail Golubev d50db53561 PY-18972 Injections for expressions embedded inside f-strings
Most of the logic regarding proper detection of "{}" fragments follows
CPython's implementation of PEP-498.
2016-09-16 08:16:26 +03:00
Mikhail Golubev b16311ef60 PY-18972 Initial support of f-string literals
Namely, Python lexer, compatibility inspection and unsupported
features annotator are aware of them now.
2016-09-16 08:16:26 +03:00
Mikhail Golubev 83771208a3 PY-20744 Consider variable annotations only in current file to prevent unstabbing everywhere
It will be fixed eventually when we start storing annotations
for parameter, functions and target expressions in stub files and
process them using PyTypeParser only.
2016-09-16 08:16:26 +03:00
Mikhail Golubev 18f9ba8b6e PY-20744 PyTargetExpression#getAnnotation() better handles illegal annotation targets 2016-09-16 08:16:26 +03:00
Mikhail Golubev a48947ab01 PY-20744 Warn about illegal targets for variable annotations 2016-09-16 08:16:26 +03:00
Mikhail Golubev 6d86b858ca PY-20744 Initial support of variable annotations in type сhecking 2016-09-16 08:16:26 +03:00
Mikhail Golubev 409aad3f71 PY-20744 Compatibility inspection and annotator warn about variable annotations 2016-09-16 08:16:26 +03:00
Mikhail Golubev eb64521ae2 PY-20744 Python formatter is aware of variable annotations 2016-09-16 08:16:26 +03:00
Mikhail Golubev 3266460142 PY-20744 Parse PEP-526 variable annotations
Annotation is preserved at the level of assignment nodes similar to
where CPython keeps them in its AST (in special "augassign" nodes).
For type annotations in form "x: int" without variable initialization
special statement PyTypeDefinitionStatement was introduced.
2016-09-16 08:16:26 +03:00
Tagir Valeev 1ec6d3d0dd IDEA-161257 Map.computeIfAbsent: disable inspection if checked exception is thrown from lambda body 2016-09-16 10:26:14 +07:00
Tagir Valeev 9b54b344af IDEA-161257 Add Java-8 migration fix to use Map.computeIfAbsent where appropriate 2016-09-16 10:00:47 +07:00
Tagir Valeev d59ecfe632 IDEA-161194 follow-up: HTML description updated 2016-09-16 08:51:41 +07:00
Rustam Vishnyakov f851a9e6d2 Automatically substitute a read-only scheme with its editable copy 2016-09-16 00:38:26 +03:00
Konstantin Bulenkov 9054f58d63 Revert: IDEA-161043 Rename "Version Control" toolwindow to "VCS" 2016-09-15 21:42:14 +02:00
Konstantin Bulenkov 307897dbad Merge remote-tracking branch 'origin/master' 2016-09-15 21:14:56 +02:00
Konstantin Bulenkov c47ff6c8c3 Can't open Settings 2016-09-15 21:12:00 +02:00
Sergey Malenkov 5c95d50407 Registry: remove "ide.settings.old.style" property 2016-09-15 21:52:36 +03:00
Sergey Malenkov 2c55b3cdff Registry: add descriptions for several properties 2016-09-15 21:52:36 +03:00
Sergey Malenkov 7e566a6aab Registry: remove "ide.scroll.new.layout" property 2016-09-15 21:52:36 +03:00
Sergey Malenkov 5d8b405d2f Registry: remove "ide.scroll.thumb.border.rounded" property 2016-09-15 21:52:36 +03:00
Sergey Malenkov 0e4d5e4981 Registry: remove "ide.scroll.track.border.paint" property 2016-09-15 21:52:36 +03:00
Sergey Malenkov ca02c02bd5 Registry: remove "ide.scroll.bar.expand.animation" property 2016-09-15 21:52:36 +03:00
Sergey Malenkov e9bc0797b2 Registry: remove "ide.scroll.background.wide" property 2016-09-15 21:52:36 +03:00
peter 094ab51a7a enable parallel classloading in teamcity tests 2016-09-15 20:48:30 +02:00
peter 866a5e54b5 clarify what "fails" means in TransactionGuard javadoc (IDEA-CR-13467) 2016-09-15 20:16:33 +02:00
peter 5343c4ad0e don't cast constructor lookup elements to class elements (EA-88528 - CCE: JavaCompletionContributor.lambda$addAllClasses$) 2016-09-15 20:16:32 +02:00
Anna Kozlova 8d3c33eb8c Revert: annotations: check error elements after annotation to rise annotation not expected here instead of some unpredictable warnings (IDEA-160106) (d4e7271498) 2016-09-15 20:53:42 +03:00
Roman Shevchenko 2b616545d9 Merge remote-tracking branch 'origin/master' 2016-09-15 20:41:17 +03:00
Roman Shevchenko 1e1f2ccb8c [platform] more correct message for failed update 2016-09-15 20:36:47 +03:00
Roman Shevchenko 0e8c9d4c3c [updater] minor optimizations 2016-09-15 20:35:09 +03:00
peter a5320fcbce java completion argument live templates: add yet another registry key to autopopup completion 2016-09-15 19:15:45 +02:00
Yaroslav Lepenkin a7b5e9040c [Freeze Logger] send ThreadInfo objects instead of string 2016-09-15 20:05:49 +03:00
Sergey Simonchik 480212e306 filters: allow to create multiple grayed hyperlinks for a single line 2016-09-15 19:47:54 +03:00
Sergey Simonchik ba646ec14b sm runner: print all hyperlinks 2016-09-15 19:45:45 +03:00
Konstantin Bulenkov 0649622bc9 Merge remote-tracking branch 'origin/master' 2016-09-15 18:36:41 +02:00
Konstantin Bulenkov 7df86e7749 IDEA-161043 Rename "Version Control" toolwindow to "VCS" 2016-09-15 18:33:09 +02:00
Aleksey Pivovarov abce171413 lst: fix triangle rendering on HiDPI 2016-09-15 19:21:20 +03:00
Semyon Proshev 90a381b2f1 PY-20662 Fixed: Making any magic method async displays an error, even though it is sometimes legal
Mark __call__ builtin as allowed to be async
2016-09-15 19:20:12 +03:00
Rustam Vishnyakov 900ca1d925 Create user copies of bundled schemes 2016-09-15 19:00:34 +03:00
Andrey Vlasovskikh 767d72a58b Disabled shell env loading on Linux due to exception (PY-15085)
There is no printenv.py on Linux in the PyCharm distribution so PyCharm
cannot read the environment variables.
2016-09-15 18:58:35 +03:00
Aleksey Pivovarov 75dcac5773 ui: fix TextField rendering on HiDPI 2016-09-15 18:48:43 +03:00
Sergey Malenkov 0619bc0ea5 Registry: description for "mac.scroll.horizontal.gap" property 2016-09-15 18:43:56 +03:00
Sergey Malenkov 21416d676b Registry: description for "ide.wide.selection.list.ui" property 2016-09-15 18:43:56 +03:00
Sergey Malenkov 758c994e95 Registry: remove "ide.expansion.hints.on.all.screens" property 2016-09-15 18:43:56 +03:00
Sergey Malenkov d675845553 Registry: remove "mac.scroll.new.ui" property 2016-09-15 18:43:56 +03:00
Anna Kozlova 1cbbf5614b testdata to ensure inline from library doesn't find library usages 2016-09-15 18:35:34 +03:00
Anna Kozlova d4e7271498 annotations: check error elements after annotation to rise annotation not expected here instead of some unpredictable warnings (IDEA-160106) 2016-09-15 18:35:33 +03:00