Natalia Selezneva
da86ef8454
Fix tests for long command line: create folder instead of file
...
Compiler doesn't allow files as classpath roots
2019-07-01 16:41:56 +03:00
Natalia Selezneva
30222582f4
Scratch tests: print test output at onFinish to avoid multiple calls of invokeLater
...
Multiple calls of invokeLater significantly affects test speed
2019-07-01 16:41:56 +03:00
Natalia Selezneva
85f07927c9
Minor: check output with errors in scratch tests
2019-07-01 16:41:55 +03:00
Natalia Selezneva
784cc17d21
Do not use deprecated UIUtil.invokeLaterIfNeeded. Use TransactionGuard instead
2019-07-01 16:41:55 +03:00
Natalia Selezneva
63246f57d2
Scripts: drop sdk caches on project root change event
...
Otherwise old invalid roots may be saved
2019-07-01 16:41:55 +03:00
Natalia Selezneva
d981135c4b
Scratch: finish execution if no new lines was executed
...
^KT-32062
2019-07-01 16:41:55 +03:00
Leonid Startsev
7ef9fb5511
Export deserialization constructor from JS module
...
Fixes https://github.com/Kotlin/kotlinx.serialization/issues/443
2019-07-01 14:56:10 +03:00
Mark Punzalan
969478481e
Move extension receiver to value parameters for static functions created
...
during InlineClassLowering phase.
This was the only place where both dispatch and extension receivers were
NOT moved to value parameters, which meant that the receivers were not
following the conventional ordering.
Merged createStaticBodilessMethod with createStaticFunctionWithReceivers
and the latter was moved to backend/common/ir/IrUtils.kt.
2019-07-01 13:24:08 +02:00
Mark Punzalan
1abdf0561a
Generate synthetic functions for local functions with default values, by
...
re-ordering the lowering phases.
The changes in InterfaceLowering are necessary so that IrElements that
target the removed functions are re-targeted to the new functions in
DefaultImpls. This affects local functions in interface functions since
now LocalDeclarationsLowering comes before InterfaceLowering.
2019-07-01 13:24:08 +02:00
Vyacheslav Gerasimov
d2f1852c5e
Build: Upgrade gradle to 5.4.1
2019-07-01 14:14:55 +03:00
Alexey Tsvetkov
ffa191d91d
Fix filling Main-Class attribute in manifest file of output jar
...
Before 5b7cee6221 JVM CLI compiler
was calling `KotlinToJVMBytecodeCompiler.compileBunchOfSources`.
`compileBunchOfSources` detected possible main classes,
and filled the Main-Class attribute in output jar
if if there was only one candidate.
After the change JVM CLI began calling
`KotlinToJVMBytecodeCompiler.compileModules`, which was not searching for a main class.
This change adds searching for main classes to `compileModules`.
We search for a main class only when one module is compiled,
and an output is written a jar file (so the change only affects JVM CLI compilation).
#KT-32272 Fixed
2019-07-01 13:57:04 +03:00
Mikhail Zarechenskiy
515e666733
[NI] Fix exception on incomplete try/catch block
...
There was an inconsistency on creating PSI call and corresponding
descriptor. See variable `catchBlocks` from visitor, it's created
only if PSI elements are not null, but for descriptor parameters
there wasn't such check
#KT-32134 Fixed
#EA-139748 Fixed
2019-07-01 12:59:37 +03:00
Mikhail Zarechenskiy
42a5c488c1
[NI] Fix OnlyInputTypes annotation support for top-level captured types
...
#KT-32157 Fixed
#KT-32116 Fixed
#KT-32235 Fixed
#KT-32218 Fixed
2019-07-01 12:59:35 +03:00
Mikhail Zarechenskiy
c2cf4aa2b5
[NI] Move ability to convert standalone SAM-argument under the feature
...
If new inference is enabled only for IDE analysis, then this feature
will be disabled to reduce difference between new and old inference,
but if new inference is enabled in the compiler, then this feature
will be enabled too to preserve behavior of new inference for
compilation
#KT-32175 Fixed
#KT-32143 Fixed
#KT-32123 Fixed
#KT-32230 Fixed
2019-07-01 12:53:33 +03:00
Mikhael Bogdanov
4d82b02f83
Properly set parent inside copied bodies
2019-07-01 07:56:32 +02:00
Toshiaki Kameyama
3a77b63c85
Completion: don't propose the same name for arguments of lambda (KT-9792)
...
#KT-9792 Fixed
2019-06-29 20:36:55 +03:00
Toshiaki Kameyama
c442d69db6
Extend selection: select just KDoc if cursor is just before the KDoc (KT-16476)
...
#KT-16476 Fixed
2019-06-29 20:36:55 +03:00
Toshiaki Kameyama
8afa938723
Extend selection: select escaped identifier name without backticks (KT-31499)
...
#KT-31499 Fixed
2019-06-29 20:36:55 +03:00
Toshiaki Kameyama
9b04af9968
Complete statment for function call: fix wrong right parenthesis place (KT-31595)
...
#KT-31595 Fixed
2019-06-29 20:36:55 +03:00
Toshiaki Kameyama
bd661fcf82
Method sepatators: separate single-expression functions (KT-30782)
...
#KT-30782 Fixed
2019-06-29 20:36:55 +03:00
Toshiaki Kameyama
ade51588f9
Insert paired brackets: insert space after right brace of nested lambda (KT-28098)
...
#KT-28098 Fixed
2019-06-29 20:36:54 +03:00
Toshiaki Kameyama
49d6bbbd6b
Quick doc: fix missing line break for enum constant (KT-30985)
...
#KT-30985 Fixed
2019-06-29 20:36:54 +03:00
Georgy Bronnikov
f332aff4ce
Mute back tests that still fail
2019-06-28 19:44:04 +03:00
Georgy Bronnikov
3a9b94235f
JVM_IR: generate facade classes for imported toplevel declarations
2019-06-28 17:34:49 +03:00
Sergey Rostov
bb0f467f63
Gradle, JS: don't project.getTasksByName inside task realization callback
...
Or project evaluation would be called
#KT-32072 Fixed
2019-06-28 15:28:21 +03:00
Anton Bannykh
fadeac083f
JS: fix reified T::class for primitive T (e.g. Int) (KT-32215 fixed)
2019-06-28 13:49:22 +03:00
Anton Yalyshev
d972d50296
small fix of FUS J2K merge conflict
2019-06-28 12:32:17 +03:00
Ilya Kirillov
01c866632d
New J2K: add FUS statistics for J2K conversions
2019-06-28 12:32:17 +03:00
Anton Yalyshev
cf885789ff
created FUS Group for J2K
2019-06-28 12:32:16 +03:00
Vladimir Dolzhenko
ccfe155f58
Add highlight and completion performance tests
2019-06-28 10:37:29 +02:00
Vyacheslav Gerasimov
4531d2a7b4
Build: restore service files relocation for kotlin-reflect
2019-06-27 19:51:58 +03:00
Igor Chevdar
e8ac22e238
Fixed some IR tests on enums
2019-06-27 19:04:01 +03:00
Igor Chevdar
1e8f7c2b7d
Removed IrCallWithShallowCopy
2019-06-27 19:04:01 +03:00
Igor Chevdar
5a01ad799e
[Serializer] Bumped ABI version
2019-06-27 19:04:00 +03:00
Igor Chevdar
dff0ac8866
[Serializer] UniqId clashes handling
2019-06-27 19:04:00 +03:00
Igor Chevdar
b62e9487d1
Fixes in IrValidator
2019-06-27 19:04:00 +03:00
Igor Chevdar
595a549188
[IR] Fixes related to IR validation
2019-06-27 19:04:00 +03:00
Igor Chevdar
175dfb41b6
[IrSerializer] Supported all annotations + refactoring
2019-06-27 19:04:00 +03:00
Vyacheslav Gerasimov
bdcf674c79
Build: Remove dependency on missing task :kotlin-main-kts:dist
2019-06-27 18:33:51 +03:00
Sergey Rostov
59411e1a28
Build: flags for comparing gradle and jps
2019-06-27 17:56:52 +03:00
Sergey Rostov
f35680e823
Build: cleanup stdlib/jps-build/build.gradle.kts
2019-06-27 17:56:52 +03:00
Sergey Rostov
6647d8fd93
Build: remove mergeServiceFiles from reflectShadowJar
2019-06-27 17:56:52 +03:00
Vyacheslav Gerasimov
2d6a3cb2c8
Build: Introduce flag for disabling jar post processing
...
proguard, relocation, etc.
2019-06-27 17:56:52 +03:00
Vyacheslav Gerasimov
6e20e03cbc
Build: Reuse archive from project build logic for building jars
2019-06-27 17:56:52 +03:00
Vyacheslav Gerasimov
ec157a43ba
Build: Add jar-resources directory to kotlin-main-kts
2019-06-27 17:56:52 +03:00
Vyacheslav Gerasimov
22bbbeb1ec
Build: Fix manifest for kotlin-compiler in jps build
...
Trigger manifest generation from jar task during jps import
2019-06-27 17:56:51 +03:00
Vyacheslav Gerasimov
fc68bb46dc
Build: Move compiler.xml extensions to cli-common
2019-06-27 17:56:51 +03:00
Vyacheslav Gerasimov
e49cd527bc
Build: Remove version from libraries copied to lib of ide plugin
2019-06-27 17:56:51 +03:00
Vyacheslav Gerasimov
373a250b28
Build: Exclude common stdlib only from dist/lib contents configurations
2019-06-27 17:56:50 +03:00
Vyacheslav Gerasimov
e7ba9e5e4e
Build: Fix kotlin-daemon-client-new compile classpath for jps build
2019-06-27 17:56:50 +03:00