Ilya Chernikov
0199ec18b1
Add new compiler argument for passing script resolver environment
2017-04-06 10:02:48 +02:00
Ilya Chernikov
234ad39fd6
minor: improve daemon start failure diagnostic
2017-04-06 10:02:47 +02:00
Ilya Chernikov
a309511adf
Add actual sources to compiler and daemon client jars
2017-04-06 10:02:46 +02:00
Ilya Chernikov
88652154c9
Port compiler to the script-runtime with script base classes
2017-04-06 10:02:45 +02:00
Ilya Chernikov
7ceaca133a
Add new artifact kotlin-compiler-client-embeddable.jar
2017-04-06 10:02:44 +02:00
Ilya Chernikov
aebfc2f4a1
minor: move native platform launcher to separate file to make native-platform dependency optional
2017-04-06 10:02:43 +02:00
Mikhail Zarechenskiy
90a8a164b4
Fix false warning about check for instance of nullable type
...
#KT-12269 Fixed
2017-04-05 21:35:09 +03:00
Mikhail Zarechenskiy
0d6b7bb6a1
Prohibit check for instance of a non-reified, non-subtype type parameter
...
#KT-12683 Fixed
#KT-9986 Fixed
2017-04-05 21:35:07 +03:00
Mikhail Zarechenskiy
9fdd5fe5e8
Allow to import private members if they are in the same file
...
#KT-7724 Fixed
2017-04-05 21:35:06 +03:00
Mikhail Zarechenskiy
f518e8ebb8
Prefer stable types to diagnose useless cast
...
#KT-11622 Fixed
2017-04-05 21:35:05 +03:00
Mikhail Zarechenskiy
13eddba1f2
Fix false warning about useless cast in property and property accessor
...
Note that there are some other problems, for example:
`val a = if (true) 1 as Number else 2`, here we'll get useless cast
#KT-9551 Fixed
#KT-9645 Fixed
2017-04-05 21:35:04 +03:00
Mikhail Zarechenskiy
12db3a263e
Don't report useless cast in lambda if it has influence on return type
...
#KT-15161 Fixed
#KT-12690 Fixed
2017-04-05 21:30:32 +03:00
Alexey Tsvetkov
30d6af7aae
Provide incremental compilation for Maven
...
#KT-11916 fixed
To use the IC either:
1. set the `kotlin.compiler.incremental` property to `true` in a pom.xml:
```
<properties>
<kotlin.compiler.incremental>true</kotlin.compiler.incremental>
</properties>
```
2. pass the `kotlin.compiler.incremental` property in a command line:
```
mvn install -Dkotlin.compiler.incremental=true
```
When IC is on Kotlin plugin is expected to print the warning in the log:
```
Using experimental Kotlin incremental compilation
```
After each call an incremental compiler will also log how many files it has compiled:
```
Compiled %SOME_NUMBER% Kotlin files using incremental compiler
```
Note that the first build will be non-incremental.
For more diagnostic information (such as an exact list of compiled files) use the `kotlin.compiler.incremental.log.level` system property:
```
mvn install -Dkotlin.compiler.incremental=true -Dkotlin.compiler.incremental.log.level=info
```
To force the rebuild just run the 'clean' goal:
```
mvn clean install
```
2017-04-05 21:00:43 +03:00
Yan Zhulanow
21da11fe18
Fix 'kotlin-spring' and 'kotlin-noarg' Gradle plugin importing (KT-17049)
...
Allopen and Noarg plugins now use 'presets' that should be handled in the Gradle importer as well.
2017-04-05 18:13:14 +03:00
mglukhikh
9fa16364e1
Find enclosing element for object literal in delegate #KT-8187 Fixed
2017-04-05 16:38:04 +03:00
mglukhikh
6277476573
Do not add a new label to labeled loop
...
Relevant situation: break / continue in when #KT-16128 Fixed
2017-04-05 15:40:08 +03:00
mglukhikh
d9e1e82948
Destructure is available even without usages #KT-14435 Fixed
2017-04-05 15:07:15 +03:00
mglukhikh
feb9dd4d83
Don't suggest destructuring if at least half components not used
...
So #KT-16828 Fixed
2017-04-05 14:45:48 +03:00
Mikhail Glukhikh
318314f1a4
Fix "must not be null" in KotlinInlineFunctionDialog #KT-17233 Fixed
2017-04-04 19:22:46 +03:00
mglukhikh
8fb818fc74
Don't report 'protected in final' for implicitly protected
...
So #KT-16339 Fixed
2017-04-04 19:22:39 +03:00
mglukhikh
f13997750f
Make destructure intention work on library data classes
...
So #KT-16468 Fixed
So #KT-14402 Fixed
2017-04-04 19:22:31 +03:00
mglukhikh
8a02ce3dc2
KT-16828: use _ when appropriate in destructure intention
2017-04-04 19:22:24 +03:00
Ilya Chernikov
32d0d7a4d5
Remove xerces from compiler uberjar, pack compiler with explicit jar names
...
xercesImpl was unnecessarily added to the compiler uberjar during migration
to the idea platform 171. This caused NCDFE about classes from org.w3c
package.
And to simplify application of this commit and to ensure that only required
jars are packed into the uberjar, the build.xml was altered to use
explicit list of the jars from the ideaSdk/core directory, rather than
a mask.
Fixes #KT-17143 and #KT-17157
(cherry picked from commit 5595bea)
2017-04-04 15:14:46 +02:00
mglukhikh
1b2edf6a0c
KT-15870: run getTargetDirectory() in write action
2017-04-04 15:55:57 +03:00
mglukhikh
ee239d59aa
Set startInWrite... in intention-based quick fix as in intention
...
So #KT-15870 Fixed
2017-04-04 15:55:55 +03:00
Simon Ogorodnik
57c1d8eda4
Fix conversion of assignment as expression in J2K
...
Blockless if's and so with assignment as expression inside
should turn into blockful
#KT-16816 fixed
2017-04-04 14:38:25 +03:00
Simon Ogorodnik
86137e1f65
Fix deadlock in J2K
...
#KT-17230 fixed
2017-04-04 14:38:25 +03:00
Alexey Sedunov
6bf23d5e02
Kotlin Facet: Convert paths to OS-independent form
...
#KT-17223 Fixed
2017-04-04 14:35:12 +03:00
Alexey Sedunov
7e0bb089e2
Kotlin Facet: Suppress selection on plugin options tab
...
#KT-17046 Fixed
2017-04-04 14:35:11 +03:00
Alexey Sedunov
746ec48176
Move: Fix internal reference processing on moving multiple files
...
#KT-17211 Fixed
2017-04-04 14:35:10 +03:00
Alexey Sedunov
a8a9c3bbf4
Kotlin Facet: Fix platform detection in android-gradle projects
...
Sort candidate library names by descending length.
Suppress common library if platform-specific one is also present
#KT-16827 Fixed
2017-04-04 14:35:08 +03:00
Mikhail Glukhikh
7a53b2f4c8
Introduce UNUSED_ANONYMOUS_PARAMETER for anonymous functions
...
It is not reported for 1.0 language version because
renaming to _ is not possible. It has weak warning severity
So #KT-8813 Fixed
So #KT-16875 Fixed
2017-04-04 14:23:30 +03:00
Nikolay Krasko
110fc103de
Run tests with JDK 1.8 and remove hack with downloading libraries from previous ide
2017-04-04 13:22:43 +03:00
Dmitry Jemerov
fe8e02f4cf
Use LibraryJarDescriptor for refreshing jars on plugin update
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
78844dd4aa
Use new path for stdlib sources jar
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
38abc0ca8e
Get rid of RuntimeLibraryFiles and its remaining uses
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
09fbbb369a
Use LibraryJarDescriptor in CustomLibraryDescriptorWithDeferredConfig
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
2bb1b670f7
CustomLibraryDescriptorWithDeferredConfig: J2K
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
ff985314cf
CustomLibraryDescriptorWithDeferredConfig: rename to .kt
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
f9aff3be13
Rewrite configureModuleWithLibrary() based on LibraryJarDescriptor
...
Also remove duplicated logic for identifying Kotlin libraries.
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
06e8f8e5be
Remove obsolete logic for updating source root URL
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
291e888802
Encapsulate library search in LibraryJarDescriptor
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
f9495aa0d7
Introduce and use KotlinPaths.getStdlibPath()
...
Also support renaming .jar file when updating an existing library
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
344f372327
KotlinJavaModuleConfigurator: J2K
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
16c2dec60a
KotlinJavaModuleConfigurator: rename to .kt
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
00d3141ba2
KotlinWithLibraryConfigurator: J2K
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
2059a052c9
KotlinWithLibraryConfigurator: rename to .kt
2017-04-04 11:21:06 +02:00
Dmitry Jemerov
296fe698b8
KotlinAnnotatedElementsSearcher optimization
...
When possible, try to resolve references in types using only the PSI
without building the full resolve session.
2017-04-04 11:14:09 +02:00
Pavel V. Talanov
b9809566e6
Workaround for KotlinJpsBuiltTest js tests
...
Caused by problems with classloading (having two copies of DefaultImplementation class)
2017-04-03 21:44:43 +03:00
Mikhael Bogdanov
16d95d803f
Use jdk 1.8 to run android tests
2017-04-03 19:20:52 +02:00