Toshiaki Kameyama
a36e8c86f1
KT-22428 Create member function from usage shouldn't present type parameters as options ( #1509 )
...
* KT-22428 Create member function from usage shouldn't present type parameters as options
* Reformat & cleanup
2018-02-17 14:09:44 +03:00
Nicolay Mitropolsky
47f3a0ce0a
Revert "Light annotations made strictly non-physical (KT-22565)"
...
This reverts commit cf6e21d
2018-02-16 16:24:15 +03:00
Nikolay Krasko
866129984e
Expression can be parenthesized on replace with if (KT-22874, EA-91186)
...
#KT-22874 Fixed
2018-02-16 13:29:53 +03:00
Nikolay Krasko
67183ad3b0
Fix class cast exception in KotlinFunctionParameterInfoHandler (EA-91186)
2018-02-16 13:29:50 +03:00
Nikolay Krasko
d868c01671
Disable outdate runtime check for developers builds
...
We can't update them properly anyway.
2018-02-16 13:29:49 +03:00
Nikolay Krasko
86dfc1ae2c
Add internal action for reactivating post-open project activity
2018-02-16 13:29:48 +03:00
Nikolay Krasko
8a655b70e0
Fix isModified check in Kotlin compiler tab (KT-22851)
...
outputPostfix and outputPrefix is saved with nullize in apply, but
modification check was without it.
#KT-22851 Fixed
2018-02-16 13:29:47 +03:00
Mikhail Glukhikh
6c328e7845
Fix IdeModuleInfoTests (related to KT-21771)
2018-02-16 13:15:02 +03:00
Alexander Podkhalyuzin
d940546a10
Added optional dependency to Kotlin/Native Java plugin
2018-02-15 18:58:53 +03:00
Alexander Podkhalyuzin
898b31cb83
Merge pull request #1516 from JetBrains/always_fallback_to_hardcoded_plugin_id
...
Use hardcoded plugin ID when loaded in the main classloader
2018-02-15 17:03:29 +03:00
Mikhail Glukhikh
3f500a1655
Add "expectedBy" to module descriptor and use it in checker
...
Now ExpectActualDeclarationChecker in IDE context
uses common module descriptors for relevant checks.
Compiler still uses own module instead (see comment in checker)
So #KT-21771 Fixed
2018-02-14 15:09:14 +03:00
Mikhail Glukhikh
78136fbb07
IDE facet refactoring, ModuleInfo.expectedBy introduced.
...
Part of facet classes was extracted to idea-analysis module
Related to KT-21771
2018-02-14 15:09:14 +03:00
Natalia Selezneva
50c0c5a747
Throw exception when it's not possible to run evaluate expression with compilation
2018-02-14 14:40:38 +03:00
Natalia Selezneva
19e7002d02
Evaluate Expression: fix ClassNotFoundException for primitives and arrays
2018-02-14 14:40:31 +03:00
Natalia Selezneva
2f61bd41d5
Fix comparision of java versions during class loading in evaluate expression.
...
Do not catch EvaluateException during class loading to show more useful error to user.
^KT-22830 Fixed
2018-02-14 14:40:24 +03:00
Nikolay Krasko
71043821da
Check idea with apiVersion instead of BUILD_NUMBER
...
BUILD_NUMBER is probably rewritten in tests from KotlinCoreEnvironment.
2018-02-14 13:27:10 +03:00
Nikolay Krasko
882913c773
Fix getting fields after introducing KotlinCommonCodeStyleSettings
2018-02-14 13:27:10 +03:00
Vyacheslav Karpukhin
cbb75d0bcd
Use hardcoded plugin ID when loaded in the main classloader
2018-02-14 11:11:18 +01:00
Mikhail Glukhikh
d56902983e
Add forgotten generated tests
2018-02-14 13:03:30 +03:00
Toshiaki Kameyama
e35ec8ee08
Introduce intention 'expr.unsafeCast<Type>()' <- -> 'expr as Type'
...
So #KT-16382 Fixed
2018-02-13 13:05:52 +03:00
Mikhail Glukhikh
085c7d30ed
Specify expl. lambda signature: derive from offset independent intention
...
Related to KT-22492
2018-02-13 12:28:56 +03:00
Toshiaki Kameyama
5499078fcc
Make "Specify explicit lambda signature" available on whole lambda
...
So #KT-22492 Fixed
2018-02-13 12:28:50 +03:00
Toshiaki Kameyama
059a797e10
Don't report redundant semicolon for a call before lambda expression
...
So #KT-22719 Fixed
2018-02-13 11:52:04 +03:00
Toshiaki Kameyama
f9555f3f64
Join with assignment: remove comment from target range #KT-22110 Fixed
2018-02-13 11:45:31 +03:00
Nikita Skvortsov
b1419e2a8c
fix import of expectedBy scope dependencies inside composite builds
2018-02-12 19:29:12 +03:00
Pavel V. Talanov
8ac7f0b592
Minor: remove error marker from commented out test code
2018-02-12 16:46:16 +01:00
Pavel V. Talanov
9e69c73387
Minor: comment out test for KT-22594 to unmute it on teamcity
...
#KT-22594 Open
2018-02-12 16:35:51 +01:00
Vyacheslav Karpukhin
53946456cf
Do not use hardcoded plugin ID for update checks
...
When Kotlin plugin is bundled into another plugin, there won't be a plugin with ID org.jetbrains.kotlin registered in PluginManager, which leads to runtime exceptions. To fix that let's determine the plugin ID dynamically instead.
2018-02-12 17:33:54 +03:00
Nikolay Krasko
f5e78a89bc
Collect statistics of used defaults set in formatting (KT-22252)
...
^KT-22252 In Progress
2018-02-12 17:33:54 +03:00
Alexey Sedunov
b315e0c113
Gradle: Fix dependency import when "module per sourceset" is disabled
...
#KT-22360 Fixed
2018-02-12 15:10:19 +03:00
Alexey Sedunov
e1aec46300
Configuration: Set up Kotlin SDK (if necessary) on plugin startup
...
#KT-22590 Fixed
2018-02-12 15:10:16 +03:00
Simon Ogorodnik
470a4bb615
Fix Missing documentation inspection for primary ctor properties
...
#KT-20954 fixed
#KT-21005 fixed
2018-02-12 13:41:50 +03:00
Nikolay Krasko
1e567438a2
Store selected set of defaults in code style settings (KT-22252)
...
#KT-22252 In Progress
2018-02-11 16:50:20 +03:00
Nikolay Krasko
5d25b8b476
Control serialize/deserialize of CommonCodeStyleSettings
2018-02-11 16:50:19 +03:00
Alexey Sedunov
e5e583e3e5
Configuration: Show Koltin plugin path as "home path" of Kotlin SDK
...
#KT-22640 Fixed
2018-02-09 14:17:40 +03:00
Alexey Sedunov
84fed8071c
Create from Usage: Support target directory selection for "Create class"
...
#KT-22152 Fixed
2018-02-09 14:17:40 +03:00
Alexey Sedunov
695a2a4098
Rename: Support retargeting/shadowing conflict checking for functions
...
#KT-22564 Fixed
2018-02-09 14:17:40 +03:00
Alexey Sedunov
5c6bba9f14
Rename: Fix qualified expression replacement for the case 'invoke' <-> 'get'
...
#KT-22705 Fixed
2018-02-09 14:17:39 +03:00
Alexey Sedunov
fffd74f002
Refactor: Move canMoveLambdaOutsideParentheses() function to idea-core module
2018-02-09 14:17:39 +03:00
Alexey Sedunov
48705865bd
J2K: KtArrayAccessReference
2018-02-09 14:17:38 +03:00
Alexey Sedunov
9150322bed
J2K: KtArrayAccessReference (rename to .kt)
2018-02-09 14:17:38 +03:00
Alexey Sedunov
e88f1467eb
Rename: Add quotes to declaration name if necessary
...
#KT-22708 Fixed
2018-02-09 14:17:38 +03:00
Alexey Sedunov
428b086458
Refactor: Move 'isIdentifier' and 'quoteIfNeeded' functions to frontend
2018-02-09 14:17:37 +03:00
Alexey Sedunov
fddfbf225f
Change Signature: Support implicit calls of 'invoke' and 'get'
...
Also drop 'operator' keyword when necessary
#KT-22718 Fixed
2018-02-09 14:17:37 +03:00
Dmitry Jemerov
3aaad0c21d
Indent default parameter values
...
#KT-22508 Fixed
2018-02-09 10:49:02 +01:00
Dmitry Jemerov
5bb195df9b
No space between label and lambda in labeled expressions
...
#KT-22301 Fixed
2018-02-09 10:49:01 +01:00
Dmitry Jemerov
8f9b818e43
Do not indent closing bracket of array access expression
...
#KT-22641 Fixed
2018-02-09 10:49:00 +01:00
Dmitry Jemerov
36f5525b12
Call chain indentation logic that actually makes sense
...
#KT-22346 Fixed
2018-02-09 10:48:51 +01:00
Dmitry Jemerov
2c88b26034
Group all call chain-related tests in a single directory
2018-02-09 10:48:48 +01:00
Rodrigo B. de Oliveira
de57951b58
Make Kotlin Idea plugin aware of the Gradle initscript template
...
See gradle/kotlin-dsl#662
2018-02-09 08:32:14 +01:00