Commit Graph

46191 Commits

Author SHA1 Message Date
Mikhail Glukhikh 8d74ff4799 Fix Java inspection performance tests 2018-05-24 15:13:19 +03:00
Mikhail Glukhikh 18c59578be Light class performance test: rename test file 2018-05-24 15:13:18 +03:00
Mikhail Glukhikh 3b6d610e29 Light class performance test: access field & method types
So #KT-24085 Fixed
2018-05-24 15:13:18 +03:00
Mikhail Glukhikh 75eeb32970 Light class performance test: build also light nested classes
So #KT-24085 In Progress
2018-05-24 15:13:18 +03:00
Mikhail Glukhikh bb4cf08d0b Light class performance test: evaluate all supertypes / methods / fields
So #KT-24085 In Progress
2018-05-24 15:13:18 +03:00
Mikhail Glukhikh 1861e0a21d Introduce performance test for light classes building (top-level)
So #KT-24085 In Progress
2018-05-24 15:13:18 +03:00
Natalia Selezneva 98fe8eaa42 Minor: add test that output at scratch line with spaces at the beginning is aligned properly 2018-05-24 15:07:37 +03:00
Natalia Selezneva db63877690 Scratch: take into account only lines with expressions calculating inlay insert offset 2018-05-24 15:07:37 +03:00
Natalia Selezneva aa7c13e30b Run scratch if there are some compilation error during make 2018-05-24 15:07:37 +03:00
Natalia Selezneva 5a7b58c615 Substring long scratch output with new lines
^KT-24016 Fixed
2018-05-24 15:07:37 +03:00
Natalia Selezneva 94bb19c765 Provide line info for scratch output in scratch toolwindow
^KT-24016
2018-05-24 15:07:37 +03:00
Natalia Selezneva a505a948d2 Scratch tests: add check for toolwindow output 2018-05-24 15:07:37 +03:00
Natalia Selezneva bce0a77a94 Scratch: fix duplicating of errors in scratch output toolwindow 2018-05-24 15:07:37 +03:00
Natalia Selezneva e3b6fad2cd Scratch: test alignment of inlays 2018-05-24 15:07:37 +03:00
Natalia Selezneva 5da0252651 Minor: rename file and rearrange classes 2018-05-24 15:07:37 +03:00
Natalia Selezneva 420da0d213 Introduce ToolWindowScratchOutputHandler 2018-05-24 15:07:37 +03:00
Natalia Selezneva aa1e604923 Refactoring: move ScratchToolWindowFactory to scratch.output package 2018-05-24 15:07:37 +03:00
Natalia Selezneva 614fa9d0c7 Refactoring: move ScratchFileRenderer to separate file 2018-05-24 15:07:37 +03:00
Natalia Selezneva afa6110e6a Minor: replace assert with user-friendly error 2018-05-24 15:07:37 +03:00
Natalia Selezneva 75ad78460f Setting for auto-reloading script dependencies isn't loaded from xml on project reopening 2018-05-24 15:07:37 +03:00
Natalia Selezneva 54f9359195 Minor: fixes after review 2018-05-24 15:07:37 +03:00
Sergey Rostov 098e51d104 jps: support dev kit module types (and all other ModuleBasedBuildTargetType). fix brunch 172 2018-05-24 14:59:46 +03:00
Alexander Udalov bf3419c3bd Introduce OptionalExpectation for annotations missing on some platforms
This commits adds a new annotation OptionalExpectation to the standard
library, which is experimental. To enable its usage, either pass
'-Xuse-experimental=kotlin.ExperimentalMultiplatform' as a compiler
argument, or '-Xuse-experimental=kotlin.Experimental' and also annotate
each usage with `@UseExperimental(ExperimentalMultiplatform::class)`

 #KT-18882 Fixed
