Commit Graph

958 Commits

Author SHA1 Message Date
Alexander Udalov a315b73c91 Promote severity of configuration warnings to STRONG_WARNING
The reason is that these configuration problems may be the reason of
compilation errors, but they were hidden from the output because warnings are
not reported when there's at least one error

Original commit: e9a737b85a
2017-01-30 16:01:29 +03:00
Alexander Udalov 6594285693 Introduce CompilerMessageSeverity.STRONG_WARNING
This is a severity for mandatory warnings, i.e. those which should be reported
in any case, even if there are compilation errors

Original commit: 7ac96163ac
2017-01-30 16:01:27 +03:00
Alexander Udalov 0ac040e130 JS: drop "-kjsm" flag, merge logic with "-meta-info"
#KT-16049 Fixed

Original commit: e5680565b3
2017-01-30 11:31:03 +03:00
Alexander Udalov 98b25d0738 JS: minor, drop obsolete VFS_PROTOCOL
Original commit: 17b0b7704f
2017-01-30 11:31:02 +03:00
Ilya Chernikov ceba0661bc Move daemon session flag files to daemon discovery dir by default + minor fixes:
- Move flag files from the temp dir, because right now JPS cleans temp dir on each build start. Should fix KT-15707, also may affect KT-15562.
- change compiler runner to allow the fix above
- Fix flag file name filtering
- Fix ifAlive handling on the new compile method in the daemon.

Original commit: 7c0cdf90cf
2017-01-28 15:36:06 +01:00
Dmitry Jemerov 77bfa685dd Import new Gradle coroutines DSL setting into Kotlin facet
Original commit: da6640971f
2017-01-28 13:14:39 +01:00
Denis Zharkov 78391cd97c Move coroutine-related runtime parts to kotlin.coroutines.experimental package
#KT-15975 Fixed

Original commit: 8fa8ba7055
2017-01-27 23:24:13 +03:00
Alexey Sedunov 74bd171933 Misc: Reverted e2fff37ccc 'Copy compiler arguments from iml even if "Use project settings" checkbox is checked' as it's rendered obsolete due to "Use project settings" being turned off by default in Gradle/Maven projects
Original commit: deb9258994
2017-01-26 18:06:19 +03:00
Alexey Tsvetkov 9f8ba45853 Rebuild all kotlin files when EAP flag is changed
Original commit: b9dbe69232
2017-01-26 13:38:52 +03:00
Alexey Tsvetkov 84691965cb Save JvmBuildMetaInfo to file after build
Original commit: 4a63e47aa0
2017-01-26 13:38:52 +03:00
Ilya Chernikov 718b0c228e Update daemon client with wrappers for basic compiler API
Other changes to extract results for compiler, tests.

Original commit: ec7e8873f4
2017-01-25 15:29:15 +01:00
Alexey Sedunov b7f15b7777 JPS: Use facet configuration to determine if module should be compiled to JS
Original commit: 57c27299dd
2017-01-23 15:16:12 +03:00
Alexey Sedunov 19d76a9e92 Kotlin Facet: Use project settings by default
#KT-15624 Fixed

Original commit: fc9b001ccd
2017-01-23 15:16:09 +03:00
Alexey Sedunov 6f8204b70e Kotlin Facet: Annotate CompilerSettings properties with @JvmField to make them available for copyBean()
#KT-15621 Fixed
 #KT-15623 Fixed

Original commit: b35eba0621
2017-01-23 15:16:08 +03:00
Ilya Gorbunov 40e1c2cdce Add kotlin.comparisons package to default imports.
Original commit: 3ec48ab244
2017-01-19 18:21:14 +03:00
Zalim Bashorov 86d3366b8c KJS: move println to kotlin.io; import kotlin.io by default in Default platform
Original commit: 6ea6e4ab98
2017-01-18 14:25:36 +03:00
Mikhael Bogdanov 668b436867 Propagate 'CompilerConfiguration' to frontend checkers
Original commit: 7a27a9d51f
2017-01-18 10:23:40 +01:00
Alexey Tsvetkov b841544f95 Pass compiler args from facets when compiling in fallback mode from JPS
Original commit: 58fd2530d2
2017-01-17 19:18:18 +03:00
Denis Zharkov 411745f260 Write kotlin metadata on class-files for coroutine state machines
Otherwise it breaks JPS assumptions, that leads to exceptions like:
Error:Kotlin: [Internal Error] java.lang.AssertionError: Couldn't load KotlinClass from /Users/jetbrains/IdeaProjects/KotlinPlaygroundBeta11/out/production/KotlinPlaygroundBeta11/Counter$both$1.class; it may happen because class doesn't have valid Kotlin annotations
    at org.jetbrains.kotlin.build.GeneratedJvmClass.<init>(generatedFiles.kt:36)
    at org.jetbrains.kotlin.jps.build.KotlinBuilder.getGeneratedFiles(KotlinBuilder.kt:469)
    at org.jetbrains.kotlin.jps.build.KotlinBuilder.doBuild(KotlinBuilder.kt:241)
    at org.jetbrains.kotlin.jps.build.KotlinBuilder.build(KotlinBuilder.kt:140)
...

