Ilya Goncharov
10c36ae5c5
Change naming from commin cli.ts to concrete platform nodejs.ts
2019-09-20 10:56:17 +03:00
Ilya Goncharov
c2b5df83f6
Add filtering feature to karma testing
...
- Now karma use generated adapter.js as input, in which right runner and
also all real input files are required
#KT-32216 fixed
2019-09-20 10:56:15 +03:00
Ilya Goncharov
09a602d8ad
Move common logic of js test running on upper level (js)
2019-09-20 10:49:57 +03:00
Ilya Goncharov
e750bd302d
Add karma input for kotlin-test-nodejs-runner
...
- To set custom adapter for kotlin-test, it is necessary to inject adapting
code to webpack's input, so then it is executed inside browser and set
custom adapter
This code will be injected to webpack's input
2019-09-20 10:49:56 +03:00
Ilya Goncharov
e242856124
Enable cli description to have free args title
2019-09-20 10:49:56 +03:00
Ilya Goncharov
80ea91f574
Extract Adapter getting to common place
2019-09-20 10:49:56 +03:00
Ilya Goncharov
b44249255c
Extract default cli parser to common place
2019-09-20 10:49:56 +03:00
Ilya Goncharov
f0af4756a9
Fix accuracy for regex filtering for nodejs testing
2019-09-20 10:49:56 +03:00
Ilya Goncharov
e2aecee925
Fix exact test filtering for nodejs
2019-09-20 10:49:56 +03:00
Natalia Selezneva
a62863128c
Fix exception from ProjectResolutionFacade when switching some definition off in settings
...
Fix AbstractScriptDefinitionsOrderTest
Remove updating script dependencies in test because in affects cache behavior: script will be already up to date when highlighting is called for the second time
2019-09-20 10:35:52 +03:00
Natalia Selezneva
3ad7f516be
Add caret to test to check exception in ProjectResolutionFacade that can happen during resolving of symbol from script dependencies
2019-09-20 10:35:52 +03:00
Natalia Selezneva
5872a47c0e
Scripts: rehighlighting should be called for opened scripts after changing script definitions
...
In case when script dependencies were absent for script, highlighting was called only when the script changed
2019-09-20 10:35:52 +03:00
Natalia Selezneva
3ac099fc9a
Fix freeze during script definitions update (KT-32513)
...
loadScriptDefinitions is a long running operation, so it shouldn't be called under write lock.
This may cause a freeze when someone else wants to get definitions from the same loader during loading process
^KT-32513 Fixed
2019-09-20 10:35:44 +03:00
Ilya Matveev
1b64583855
Gradle, native: Embed bitcode for watchOS and tvOS
2019-09-20 12:52:48 +07:00
Abduqodiri Qurbonzoda
2819ab4ae9
Avoid division in string-to-unsigned conversions (KT-26309)
2019-09-20 01:08:33 +03:00
Abduqodiri Qurbonzoda
d66f07a84e
CollectionsKt.windowed throws IllegalArgumentException
2019-09-20 00:50:54 +03:00
Alexander Udalov
a7b984bcbf
JVM IR: fix generation of generic multi-file delegates
2019-09-19 22:23:16 +02:00
Alexander Udalov
acbe5c4e21
JVM IR: fix IOOBE from remapTypeParameters for synthetic property annotations method
2019-09-19 22:23:16 +02:00
Igor Yakovlev
c972bf5882
Add [JPS] IDEA (No ProcessCanceledException) configuration
2019-09-19 19:56:35 +03:00
Ilmir Usmanov
f1d31c8221
JVM_IR: Minor. Unmute tests
...
Rename FAKE_CONTINUATION -> fakeContinuation
2019-09-19 19:28:11 +03:00
Ilmir Usmanov
06d0e8a521
JVM_IR: Support suspend functions with extension receivers
2019-09-19 19:28:10 +03:00
Ilmir Usmanov
2bfd17d8fb
JVM_IR: Minor. Unmute test.
2019-09-19 19:28:08 +03:00
Ilmir Usmanov
63f6d515bc
JVM_IR: Generate correct invoke of numbered suspend lambda
...
Instead of continuation type as last parameter's type, generate Object
type.
2019-09-19 19:28:05 +03:00
Ilmir Usmanov
587fcafc85
JVM_IR: Support continuation crossing inline lambda boundaries
...
I.E. generate fake continuation markers.
2019-09-19 19:28:03 +03:00
Ivan Gavrilovic
0cdfe89a26
KT-33052: Fix KAPT stub generation for enums on JDK11
...
When using JDK11, generating stubs for enums is broken.
This commit handles the faulty generation by JDK11 by
fully printing enums in custom implementation of tree
printing.
Test: added JDK11 tests for KAPT stub generation
2019-09-20 00:04:27 +09:00
Ivan Gavrilovic
58efa34a33
KT-31291: KAPT - make sure ASM version is not inlined
...
Switch to Java reflection when getting the ASM version used
to analyze classes. Using Kotlin reflection resulted in the constant
being inlined.
Fixes KT-31291
Fixes KT-33493
2019-09-20 00:04:27 +09:00
Ivan Gavrilovic
60fa632d02
KT-33515: Remove Kotlin sources generated by KAPT
...
When KAPT is unable to run incrementally make sure to
clean directory that contains generated Kotlin sources.
This location is specified using '-Akapt.kotlin.generated'
option.
2019-09-20 00:04:27 +09:00
Ivan Gavrilovic
434fb75eb7
Incremental KAPT: when unable to process incremental changes, run non-incrementally
...
When analyzing incremental changes in the KAPT task, incremental compilation
can handle directory changes, Java source file changes, jar/.class file changes,
and changes to the ABI structure of the classpath. Anything else should cause
a full recompilation.
Test: KaptIncrementalWithIsolatingApt.testNonIncrementalWithUnrecognizedInputs
2019-09-20 00:04:27 +09:00
Ilya Goncharov
b59fba6707
Fix mocha run
...
#KT-33579 fixed
2019-09-19 15:42:49 +03:00
Nicolay Mitropolsky
9d01c87c51
KotlinElementActionsFactory: cleanup JvmElementActionsFactory API (KT-33779)
2019-09-19 10:45:12 +03:00
Vladimir Dolzhenko
3bcbcbfd47
Fix read action in 'processLightClassLocalImplementations' (EA-210464)
2019-09-18 10:44:43 -07:00
Vladimir Dolzhenko
81c9edfff4
Get rid of implicit resolve within statsInfo for KotlinAddImportAction (EA-210670)
2019-09-18 10:43:38 -07:00
Vladimir Dolzhenko
3a1d649b30
Don't trigger refresh of vfs in 'getOutsiderFileOrigin' (EA-209420)
2019-09-18 10:23:34 -07:00
Mads Ager
507857d452
[IR] Support Collection<*>.indices in for loop lowering.
...
Unmute a couple of tests that are working as intended.
2019-09-18 19:00:17 +02:00
Steven Schäfer
76ab631214
psi2ir: Optimize generated data class members
...
- Access underlying fields directly, instead of using accessors. This is
safe since data classes are always final.
- Don't generate a temporary variable in hashCode to use as the
accumulator.
Both optimizations are effectively present in the current JVM backend
and with these changes the generated code is much closer to what the
current backend generates.
2019-09-18 18:56:42 +02:00
Steven Schäfer
7ccf314808
Minor: Remove dead conditional in psi2ir
2019-09-18 18:56:42 +02:00
Steven Schäfer
ce3ef4e4d0
Add more tests for inline class equality with nullable arguments
2019-09-18 18:52:58 +02:00
Steven Schäfer
1833a69c87
JVM: Optimize inline class equality with nullable arguments
2019-09-18 18:52:58 +02:00
Steven Schäfer
eda4953cb3
JVM IR: Optimize inline class equality with nullable arguments
2019-09-18 18:52:58 +02:00
Steven Schäfer
d8646e29b7
Add additional Result api test
2019-09-18 18:52:58 +02:00
Steven Schäfer
49efa5fbc4
Split up Result API boxing tests
2019-09-18 18:52:58 +02:00
Steven Schäfer
2e53e36fd5
JVM: Do not use equals-impl0 methods generated by older compiler versions
2019-09-18 18:52:58 +02:00
Steven Schäfer
b85b2d9af8
Add more tests for inline class equality
2019-09-18 18:52:58 +02:00
Steven Schäfer
cdc5e1347b
JVM: Avoid boxing in inline class equality
2019-09-18 18:52:58 +02:00
Steven Schäfer
f53b28e8a3
JVM: Generate equals-impl0 method for inline classes
2019-09-18 18:52:58 +02:00
Steven Schäfer
2c7da67600
JVM IR: Avoid boxing in inline class equality
2019-09-18 18:52:58 +02:00
Steven Schäfer
b85a475358
JVM IR: Generate equals-impl0 method for inline classes
2019-09-18 18:52:58 +02:00
Steven Schäfer
e4456127e4
JVM IR: Don't use JS IR specific inlineClasses.kt
2019-09-18 18:52:58 +02:00
Steven Schäfer
475079611d
JVM IR: Avoid parameter null-checks in inline class impl methods
2019-09-18 18:52:58 +02:00
Steven Schäfer
cdd3f82396
JVM IR: Use correct scope owner in JvmInlineClassLowering
2019-09-18 18:52:58 +02:00