Alexey Tsvetkov
51a8f6ee4f
Implement server side IC
2016-12-19 22:55:21 +03:00
Alexey Tsvetkov
f411bb0b4b
Refactoring: extract withDaemon
2016-12-19 22:55:21 +03:00
Alexey Tsvetkov
9654607f42
Refactoring: pass MessageCollector, OutputItemsCollector in CompilerEnvironment
2016-12-19 22:55:20 +03:00
Alexey Tsvetkov
3f91df4c84
Minor: move GradleCompilerEnvironment to separate file
2016-12-19 22:55:20 +03:00
Alexey Tsvetkov
145608ec0f
Minor: remove redundant call
2016-12-19 22:55:20 +03:00
Alexey Tsvetkov
c1812d7d92
Move IC tests to compiler
...
Fixing IC after moving it from Gradle to the compiler in commit f40a3eff20
2016-12-19 22:55:19 +03:00
Alexey Tsvetkov
cbe680d876
Move file utils
...
Fixing IC after moving it from Gradle to the compiler in commit f40a3eff20
2016-12-19 22:55:17 +03:00
Alexey Tsvetkov
8bd8f5eacf
Make IC classes public
...
Fixing IC after moving it from Gradle to the compiler in commit f40a3eff20
2016-12-19 22:55:14 +03:00
Alexey Tsvetkov
a569f7e75a
Remove remaining gradle api references
...
Fixing IC after moving it from Gradle to the compiler in commit f40a3eff20
2016-12-19 22:55:06 +03:00
Alexey Tsvetkov
939020ec60
Replace org.jetbrains.kotlin.com.intellij with com.intellij
...
Fixing IC after moving it from Gradle to the compiler in commit f40a3eff20
2016-12-19 22:54:38 +03:00
Alexey Tsvetkov
f40a3eff20
Move IC from Gradle to compiler
...
Reasons for moving:
1. Integration with Kotlin daemon for Gradle.
Gradle bundles Kotlin compiler (kotlin-compiler-embeddable) since Gradle 3.2.
There is no plugin isolation in Gradle, so strange compilation errors/exceptions may happen.
We decided to fix this problem by compiling out-of-process using Kotlin daemon.
Reasons for moving IC to the compiler:
* Better isolation from Gradle process.
* Incremental compilation logic is not scattered across two process and multiple modules.
* Makes it possible to implement standalone CLI IC
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
377912f42d
Replace Gradle logger with ICReporter
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
599f11b431
Refactoring: extract interface AnnotationFileUpdater
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
fdd3bc31f1
Rename: IncReporter->ICReporter
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
4fdca24db4
Remove source annotations removing (not needed with KAPT3)
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
190c038ad8
Minor: log compiler arguments
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
c7c2a93d1f
Use daemon when compiling Kotlin to JS
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
25816b2ccf
Use ProcessLauncher from native platform for out-of-process compilation
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
5082e8f236
Add a way to customize compiler file in build.gradle
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
75133bdfb9
Implement fallback strategies
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
d636803d2f
Run compiler via Kotlin daemon in Gradle plugin
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
0be4299c8a
Refactoring: extract JPS specific code from compiler-runner
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
1f21a0ec90
Add compiler daemon client and runner to maven build
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
eac76915be
Minor: remove ImmutableMapBuilder reference from CompilerOutputParser
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
c8394cd0cc
Convert CompilerOutputParser: convert to kotlin
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
d587c3091c
Convert CompilerOutputParser: rename file
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
896d81143c
Introduce compiler-runner module
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
e3550c5ea2
Convert CompilerEnvironment to Kotlin: actual conversion
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov
f98dde4543
Convert CompilerEnvironment to Kotlin: rename file
2016-12-19 22:46:12 +03:00
Stanislav Erokhin
04fddc7139
Discriminate header classes in member scope.
...
We made it because of non-stable name resolution when project is multi platform. For such projects in platform module we have two classifiers with the same name, but impl class or type alias should win!
2016-12-19 22:43:10 +03:00
Dmitry Jemerov
5f124e9781
Don't show "Kotlin not configured" notification for projects that have Kotlin common runtime in scope
...
#KT-15331 Fixed
2016-12-19 19:21:10 +01:00
Yan Zhulanow
568523b065
Kapt3: Set correct compiler options when the annotation processing classpath is empty (KT-15146). Disable annotation processing in Javac task a bit earlier
2016-12-19 21:18:17 +03:00
Yan Zhulanow
f8edf51c1b
Allopen, Noarg: Support transitive meta-annotations
2016-12-19 21:18:11 +03:00
Yan Zhulanow
82dbba838a
Allopen, minor: Add test for anonymous object
2016-12-19 21:18:06 +03:00
Dmitry Jemerov
bc22b67995
Index and locate .kotlin_metadata files in IDE
2016-12-19 17:40:13 +01:00
Ilya Gorbunov
2209631f1a
Add SinceKotlin to new coerceIn method.
2016-12-19 18:36:52 +03:00
Ilya Gorbunov
10f8e70322
Rename ClosedComparableRange to ClosedFloatingPointRange
2016-12-19 18:36:52 +03:00
Ilya Gorbunov
919c77b950
Minor: run configuration for binary compatibility tests, clean build
2016-12-19 18:36:52 +03:00
Alexey Sedunov
a84275b057
Minor: Rename "Default" platform to "Common"
2016-12-19 18:31:46 +03:00
Alexey Sedunov
332d1f6405
Multi-platform Projects: Enable multi-platform projects for platform modules which depend on common modules
2016-12-19 18:27:49 +03:00
Alexey Sedunov
df33455b95
Kotlin Facet: Detect module platform using Gradle plugin id/stdlib
...
artifact id (Gradle import)
2016-12-19 18:27:48 +03:00
Alexey Sedunov
eac0c9b2ed
Kotlin Facet: Add "Use project settings" option
2016-12-19 18:27:47 +03:00
Alexey Sedunov
4ed030d7c5
Kotlin Facet: Do not serialize default values of facet configuration
2016-12-19 18:27:46 +03:00
Mikhail Glukhikh
8f57869fc5
Line marker tests for header <----> impl
2016-12-19 17:39:16 +03:00
Mikhail Glukhikh
84ebca06bc
AbstractMultiHighlightingTest extracted (to provide both multi file / multi module tests)
2016-12-19 15:46:34 +03:00
Mikhail Glukhikh
a846e41b46
Cleanup: KotlinLineMarkerProvider
2016-12-19 15:46:27 +03:00
Mikhail Glukhikh
39ca78f584
Multi-platform navigation fix: from class to type alias & vice versa
2016-12-19 14:56:02 +03:00
Mikhail Glukhikh
b363d34fd7
MemberDescriptor ancestor extracted to ClassifierDescriptorWithTypeParameters
2016-12-19 14:55:56 +03:00
Mikhail Glukhikh
5947d49dee
Multi-platform fix: no more errors for top-level impl fun / val / var in IDE
2016-12-19 14:55:49 +03:00
Alexander Udalov
63cc5d872d
Minor, fix test data
2016-12-19 12:15:59 +03:00