Original commit: 9f217de10b
2017-01-16 17:53:15 +03:00
Yan Zhulanow e2fff37ccc Copy compiler arguments from iml even if "Use project settings" checkbox is checked. This is deadly needed for the compiler plugins no-arg and all-open, assuming that the default state of the checkbox is "on". (KT-15686, KT-15686).
This is a temporary fix, and it should be reverted when "Use project settings" will be disabled by default in modules imported from external build tools (Maven, Gradle).

Original commit: 1fb90ac0fd
2017-01-15 22:11:11 +09:00
Denis Zharkov f2be1f776d Minor. Fix tests after CoroutineContext introduction
Original commit: c7f76d7ec8
2017-01-14 15:13:36 +03:00
Denis Zharkov 0088c2e646 Move coroutine intrinsics to kotlin.coroutine.intrinsics package
Also rename val SUSPENDED to SUSPENDED_MARKER

 #KT-15698 Fixed

Original commit: 2cb9d3a8ad
2017-01-14 13:24:53 +03:00
Alexey Tsvetkov 96e5b54466 Fix handling OUTPUT message from daemon in JPS client
Original commit: e0fa11b0c1
2017-01-13 22:17:41 +03:00
Mikhael Bogdanov ae18166ef2 Revert ' Temporary remove JVM_1_8 target from facet settings'
Original commit: b6bf53f96f
2017-01-13 13:52:54 +01:00
Alexey Tsvetkov 12d0207bcc Fix the build
Original commit: bdae0b5efb
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov 31b83ed93d Minor: move CompilerMode
Original commit: a3415d8d0e
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov cf3a2bf787 Minor: introduce EXCEPTION report category
Original commit: 072edf4b5a
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov 9594031126 Refactor messages sending
Original commit: 16352ff2e5
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov 8571c2086e Move CompilerMode and TargetPlatform to CompilationOptions
Original commit: e44cc43ada
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov bbfaf35bff Rename AdditionalCompilerArguments->CompilationOptions
Original commit: c5a5463f50
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov acea47487a Remove operations tracer from compile() interface
Original commit: bf50a23221
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov 6c3fdf19fc Refactor JPS daemon client
Original commit: 99c72b6dff
2017-01-13 15:08:12 +03:00
Alexey Tsvetkov 07b11431a9 Make ICReporter interface
Original commit: d19a92bab5
2017-01-13 15:08:12 +03:00
Mikhail Zarechenskiy e389963e21 Update year in license and regenerate tests
Original commit: 6cccad9647
2017-01-10 12:01:17 +03:00
Alexey Tsvetkov 4d5c36fbd6 Fix getting daemon connection in JPS
Original commit: e9e1b3fea1
2016-12-20 14:46:23 +03:00
Alexey Tsvetkov b471ed1bba Run kapt with daemon
Original commit: 69d1ee7b11
2016-12-19 22:55:26 +03:00
Alexey Tsvetkov ee9621ab2a Refactoring: pass MessageCollector, OutputItemsCollector in CompilerEnvironment
Original commit: 9654607f42
2016-12-19 22:55:20 +03:00
Alexey Tsvetkov 5f0b827f0c Rename: IncReporter->ICReporter
Original commit: fdd3bc31f1
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov 1cc23bc14c Remove source annotations removing (not needed with KAPT3)
Original commit: 4fdca24db4
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov df2ad5c856 Refactoring: extract JPS specific code from compiler-runner
Original commit: 0be4299c8a
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov 3c97d0650a Introduce compiler-runner module
Original commit: 896d81143c
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov 1537f6cb3c Convert CompilerEnvironment to Kotlin: actual conversion
Original commit: e3550c5ea2
2016-12-19 22:46:12 +03:00
Alexey Tsvetkov 9879cb49d9 Convert CompilerEnvironment to Kotlin: rename file
Original commit: f98dde4543
2016-12-19 22:46:12 +03:00
Alexey Sedunov 31ea161c80 Minor: Rename "Default" platform to "Common"
Original commit: a84275b057
2016-12-19 18:31:46 +03:00
Alexey Sedunov cfe9f0d579 Multi-platform Projects: Enable multi-platform projects for platform modules which depend on common modules
Original commit: 332d1f6405
2016-12-19 18:27:49 +03:00
Alexey Sedunov e48af8ca1a Kotlin Facet: Add "Use project settings" option
Original commit: eac0c9b2ed
2016-12-19 18:27:47 +03:00
Stanislav Erokhin a4eb3ccd9d Fixed testdata.
Original commit: d7566d84d0
2016-12-16 02:01:12 +03:00
Stanislav Erokhin 45c849b8ca Global rename in test data for coroutines
(cherry picked from commit 132f97b)

Original commit: b527a4d158
2016-12-15 23:58:26 +03:00
Mikhail Zarechenskiy 343c1c5dee Import kotlin.coroutines property from gradle to facet
Original commit: 2ff04f2bc5
2016-12-15 23:58:17 +03:00
Mikhail Zarechenskiy eb76293fc7 Adapt facet, map coroutine settings on three keys
Original commit: 091756b221
2016-12-15 23:58:09 +03:00