Dmitry Borodin
1a0b59da49
KT-20357 Add sortedBy() sample ( #3283 )
2020-05-19 19:21:21 +03:00
Vyacheslav Gerasimov
0d71758112
Build: Add miscCompilerTest task
...
for everything except jvmCompilerTest & jsCompilerTest
2020-05-19 18:34:38 +03:00
Victor Petukhov
eff5f3a242
NI: do type checking for anonymous functions not inside a call
...
^KT-38890 Fixed
^KT-38439 Fixed
2020-05-19 16:29:14 +03:00
Mark Punzalan
425ce8c3ab
[FIR] Use flexible type lower bound when approximating type for
...
IntegerLiteral.
2020-05-19 15:42:49 +03:00
Mark Punzalan
d5141674a3
[FIR] Update GenerateRangesCodegenTestData for newly-enabled FIR tests.
2020-05-19 15:41:29 +03:00
Mark Punzalan
89d706972c
[FIR] Use vararg element type when generating argument mapping.
2020-05-19 15:41:29 +03:00
Natalia Selezneva
98d3855fd8
KotlinDslModels: project can be null in ExternalSystemTaskNotificationListener.onStart
...
For example when project is created from sources
2020-05-19 15:04:15 +03:00
Natalia Selezneva
879fe9b493
Fix order of ExternalSystemListeners
...
in 201 the order of ExternalSystemListener.EP isn't guaranteed.
But we need to update script definitions and only then we can store script models,
because they need to know script definitions additional classpath
2020-05-19 15:04:14 +03:00
Natalia Selezneva
1a1bcefb2a
Add debug logger to ScriptTemplatesFromDependenciesProvider
...
This will help with investigation of problems with script definition discovery
2020-05-19 15:04:14 +03:00
Natalia Selezneva
16b7232b4f
Minor: do not associate with the same extensions multiple times in ScriptDefinitionsManager
2020-05-19 15:04:14 +03:00
Natalia Selezneva
8d22429abc
Do not show notification before all definitions are loaded
2020-05-19 15:04:14 +03:00
Natalia Selezneva
1513429613
Load script definitions in IDE on project opening
...
This will speed up first script opening,
will avoid unexpected indexing because of new definitions
Script definitions are also needed for Kotlin scripting settings
2020-05-19 15:04:14 +03:00
Natalia Selezneva
942c8aaafc
Introduce index for folders with script definitions templates
...
Replace it with nonBlockingReadAction meaning that if update was canceled then loading will be restarted after all write events happen
Also scanning is now started after indexing
^KT-36378 Fixed
^KT-34138 Fixed
^KT-37863 Fixed
2020-05-19 15:04:14 +03:00
Ilya Matveev
839e4ecff2
Allow passing a MessageRenderer to CLITool.mainNoExit
...
Earlier a system property was used to configure a message renderer
for the K/N compiler. The fix for KT-37550 requires getting rid of
using properties when the compiler is started in a Gradle process.
This patch allows us to specify a correct message renderer at
the K/N side depending on entry point used to run the compiler.
Issue #KT-37550
2020-05-19 18:57:41 +07:00
Ilya Matveev
5287ffb4a5
[Native] Don't use konan.home to determine a path to the K/N dist
...
A fix for KT-37550 requires us to stop using system properties when
the compiler is started from Gradle. This patch stops reading the
konan.home property to determine a path to the compiler and requires
this path to be explicitly specified in a constructor of the
Distribution class.
Issue #KT-37550
2020-05-19 18:57:39 +07:00
Ilya Matveev
8e3a62e5fd
[Gradle] Get rid of java.library.path when running the K/N compiler
...
Issue #KT-37550
2020-05-19 18:57:37 +07:00
Dmitry Gridin
0df5d5158d
Add resources-en for idea
...
#KT-38297 Fixed
2020-05-19 16:22:06 +07:00
Dmitry Gridin
12217ef2ab
Add regression test for ReplaceWith
...
#KT-35015 Fixed
2020-05-19 16:15:13 +07:00
Toshiaki Kameyama
02c17378b1
Replace deprecated symbol usage: replace imported object function correctly
...
#KT-33951 Fixed
2020-05-19 15:40:59 +07:00
Dmitry Gridin
b2be1a53cf
SpecifyTypeExplicitlyIntention: remove annotations from result type
...
#KT-36930 Fixed
2020-05-19 01:17:39 +00:00
Segun Famisa
d6a8003743
Add samples for String/CharSequence filter & filterNot ( #3390 )
...
* Add samples for String/CharSequence filter & filterNot
* Link samples to stdlib generator
2020-05-18 23:15:41 +03:00
Ilya Gorbunov
25f83e941c
Fix sample reference for unsigned array range sort
2020-05-18 20:37:11 +03:00
Ilya Gorbunov
c40c9a3d14
stdlib-gen: make 'sample' overwrite samples list instead of adding
...
It's more common for a function to have the single sample, and it's
more convenient to override it in `specialFor` blocks, rather than
to append another one.
2020-05-18 20:37:11 +03:00
Mark Punzalan
371c4561a0
[IR/FIR] Use isExpect from IR element instead of descriptor in
...
ExpectDeclarationRemover.
2020-05-18 17:20:43 +02:00
Toshiaki Kameyama
23c4eac45b
Introduce "Logger initialized with foreign class" inspection
...
^KT-38982 Fixed
2020-05-18 18:16:52 +03:00
Ilya Goncharov
c6e23ffa3b
[Gradle, JS] Move npm declarations to KotlinDependencyHandler
...
KT-38331
2020-05-18 17:41:49 +03:00
Ilya Goncharov
85fa1859b3
[Gradle, JS] Fix generateKotlinExternals for scoped without generating
...
KT-38331
2020-05-18 17:41:49 +03:00
Ilya Goncharov
8ac5ebac84
[Gradle, JS] Separate interface for directory dependency with externals
...
KT-38331
2020-05-18 17:41:48 +03:00
Ilya Goncharov
8565b77293
[Gradle, JS] Delegate instead inheritance
...
KT-38331
2020-05-18 17:41:48 +03:00
Ilya Goncharov
4a574b8e00
[Gradle, JS] Not input transitive dependencies to dukat
...
KT-38331
2020-05-18 17:41:48 +03:00
Ilya Goncharov
309d928ed6
[Gradle, JS] Quoted args
...
KT-38331
2020-05-18 17:41:48 +03:00
Ilya Goncharov
0e24b5aaa2
[Gradle, JS] Possible variants consider scope
...
KT-38331
2020-05-18 17:41:48 +03:00
Ilya Goncharov
0d9265388b
[Gradle, JS] Add possible variants for generate kotlin variants
...
KT-38331
2020-05-18 17:41:48 +03:00
Ilya Goncharov
5d74db51d7
[Gradle, JS] Fix message
...
KT-38331
2020-05-18 17:41:48 +03:00
Ilya Goncharov
f4521ee4e4
[Gradle, JS] In case when default generate kotlin externals will be changed, nothing will be broken
...
KT-38331
2020-05-18 17:41:47 +03:00
Ilya Goncharov
86c8986bd3
[Gradle, JS] throw exception if dependency forbid generate external
...
KT-38331
2020-05-18 17:41:47 +03:00
Ilya Goncharov
df38a669b8
[Gradle, JS] Fix vararg call
...
KT-38331
2020-05-18 17:41:47 +03:00
Ilya Goncharov
dcb961af19
[Gradle, JS] Support generateKotlinExternals option for Groovy
...
KT-38331
2020-05-18 17:41:47 +03:00
Ilya Goncharov
e8d10d45a9
[Gradle, JS] Add generateKotlinExternals option for root dependencies
...
KT-38331
2020-05-18 17:41:47 +03:00
Ilya Goncharov
50e0e6ac06
[Gradle, JS] Add defaultGeneratedKotlinExternals to dependencies extensions
...
KT-38331
2020-05-18 17:41:47 +03:00
Ilya Goncharov
830555aa8b
[Gradle, JS] generateKotlinExternals option in dsl functions
...
KT-38331
2020-05-18 17:41:47 +03:00
Ilya Goncharov
c20184ae08
[Gradle, JS] Add option for generate kotlin externals
...
KT-38331
2020-05-18 17:41:46 +03:00
Ilya Goncharov
53a5980d4c
[Gradle, JS] Forbid create peer dependency with directory
...
#KT-38683 fixed
2020-05-18 17:41:46 +03:00
Ilya Goncharov
4d32140f6f
[Gradle, JS] Extract interface with directory dependency
...
#KT-38683 fixed
2020-05-18 17:41:46 +03:00
Ilya Goncharov
52214e9093
[Gradle, JS] Add deprecation on npm with name only
...
#KT-38683 fixed
2020-05-18 17:41:46 +03:00
Ilya Goncharov
3c0965802a
[Gradle, JS] Extract name only npm dependency to separate interface
...
#KT-38683 fixed
2020-05-18 17:41:46 +03:00
Ilya Goncharov
228e22b4cb
[Gradle, JS] Update NPM dependency fail message for Groovy
...
#KT-38683 fixed
2020-05-18 17:41:46 +03:00
Ilya Goncharov
5a348a4831
[Gradle, JS] Add dev dependency to test
...
#KT-38683 fixed
2020-05-18 17:41:46 +03:00
Ilya Goncharov
efe70da594
[Gradle, JS] KotlinDependencyHandler extends from KotlinNpmDependencyHandler to provide these functions in interface
...
#KT-38683 fixed
2020-05-18 17:41:45 +03:00
Ilya Goncharov
4fb1e4614d
[Gradle, JS] Remove deprecated npm dependency with org
...
#KT-38683 fixed
#KT-38994 fixed
2020-05-18 17:41:45 +03:00