Toshiaki Kameyama
c3988ef184
Support "Lift return out of when" for exhaustive when without else
...
So #KT-18852 Fixed
2017-07-26 17:44:19 +03:00
Mikhail Glukhikh
9781d1fcdf
Remove unused variable with constant initializer #KT-13886 Fixed
2017-07-26 15:18:46 +03:00
Mikhail Glukhikh
a08f55cf99
Cast to type quick-fix: handle case with qualified elements correctly
...
Same fix for 'add !!' fix
So #KT-18368 Fixed
2017-07-26 15:18:38 +03:00
Mikhail Glukhikh
e6872c52a3
More accurate deparenthesize (keeping annotations) in some IDE actions
...
So #KT-19004 Fixed
2017-07-26 15:18:30 +03:00
Mikhail Glukhikh
7fb78a0372
Code cleanup: replace chained null-checks with safe-calls
2017-07-26 15:18:22 +03:00
Nikolay Krasko
732d1129ab
Enable replace for deprecated alias in whole project (KT-14929)
...
#KT-14929 Fixed
2017-07-26 14:20:59 +03:00
Nikolay Krasko
5df2698f77
Enable ReplaceWith for type aliases (KT-14929)
...
#KT-14929 Fixed
2017-07-26 14:20:57 +03:00
Alexander Udalov
224df7a1ea
Change -Xload-jsr305-annotations argument to -Xjsr305-annotations={ignore|enable}
...
See https://youtrack.jetbrains.com/issue/KT-19229 for a complete
explanation
#KT-19229 Fixed
#KT-10942
2017-07-26 11:45:25 +03:00
Alexander Udalov
2f99f6ad34
Refactor AnalysisFlags and their support in IDE
...
* Support flags with any value (not just Boolean)
* Support all flags by parsing arguments in KotlinFacetSettings, instead
of manually listing known flags
#KT-19210 Fixed
2017-07-26 11:45:24 +03:00
Alexander Udalov
845de7aa4d
Minor, change parameter type of parseCommandLineArguments
2017-07-26 11:45:24 +03:00
Alexander Udalov
593f98190d
Keep .txt and .caps files in compiler.pro
...
Files like org/jline/utils/capabilities.txt are needed for jline to
function correctly
#KT-19237 Fixed
2017-07-26 11:45:23 +03:00
Dmitry Petrov
0391c24ab2
Provide diagnostic for typealias using deprecated class or constructor
...
#KT-19205 Fixed Target versions 1.1.5
2017-07-26 09:02:45 +03:00
Dmitry Jemerov
c78ad9c047
Correctly detect library kind when not using modules per sourceset
...
#KT-19219 Fixed
2017-07-25 18:20:45 +02:00
Simon Ogorodnik
fa88fb74c4
Disable completion binding context caching by default
...
Now it opt-in in internal mode, due duplication problems
#KT-19191 fixed
2017-07-25 18:26:34 +03:00
Simon Ogorodnik
094125c970
KT-19154: Fix auto-import to check receiver for members properly
...
#KT-19154 fixed
2017-07-25 16:16:57 +03:00
Alexander Udalov
f313001b2d
Update to jline 3.3.1 and jansi 1.16
...
Note that the history file name was changed (.kotlin_history ->
.kotlinc_history) because the history is now stored in a different
(incompatible) format.
#KT-11369 Fixed
2017-07-25 11:10:45 +03:00
Ilya Gorbunov
baa6b44567
Deprecate CharSequence.size in JS
...
#KT-18267 Fixed
2017-07-24 21:14:45 +03:00
Ilya Gorbunov
f10ea03173
Provide extension to get mutable iterator from the mutable map
...
#KT-18992 Fixed
2017-07-24 21:02:15 +03:00
Dmitry Jemerov
e0dc7a27a0
Migration for pre-1.1.3 JS libraries
...
#KT-19156 Fixed
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
861219f502
ConfigureKotlinTest refactoring to avoid duplicating production logic
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
63c6ba7e31
Add missing read action
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
f370d74609
Correctly detect stdlib in Gradle projects; move detection out of EDT
...
To detect whether a module has an stdlib in its dependencies, look at
source root modules and not at base module.
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
0971af803c
Check for non-configured modules in background thread
...
#KT-17835 Fixed
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
e1f7c91728
Use Kotlin/JVM and Kotlin/JS terms in the UI
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
0f2992ddec
JavaFrameworkType: J2K
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
079f7690a8
JavaFrameworkType: rename to .kt
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
6dbaec0cc6
Use distinct icon for Kotlin/JS module and libraries
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
6eff8c7b4b
JSFrameworkType: J2K
2017-07-24 19:53:52 +02:00
Dmitry Jemerov
57a501ebce
JSFrameworkType: rename to .kt
2017-07-24 19:53:52 +02:00
Pavel V. Talanov
8e3f8c4c14
Fix calling GSS.union for empty array
...
EA-104046
2017-07-24 18:56:19 +03:00
Pavel V. Talanov
d5ca46157a
Refactor: Make DependenciesCache and ScriptDependenciesUpdater services
...
Rename: DependenciesCache -> ScriptDependenciesCache
(makes sense to make name more specific since it is a service now)
2017-07-24 18:56:16 +03:00
Pavel V. Talanov
f1811e7f0e
Minor, more precise error message
2017-07-24 18:56:14 +03:00
Kirill Rakhman
4c7ddbe397
"Use destructuring declaration" should not be available for top-level and class properties ( #1205 )
...
Fixes #KT-19167
2017-07-24 14:33:46 +02:00
Dmitry Petrov
f558b4238c
Use counter loop in intrinsic array constructors
...
#KT-19149 Fixed Target versions 1.1.5
2017-07-24 10:17:30 +03:00
Dmitry Petrov
c9d9a8220d
Minor: use IntrinsicMethods.INTRINSICS_CLASS_NAME where appropriate
2017-07-24 10:15:27 +03:00
Dmitry Petrov
fda89e9c72
Add test for KT-19128
...
It looks like the problem was caused by incorrect merging of
StrictBasicValues and was fixed by commit
904c7f9c64 .
#KT-19128 Fixed
2017-07-24 10:15:27 +03:00
Dmitry Petrov
d0c8af5621
Keep track of second receiver type in CallReceiver
...
#KT-17725 Fixed Target versions 1.1.5
2017-07-24 10:15:27 +03:00
Dmitry Petrov
3f34a97880
Minor: extract CallReceiver to a top-level class, move code around
2017-07-24 10:15:27 +03:00
Simon Ogorodnik
f079ed949c
KT-19015: Enable multiarg completion for non-first argument
...
#KT-19015 fixed
2017-07-24 00:00:11 +03:00
Ilya Gorbunov
ec5c15f190
test-dagger-maven-example: kotlin version comes as a parameter
2017-07-21 20:15:34 +03:00
Ilya Gorbunov
d8ea3ddcc8
Cleanup poms of projects migrated to gradle
2017-07-21 20:15:34 +03:00
Alexander Udalov
f69e96b240
Fix IAE at protoDifferenceUtils.kt on new metadata field
...
The class_local_variable/package_local_variable JVM extensions were
added in 616d575fb6
#KT-19155 Fixed
2017-07-21 20:11:43 +03:00
Nikolay Krasko
b6bd3e15c5
Fix outdated highlighting for Kotlin injected fragments (KT-18842)
...
Do not use cached value for injection in non-dispatch threads and throw
PCE if value isn't ready. Otherwise outdated value may be stored in
highlighting.
#KT-18842 Fixed
2017-07-21 19:57:21 +03:00
Alexander Udalov
7f8e7c66f5
Suppress FNFE in .kotlin_metadata index
...
Similarly to VirtualFileKotlinClass.create.
This could happen for example when some files are removed from
kotlin-stdlib-common
2017-07-21 19:03:15 +03:00
Alexander Udalov
ebdf5aa223
Discriminate header classes in favor of non-header type aliases
...
In the test case, the problem was that Foo.a's type was resolved to the
_class A_, which was written to metadata on JVM instead of the class
AImpl with typealias A as an abbreviation. This metadata was incorrect
because there's no class A from the JVM compiler's point of view; that's
why the error "cannot access class A" was reported
#KT-19151 Fixed
2017-07-21 19:03:15 +03:00
Mikhail Glukhikh
6ee94dae6f
Code cleanup: KotlinSafeDeleteProcessor
2017-07-21 18:59:13 +03:00
Mikhail Glukhikh
d05a525d8d
Search for KtTypeAlias in safe delete processor
...
Related to KT-16046
2017-07-21 18:59:07 +03:00
Mikhail Glukhikh
dd0cf8219e
Add type aliases into UnusedSymbolInspection / safe delete
...
So #KT-16046 Fixed
2017-07-21 18:59:01 +03:00
Mikhail Glukhikh
951e8cd91a
Code cleanup: unnecessary local variable applied
2017-07-21 18:58:48 +03:00
Mikhail Glukhikh
202fb19cf6
If-then to safe access: more correct receiver calculation
...
So #KT-18928 Fixed
2017-07-21 18:58:33 +03:00