Commit Graph

66577 Commits

Author SHA1 Message Date
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
Ilya Goncharov b4b2efdc08 [Gradle, JS] Remove copypaste on name only npm dependency
#KT-38683 fixed
2020-05-18 17:41:45 +03:00
Ilya Goncharov 2378d9ba0a [Gradle, JS] Remove copypaste on directoryNpmDependency
#KT-38683 fixed
2020-05-18 17:41:45 +03:00
Ilya Goncharov 28b0bfd40c [Gradle, JS] Remove possibility to declare npm dependency w/o version
#KT-38683 fixed
2020-05-18 17:41:45 +03:00
Ilya Goncharov 3a9e3f29e4 [Gradle, JS] Make addNpmDependencyExtension as internal
#KT-38683 fixed
2020-05-18 17:41:45 +03:00
Dmitry Gridin 19f878f5cd update searchableOptions.xml 2020-05-18 21:20:46 +07:00
Ilya Goncharov 6bde5b620e [Gradle, JS] Add test on NPM range versions
#KT-38990 fixed
2020-05-18 12:48:03 +03:00
Ilya Goncharov fd7cd7167c [Gradle, JS] Extract methods about parse line
#KT-38990 fixed
2020-05-18 12:47:56 +03:00
Ilya Goncharov 0492d81a8c [Gradle, JS] Process quoted value in yarn.lock
#KT-38990 fixed
2020-05-18 12:47:40 +03:00
Mikhail Glukhikh db7a7f6cd3 [FIR2IR] Move facade classes generation to the main converter 2020-05-18 11:48:33 +03:00
Mikhail Glukhikh c4f4883b96 [FIR] Remove redundant dependency generation in JvmIrCodegenFactory
Dependency generation isn't necessary at this point because
it's already performed by Fir2IrConverter
2020-05-18 11:48:33 +03:00