2018-05-24 13:14:51 +02:00
Sergey Rostov ec5110e1f4 jps: support dev kit module types (and all other ModuleBasedBuildTargetType)
#KT-24500 fixed
2018-05-24 11:12:01 +03:00
Mikhail Glukhikh 865f94eb18 Disable "make module experimental" fix on non-JPS modules
Related to KT-24243
2018-05-24 10:50:28 +03:00
Mikhail Glukhikh d7bb8a7a21 Do not suggest -Xuse...=kotlin.Experimental in experimental world 2018-05-24 10:50:28 +03:00
Mikhail Glukhikh f2989ee3a6 Experimental fixes: introduce experimental enabling #KT-24243 Fixed 2018-05-24 10:50:28 +03:00
Mikhail Glukhikh c77c8d872c Experimental fixes: introduce "add -Xuse-experimental" (KT-22760) 2018-05-24 10:50:27 +03:00
Natalia Selezneva 30c62bccb2 Refactoring: do not store scriptModuleInfo inside ScriptDependenciesInfo
Cache for ScriptDependenciesInfo.ForFile is dropped because there is a cache for ScriptModuleInfo, so the facade for dependencies shouldn't be created too often
Cache for ScriptDependenciesInfo.ForProject is stored in a field
2018-05-24 08:47:32 +03:00
Natalia Selezneva 2b322ecf9c Do not store external dependencies in ScriptModuleInfo
There is a cache from ScriptModuleInfo to ScriptDependenciesInfo.
In case when only script dependencies are changed we won't recreate the facade for them and will obtain external dependencies for ScriptModuleInfo stored in ScriptDependenciesInfo. So we cannot store external dependencies inside ScriptModuleInfo. The same problem is with relatedModuleSourceInfo.
2018-05-24 08:47:32 +03:00
Natalia Selezneva ab743ef759 Scripts: fix NPE during script dependencies update
^KT-24527 Fixed
2018-05-24 08:47:32 +03:00
Natalia Selezneva f0a7642e1d Optimize ScriptDependenciesUpdater to find scriptDefinition only for files with KotlinFileType 2018-05-24 08:47:32 +03:00
Natalia Selezneva bb04998159 Scripts: remove loaders when any result was received
^KT-24470 Fixed
2018-05-24 08:47:32 +03:00
Alexey Sedunov 44e7070118 Configuration: Use 'plugins' block in generated/modified Gradle scripts
Follow-up for 172/173/AS3.1/AS3.2 bunches
2018-05-24 02:54:01 +03:00
Alexey Sedunov efc369dbe4 Misc: KtParsingTestCase fixes for 172/173/AS3.1 bunches 2018-05-24 02:54:00 +03:00
Yan Zhulanow ece6141891 Pill: Fix module-related path rendering 2018-05-24 01:06:30 +03:00
Yan Zhulanow 0b0089711a Android Extensions: Avoid duplicating variants in compiler plugin options 2018-05-24 01:01:52 +03:00
Yan Zhulanow 015d7f3300 Kapt: Do not retain references to Kotlin compiler classes in customized Javac components
This should fix potential memory leakages.
2018-05-24 01:01:52 +03:00
Yan Zhulanow 99ecedc32e Kapt: Ensure there isn't duplicating entries in the processor loading classpath
(cherry picked from commit 1354a0d)
2018-05-24 01:01:52 +03:00
Yan Zhulanow aa8c266940 Pill: Add kotlin-scripting-gradle and kotlin-gradle-plugin-integration-tests to JPS model (in 'full' variant) 2018-05-24 01:01:52 +03:00
Yan Zhulanow b6d59da8a8 Kapt3: Avoid normal compilation in case if no apClasspath entries are passed (#KT-24538) 2018-05-24 01:01:52 +03:00
Yan Zhulanow dd40b3a15c Kapt: Remove obsolete kapt1-related tests 2018-05-24 01:01:51 +03:00
Yan Zhulanow 6e362f6734 Kapt: Remove kapt1 from Kotlin compiler 2018-05-24 01:01:51 +03:00
Yan Zhulanow 662b79780d Kapt: Remove kapt1 support from Gradle and incremental compilation 2018-05-24 01:01:51 +03:00
Yan Zhulanow 58643ea99d Kapt: Remove annotation processor wrappers for kapt1 (it's obsolete now) 2018-05-24 01:01:51 +03:00
Mikhail Glukhikh a76bb80e4d Experimental fixes: additional tests, handle local declarations 2018-05-23 19:06:55 +03:00
Mikhail Glukhikh 51fba03253 Experimental fixes: introduce "Add @UseExperimental" #KT-22760 Fixed 2018-05-23 19:00:51 +03:00
Mikhail Glukhikh f404d6c97a Experimental fixes: introduce "add annotation" (KT-22760) 2018-05-23 18:59:22 +03:00
Sergey Igushkin 721d9df4e0 (minor) Fix testApplyWithFeaturePlugin 2018-05-23 18:41:10 +03:00
Sergey Igushkin 571905824d Add AP option providers of Android Gradle plugin as @Nested to Kapt
Also remove these option providers from the javac task compiler argument
providers so as to avoid output intersections of javac vs kapt.

The options generated by the providers are added to the Kapt subplugin
options as well in order to be passed to Kapt. Since these options
are a list, not a map, pass them without name (Kapt should decode them
into plain arguments). Remove the '-A' prefix as it is there for
command line annotation processor options, but we don't need it, it
is added by Kapt internally.

Issue #KT-23964 Fixed
Issue #KT-24420 Fixed
2018-05-23 18:41:10 +03:00