Commit Graph

31782 Commits

Author SHA1 Message Date
Nikolay Krasko 1a1c10251a Make code fragments files non-physical with event system disabled (KT-12232)
Fix "File copy should be non-physical and non-event-system-enabled! Language=Language:
kotlin; file=JetFile: fragment.kt of class org.jetbrains.kotlin.psi.KtExpressionCodeFragment" assert.

Inspired by Java fragment files

 #KT-12232 Fixed
2016-05-12 17:24:54 +03:00
Nikolay Krasko 9c2ceca4b8 Revert "Additional simple test for variable initialize in secondary constructor"
This reverts commit 147f170f80.
2016-05-12 17:22:16 +03:00
Nikolay Krasko f015a27fd0 Revert "Make code fragments files non-physical with event system disabled"
This reverts commit d02b89a7a0.
2016-05-12 17:21:21 +03:00
Nikolay Krasko 147f170f80 Additional simple test for variable initialize in secondary constructor 2016-05-12 17:13:24 +03:00
Nikolay Krasko d02b89a7a0 Make code fragments files non-physical with event system disabled
As a side effect it will disable write checks for fragments files

This allows completion work without write action.
Inspired by Java fragment files
2016-05-12 17:13:24 +03:00
Alexey Sedunov df46a8c67a Spring Support: Implement bean references in @Qualifier annotations
#KT-12092 Fixed
2016-05-12 13:03:04 +03:00
Alexey Sedunov 4a65b1c65c Code Insight: Support file path references inside of Kotlin string literals
#KT-11704 Fixed
2016-05-12 13:03:02 +03:00
Nikolay Krasko 6a309bdb4e No more patched jflex 1.4.3 in idea repository. Download artifact from maven.
https://github.com/JetBrains/intellij-community/commit/02c7c658e87dc6f3c347e9b0d44ce275d2c31514
2016-05-12 10:15:30 +03:00
Nikolay Krasko 96ec8e04ef Make downloading idea sources optional 2016-05-12 10:14:19 +03:00
Yan Zhulanow 99b619497a Fix EA-81689 2016-05-11 21:37:16 +03:00
Alexey Tsvetkov af9f6d96bb Change version to 1.1-SNAPSHOT 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 60c5c8a2cc Fix Application leak in AbstractAnnotationProcessorBoxTest 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 9214798613 Increase daemon test memory limit again
It is still more strict than it was before (before each test build could grow < 2500 kb, now < 300 kb on average of 10 runs)
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 6f3ea01084 Refactoring: rename ClassBuilderMode entry LIGHT_CLASSES_WITH_METADATA->KAPT 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 10b9be9f51 Fix collecting source retention annotations
#KT-12187 fixed
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov cac49b6609 Add class stubs dir to stub generation task classpath 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov f2ca788ea3 Serialize error type to proto when generating stubs 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 8d189bae55 Refactoring: rename javaAptSourceDir->hackAnnotationDir 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov cb94936e51 Refactoring: rename AnnotatedElementDescriptor->AnnotatedElement 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 6dd388d0f0 Exclude compiled files when compiling incrementally 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov fb8ed25e99 Report compiled classes when generating kapt stubs 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 4b591d2220 Include metadata in light classes for kapt 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov f7a665d0d2 Fix incremental compilation with kapt generating stubs
Changes:
* map incremental property to compile kotlin after java task
* when generating stubs compile kotlin task should not remove or copy classfiles
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 853b15ee98 Add kapt incremental tests 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov fe6e69ff89 Update kapt annotations file incrementally 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov c21693b0d0 Serialize KotlinAnnotationProvider 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 33dc792bf9 Minor: extract constant 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 3ef21a941c Refactoring: make AnnotatedElementDescriptor hierarchy sealed 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 26781bc139 Pass reader as param 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov e0afb94628 Make fun local since it's bound to outer function semantics 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 3340731c71 Read annotations during construction of KotlinAnnotationsProvider
The rationale is to access kotlinClassesInternal and annotatedKotlinElementsInternal
in any order
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 69a8654e91 Minor: add const 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 28abc73f22 Pass reader in constructor to KotlinAnnotationProvider 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 12531c4a90 Make annotation collector tests more thorough 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov e84ae5117d Refactoring: move kapt tests to separate class 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 93117ed637 Prevent compile tasks from running when nothing changes
#KT-10932 fixed
2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 0bbd2f38dc Minor: use more recent version of gradle in test 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov fe43e1ae79 Minor: do not print output in assertion message 2016-05-11 20:41:48 +03:00
Alexey Tsvetkov 10396ecc84 Refactoring: extract properties for gradle task's properties access in plugin 2016-05-11 20:41:48 +03:00
Valentin Kipyatkov 0c367c6e08 Added missing test data 2016-05-11 19:52:31 +03:00
Mikhail Glukhikh be2b37db5e Unused symbol inspection: properties declared in primary constructor are now checked on 'Used' annotations #KT-11120 Fixed 2016-05-11 19:08:42 +03:00
Mikhail Glukhikh a098977c54 Do not try to make object's containing class abstract #KT-11466 Fixed 2016-05-11 19:08:37 +03:00
Mikhael Bogdanov af2cf715be Disabled dexInProcess and incremental compilation in test android module, explicitly set Xmx for dex process cause of teamcity memory allocation fails 2016-05-11 18:07:27 +03:00
Mikhael Bogdanov 1d2a83e182 Added support for 'JVM.INHERIT_MULTIFILE_PARTS' flag in android tests 2016-05-11 18:07:26 +03:00
Mikhael Bogdanov ed60cf8c55 Added support for reflection tests on android 2016-05-11 18:07:26 +03:00
Mikhael Bogdanov d6a64af929 Fix for KT-12125: Wrong increment/decrement on Byte/Char/Short.MAX_VALUE/MIN_VALUE
#KT-12125 Fixed
2016-05-11 18:07:25 +03:00
Ilya Gorbunov 8425304866 Advance snapshot version to 1.1-SNAPSHOT 2016-05-11 17:28:38 +03:00
Alexander Udalov 6b1f3e679f Update ChangeLog for 1.0.2 2016-05-11 12:21:32 +03:00
Alexey Sedunov 44f565e600 Spring Support: Support "Autowired members defined in invalid Spring bean" inspection on Kotlin declarations
#KT-12079 Fixed
2016-05-10 19:41:35 +03:00
Alexey Sedunov d4aa179336 Change Signature: Do not force substitution of error types
#EA-81021 Fixed
2016-05-10 19:41:33 +03:00