Yan Zhulanow
5fc18755ca
Pill: Exclude 'build' dirs from excluded projects
2018-05-15 16:29:46 +03:00
Yan Zhulanow
ba5836d666
Pill: Introduce pill{} extension to set extended Pill configuration
...
Also introduce the flavor concept which allows to specify what part of Kotlin project should be imported.
2018-05-15 16:29:45 +03:00
Dmitry Petrov
a57869993d
Fix asserted cast in IrBuilderWithScope.irReturn
2018-05-15 15:43:56 +03:00
Dmitry Petrov
21dfee4565
psi2ir: inferred type for 'when' is Nothing only if it's exhaustive
...
TODO: fix inference bug
2018-05-15 15:43:56 +03:00
Dmitry Savvinov
70622ff668
Introduce -Xoutput-imports mode of JVM compiler
...
In this mode, instead of analyzing files and generating bytecode for
them, compiler just saves imports of each file in JSON map of form
'<path to file> -> [<import1>, <import2>, ...]'
It is needed for some external tools, notably for Google3 toolchain.
2018-05-15 15:36:14 +03:00
Mikhail Glukhikh
bec1ae3d94
Reformat: replace with operator assignment
2018-05-15 13:28:08 +03:00
Mon_chi
c49eaf2604
Fix hint text for replace with operator assignment #KT-23559 Fixed
2018-05-15 13:26:23 +03:00
Mikhail Glukhikh
8c3e787584
Convert KFunction to Function in type mismatch fixes #KT-16770 Fixed
2018-05-15 13:22:48 +03:00
Mikhail Glukhikh
25609f1159
Create kotlin file: create abstract class if its name contains Abstract
...
So #KT-21844 Fixed
2018-05-15 11:30:32 +03:00
Mikhail Glukhikh
1f8e24fa82
Reformat: NewKotlinFileAction
2018-05-15 11:30:30 +03:00
Mikhail Glukhikh
c61b5671c9
Fix testSuspend (protect it from flaky error about disabled coroutines)
2018-05-15 11:30:29 +03:00
Ilya Chernikov
0026a138d3
Add changelog from 1.2.40 - 1.2.41
2018-05-14 21:48:40 +02:00
Ilya Gorbunov
1d0d801744
Minor merge cleanup: remove unused variable
2018-05-14 18:24:31 +03:00
Ilya Gorbunov
864f0fecf6
KT-24353 Include kotlin-test-junit5 into coreLibraries, use JDK_18 to build and test it
2018-05-14 17:37:06 +03:00
evgzakharov
634279621d
KT-24353 change junit5 version to minimal possible (5.2.0 -> 5.0.0)
...
However use the latest version of junit engine for running tests.
2018-05-14 17:36:34 +03:00
evgzakharov
84ee97cae9
KT-24353 add support for junit 5 in kotlin.test
2018-05-14 17:36:34 +03:00
Simon Ogorodnik
6967028fdb
KT-24146: Fix inserts imports automatically
...
Even if "add unambiguous imports on the fly" is off
#KT-24146 fixed
2018-05-14 17:28:16 +03:00
Denis Zharkov
9de174959e
Support androidx under-migration-like nullability annotations
...
They are hardcoded to avoid having dependency from android.jar on
our annotations' jar with UnderMigration.
Even while it could be a compile-only dependency we need to make sure
that annotated types are read properly without RecentlyNonNull/RecentlyNullable
in the classpath
#KT-24278 Fixed
2018-05-14 17:16:15 +03:00
Denis Zharkov
e0f09e5571
Minor. Reformat signature enhancement parts
2018-05-14 17:16:15 +03:00
Igor Chevdar
6daabca90b
Fixed forgotten receivers during copying
2018-05-14 16:01:13 +03:00
Natalia Selezneva
4ee41d502a
Scratch: report errors at the correct line
...
^KT-24364 Fixed
2018-05-14 15:55:44 +03:00
Natalia Selezneva
6427c79110
Trim last newline in scratch output with REPL
...
^KT-24362 Fixed
2018-05-14 15:55:39 +03:00
Natalia Selezneva
02fa8b5bab
Check for dumb mode before compiling scratch file
...
^KT-23560
2018-05-14 15:55:35 +03:00
Natalia Selezneva
57b24007ac
Log exceptions thrown during Run Scratch Action
2018-05-14 15:55:30 +03:00
Natalia Selezneva
5148a51ea2
Minor: reformat
2018-05-14 15:55:26 +03:00
Nicolay Mitropolsky
31b21a7bc8
182: compilation fix due to quickFixActionMarkers made nullble
2018-05-14 15:05:03 +03:00
Ilya Chernikov
b3219cb762
Implement lazy script definition and light discovery in cli plugin, ...
...
update appropriate parts of the scripting infrastructure
2018-05-14 11:13:44 +02:00
Dmitry Petrov
0feb50021c
IrClass.isInner
2018-05-14 10:37:27 +03:00
Natalia Selezneva
1e92dbf806
Fix tests: attach script reports in cli
2018-05-14 09:21:09 +03:00
Ilya Chernikov
f89d5e94c5
Fix build in 182 branch
2018-05-13 10:59:47 +02:00
Ilya Chernikov
c74924fb8c
Fix lz4 dependency...
...
after snappy was replaced by lz4 in the platform (see the previous commit
with related test for the more info)
2018-05-12 19:02:04 +02:00
Alexey Tsvetkov
38ffd6f85e
Add test for missing lz4 dependency
...
Adds Gradle test for the exception:
`java.lang.ClassNotFoundException: net.jpountz.lz4.LZ4Factory`
The exception breaks IC in Gradle. Gradle compiles non-incrementally as
a fallback strategy, so the build succeeds, but IC is not working.
IC uses persistent hash tables from Intellij as caches.
These tables's buffers are compressed when full.
Previously snappy was used for compression, but 181 platform switched to
LZ4, which was cut out by proguard.
The problem could only be reproduced with Gradle,
since in JPS plugin all caches are managed by JPS process,
which contains the necessary library.
To reproduce the compiler needs to be processed by proguard
(which always happens on TeamCity).
Many classes are needed to trigger the compression.
2018-05-12 19:02:04 +02:00
Vyacheslav Karpukhin
e329af0932
Excluded declarations for classes in CIDR plugin.xml
2018-05-11 19:43:21 +02:00
Zalim Bashorov
0ca6dbcb82
[JS IR BE] remove no longer needed descriptor based utils
2018-05-11 20:27:54 +03:00
Roman Artemev
c9b8aadfff
Update test data
2018-05-11 18:50:41 +03:00
Natalia Selezneva
4ee0f401c6
Fix master_172
...
Remove GradleScriptDefaultDependenciesProvider as unused
2018-05-11 18:46:54 +03:00
Mikhail Glukhikh
1012bdb577
Convert to primary constructor: minor enhancement (KT-19629)
2018-05-11 18:17:42 +03:00
Mikhail Glukhikh
67d2abbe5e
Reformat: Convert to primary constructor
2018-05-11 17:36:41 +03:00
Toshiaki Kameyama
a41064295b
"Convert to primary constructor": do not move init section down
...
So #KT-19629 Fixed
2018-05-11 17:36:40 +03:00
Mikhail Glukhikh
9a1253c5c7
Specify type explicitly: suggest also types from overridden
...
So #KT-22092 Fixed
2018-05-11 17:36:38 +03:00
Mikhail Glukhikh
bf15d22ef1
Reformat: SpecifyTypeExplicitlyIntention
2018-05-11 17:36:37 +03:00
Mikhail Glukhikh
13be7803bb
Introduce "redundant async" inspection #KT-24235 Fixed
2018-05-11 17:36:35 +03:00
Mikhail Glukhikh
365c13c38e
Extract AbstractCallChainChecker from SimplifiableCallChainInspection
2018-05-11 17:36:29 +03:00
Mikhail Glukhikh
9fa352e5c0
Reformat: simplifiable call chain inspection
2018-05-11 17:36:26 +03:00
Pavel V. Talanov
a584de8a7e
Prefer platform specific declarations when searching for library sources
...
Untested: test infrastructure needed
#KT-23223 Fixed
2018-05-11 16:25:16 +02:00
Pavel V. Talanov
f6b094781f
Mpp resolve: ignore module dependencies on libraries of other platforms
...
These are not read by the compiler
Untested: test infrastructure needed
#KT-20406 Fixed
2018-05-11 16:25:14 +02:00
Roman Artemev
24e477c378
Update test data
2018-05-11 17:14:30 +03:00
Roman Artemev
131fb642aa
Fix initializer lowering crash during deep copy
2018-05-11 17:14:30 +03:00
Toshiaki Kameyama
449943da01
"Merge with next when": made applicable when delimited by ';' or comment
...
So #KT-12042 Fixed
2018-05-11 16:37:36 +03:00
Toshiaki Kameyama
cdbd7a7c5a
Reformat MergeWhenIntention
2018-05-11 16:36:57 +03:00