Vyacheslav Gerasimov
ef159a4fc9
Minor: Fix typo in build error message
2019-03-20 21:17:27 +03:00
Vyacheslav Gerasimov
9f64e0fa69
Build: Remove intellijEnforceCommunitySdk flag, use currentIde instead
...
Setup ultimate repositories only when currentIde is Intellij
2019-03-20 21:17:27 +03:00
Yan Zhulanow
683c2b0434
Don't use experimental features of Android Extensions in 'testAndroidDaggerIC()'
...
AndroidDaggerProject uses the @Parcelize functionality that was experimental until 1.3.30. Now it is not.
2019-03-20 20:52:23 +03:00
Yan Zhulanow
44f752d1c5
Always attach kotlin-android-extensions-runtime library
...
@Parcelize is now enabled by default, and it requires the runtime library.
Enabling it for all clients is a temporary solution.
In future, the runtime library will be split to two separate artifacts.
2019-03-20 20:52:23 +03:00
Jake Wharton
8e23555660
Make parcelize a non-experimental feature
...
It was already being added to the feature list by default, but was only enabled when isExperimental was true.
2019-03-20 20:52:23 +03:00
Yan Zhulanow
c40cc76ad3
Minor: Fix error message, add missing article
2019-03-20 20:52:23 +03:00
Yan Zhulanow
c7678a27e5
Kapt: Fix star indentation in stub Javadoc (KT-30163)
2019-03-20 20:52:23 +03:00
Yan Zhulanow
e4d758b614
Kapt: Support default constant values for constructor parameters
2019-03-20 20:52:23 +03:00
Yan Zhulanow
10e53a2e73
Kapt: Move out the 'final' fallback for initial field values
2019-03-20 20:52:22 +03:00
Yan Zhulanow
cce2b472bf
Kapt: Generate constant value initializers for mutable properties (KT-30164)
2019-03-20 20:52:22 +03:00
Yan Zhulanow
ce13982cfc
Kapt: Use constant value references where possible in property initializers
2019-03-20 20:52:22 +03:00
Yan Zhulanow
66754e62da
Kapt: Always use raw types for annotation parameter types (KT-30346)
2019-03-20 20:52:22 +03:00
Yan Zhulanow
90e84aa15d
Remove isAtBreakpoint checks as it's not valid in all cases
...
For example, when we stopped at a breakpoint and then did a 'step over' action, we aren't at that breakpoint any more.
However, we still can evaluate things.
2019-03-20 20:52:22 +03:00
Yan Zhulanow
bbdeb3efac
Avoid using 'loadClass()' as it doesn't cache the results
2019-03-20 20:52:22 +03:00
Yan Zhulanow
e79ee1ba8e
Use caching 'findClass()' instead of raw 'Class.forName()' call in async stack trace provider (KT-30268)
2019-03-20 20:52:22 +03:00
Yan Zhulanow
b2a47027fb
Move eval4j to idea
2019-03-20 20:52:22 +03:00
Yan Zhulanow
65da7ba971
Add the whole content of the Apache 2.0 license to the Kotlin repo
2019-03-20 20:52:21 +03:00
Yan Zhulanow
6d90e850ff
Refactoring: Incapsulate method calls into ExecutionContext
2019-03-20 20:52:21 +03:00
Yan Zhulanow
5d156c2edb
Debugger: Fix indentation in code fragments
2019-03-20 20:52:21 +03:00
Yan Zhulanow
a1e5ce2c8b
Don't activate Kotlin async stack trace provider in Java sources (KT-30318)
2019-03-20 20:52:21 +03:00
Yan Zhulanow
754a7bc554
Code fragment analysis: analyze parents if there's no sensible scope for the default element (KT-29179)
2019-03-20 20:52:21 +03:00
Yan Zhulanow
97f94700b9
Don't file an exception if we failed to calculate the anonymous class name
2019-03-20 20:52:21 +03:00
Yan Zhulanow
fd3fab5bcc
Minor: Fix formatting in DebuggerClassNameProvider
2019-03-20 20:52:21 +03:00
Yan Zhulanow
d0a61fa7e2
Fix breakpoint handling in Kotlin scripts (KT-29234)
2019-03-20 20:52:20 +03:00
Yan Zhulanow
4870b2e6ba
Fix asmTypeForAnonymousClassOrNull(): it should not throw an exception if a class name isn't found
2019-03-20 20:52:20 +03:00
Yan Zhulanow
3f92451fde
Explicitly check for the callable class availability
...
'@NotNull' annotation generates a not-null assertion that caused exceptions to throw from 'asmTypeForAnonymousClassOrNull()'.
2019-03-20 20:52:20 +03:00
Yan Zhulanow
77c2a5c87c
Debugger: Fix missing NOP in empty 'when' header (KT-29189)
2019-03-20 20:52:20 +03:00
Yan Zhulanow
ba0989801a
Debugger: Show captured outer this in lambdas (Variables view) (KT-30220)
2019-03-20 20:52:20 +03:00
Yan Zhulanow
723f8df23e
Hide '$delegate' variables in Kotlin variables mode
2019-03-20 20:52:20 +03:00
Yan Zhulanow
570421b831
Fix lambda evaluation on JDK 9-11 (KT-29423)
2019-03-20 20:52:20 +03:00
Sergey Igushkin
af7c35b5c7
Revert profile_settings.xml accidentally deleted in ffdd43b8
2019-03-20 19:56:50 +03:00
Jake Wharton
6ee987fa2e
Add intrinsics for compile-time computing trimMargin/trimIndent
...
These only apply when the receiver can be resolved to a constant and the margin prefix, if specified, is also a constant.
2019-03-20 17:25:29 +01:00
Alexey Tsvetkov
2ec6ab92b5
Clear outputs before compiling with in-process/out-of-process execution mode
...
Issue #KT-30492 Fixed
2019-03-20 17:11:37 +03:00
Ivan Gavrilovic
b2ad82b7d2
Incremental KAPT - invalidate obsolete types
...
Once set of dirty symbols is computed, filter these types
when they are requested from the JavaFileManager. This is accomplished
by tracking all declared types in the sources and generated sources.
It is not necessary track types in generated class files, as these will
be removed before the APs are incrementally run.
Motivation: APs (e.g. Dagger) may use Elements.getTypeElement(String)
to determine if type is already present, and if it is, they will not
generate it. Therefore, whenever generated sources is invalidated, types
it defines need to be filtered in the JavaFileManager.
Issue is https://youtrack.jetbrains.com/issue/KT-23880
2019-03-20 16:43:13 +03:00
Ivan Gavrilovic
2f3d234516
Incremental KAPT - handle inherited annotations
...
Handle annotations with @Inherited. This is important for
the aggregating APs, as the current implementation passes all sources
annotated with claimed aggregating annotations.
Issue is https://youtrack.jetbrains.com/issue/KT-23880
2019-03-20 16:43:10 +03:00
Ivan Gavrilovic
9f14daa682
Incremental annotation processing with KAPT
...
Add support for incremental annotation processors in KAPT. These
processors conform to https://docs.gradle.org/current/userguide/java_plugin.html#sec:incremental_annotation_processing
specification.
Support is provided by using javac compiler APIs and
recording the source file structure. At runtime, processors
are instrumented with custom Filer that is used to keep track of generated
files. In order to support classpath changes, stub generation task is
used to generated a list of changed FQCNs, and this is simply used by KAPT.
Both worker and non-worker mode are supported.
#KT-23880
2019-03-20 16:43:02 +03:00
Dmitry Gridin
600a955a51
Fix false positive "Unused import" for type alias
...
#KT-29977 Fixed
2019-03-20 20:28:22 +07:00
Dmitry Gridin
7e4b3ceede
Minor: refactoring KotlinUnusedImportInspection
2019-03-20 20:28:22 +07:00
Toshiaki Kameyama
4e3d13fcee
Change to star projection: do not suggest in arguments or receiver
...
#KT-23259 Fixed
2019-03-20 20:12:06 +07:00
Nikolay Krasko
73396b5018
Log connection problems during fetching release date
2019-03-20 14:23:43 +03:00
Nikolay Krasko
9a5b902766
Use special request for fetching plugin release date in exception reporter
2019-03-20 14:23:43 +03:00
Nikolay Krasko
a0d015dd4d
Minor: document shortening and smart enter use resolve in write action
2019-03-20 14:23:42 +03:00
Nikolay Krasko
1060a24221
Don't allow to resolve anything within write action
2019-03-20 14:23:42 +03:00
Dmitry Petrov
7e4688da93
psi2ir: add test for reference to var with non-accessible setter
2019-03-20 11:57:57 +03:00
Dmitry Petrov
21dbe2e7e7
IR: symbolName mangling for IrTypeParameter
...
(original author: Alexander Gorshenev)
2019-03-20 11:57:57 +03:00
Roman Artemev
206e5d30d9
Regenerate protobuf
2019-03-20 11:57:57 +03:00
Dmitry Petrov
c86ef5da53
psi2ir: update testData for property references
2019-03-20 11:57:57 +03:00
romanart
5b5f3a7468
[IR] Fix classes TypeParameter [de]serialization
2019-03-20 11:57:57 +03:00
Dmitry Petrov
9f48695dde
psi2ir: no unbound field symbols in delegated property references
...
#KT-30323 Fixed
2019-03-20 11:57:57 +03:00
Dmitry Petrov
15918fc475
IR: deprecations
2019-03-20 11:57:57 +03:00