Commit Graph

23557 Commits

Author SHA1 Message Date
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 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
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
Toshiaki Kameyama 23c4eac45b Introduce "Logger initialized with foreign class" inspection
^KT-38982 Fixed
2020-05-18 18:16:52 +03:00
Dmitry Gridin 19f878f5cd update searchableOptions.xml 2020-05-18 21:20:46 +07:00
Ilya Kirillov 321272abed Wizard: make new wizard non-experimental
relates to #KT-38952
2020-05-18 08:59:40 +03:00
Vladimir Dolzhenko 01992b581e Dropped KotlinNativeFileTypeFactory from native-common.xml
Relates to #KT-38571
2020-05-17 16:02:25 +00:00
Vladimir Dolzhenko 7afadb9b5e Init default profile for perf tests 2020-05-16 14:10:29 +02:00
Dmitry Savvinov 3793e485b6 Check for common klibs builtins_platform properly
Actually, common klibs don't have a corresponding record (and abscence
of that record should be treated as platform COMMON).

^KT-38769 Fixed
2020-05-15 20:25:48 +03:00
Anton Yalyshev 59ca626487 Make JPS-based wizards available only for new_module use case 2020-05-15 19:11:47 +03:00
Anton Yalyshev f0ff4b066e Remove old Gradle-based new_project_wizards from the Kotlin group 2020-05-15 19:11:47 +03:00
Toshiaki Kameyama 82d81d5223 Change Signature: move lambda outside of parentheses if the arguments are reordered so that the lambda goes last
#KT-30128 Fixed
2020-05-15 17:58:33 +02:00
Toshiaki Kameyama 1d39ac1d3e Move statement: do not move when function last parameter is on same line as right parenthesis
#KT-14757 Fixed
2020-05-15 15:02:58 +02:00
Toshiaki Kameyama 8a595ad165 Move statement: Add or remove empty lines correctly
#KT-14946 Fixed
2020-05-14 18:57:56 +02:00
Toshiaki Kameyama 5a7ceec985 Color settings: use "Static field" instead of "Instance field" for "Enum entry" language defaults
#KT-15143 Fixed
2020-05-14 18:40:00 +02:00
Yaroslav Chernyshev 785fa7dd1c [Gradle, Import] Ignore incompatible test runs for Native targets.
#Fixed KT-34516
2020-05-14 17:43:00 +03:00
Nikolay Krasko e2857a910b Minor: show existing modules in absent error in gradle tests 2020-05-14 16:13:38 +03:00
Toshiaki Kameyama 08588001be Redundant suspend modifier: do not report when the function has 'actual' modifier
#KT-37746 Fixed
2020-05-14 12:08:52 +02:00
Konstantin Tskhovrebov ceb03ce739 Disable KotlinNativeRunConfigurationProducer if not found Gradle plugin.
Issue #KT-38186 Fixed
2020-05-13 17:18:35 +03:00
Vladimir Ilmov af114e3211 (CoroutineDebugger) 192/193 compatibility fix 2020-05-13 15:45:47 +02:00
Igor Yakovlev df8031945b Allow UL class for KtEnumEntry declaration 2020-05-13 12:14:12 +03:00
Roman Golyshev 762f38a394 KT-38832 Add additional check to RemoveCurlyBracesFromTemplateInspection
- Expression in curly braces can change between the report of inspection
and quickfix application
- ^KT-38832 Fixed
2020-05-13 09:05:10 +00:00
Roman Golyshev 150708069c KT-38831 Use safe casts in ReplaceWithOperatorAssignmentInspection
- Assigned expression can change between reporting of inspection and
applying it
- ^KT-38831 Fixed
2020-05-13 09:05:10 +00:00
Roman Golyshev 225d354604 KT-38829 Add additional check to RemoveRedundantBackticksQuickFix
- Identifier's name can change between reporting of inspection and
applying a quickfix
- ^KT-38829 Fixed
2020-05-13 09:05:09 +00:00
Sergey Rostov 4daac14008 Revert due to massive flaky tests 2020-05-12 23:01:01 +03:00
Vladimir Ilmov 5228da2ebc (CoroutineDebugger) 192/as36 compilation fix 2020-05-12 19:50:27 +02:00
Alexander Udalov 012ffa2993 Support new scheme of compilation of OptionalExpectation annotations
Instead of generating these annotation classes as package-private on
JVM, serialize their metadata to the .kotlin_module file, and load it
when compiling dependent multiplatform modules.

The problem with generating them as package-private was that
kotlin-stdlib for JVM would end up declaring symbols from other
platforms, which would include some annotations from package
kotlin.native. But using that package is discouraged by some tools
because it has a Java keyword in its name. In particular, jlink refused
to work with such artifact altogether (KT-21266).

 #KT-38652 Fixed
2020-05-12 19:28:57 +02:00
Sergey Rostov 63e355d979 Scripting IDE cache: unblocking concurrent update
#KT-38875 Fixed
2020-05-12 19:49:43 +03:00
Igor Yakovlev 9f8044ff1b Fix ultraKtLightClassForFacade compiler backend call
+minor fixes
2020-05-12 17:04:16 +03:00
Igor Yakovlev 62c24c95b5 Add support for UltraLightScripts 2020-05-12 17:04:15 +03:00
Yaroslav Chernyshev 0b8c497d2e [Import] Downgrade jvmTarget & move Models and ModelBuilderServices
Fixed KT-35921
Fixed KT-36673
2020-05-12 16:52:01 +03:00
Vladimir Ilmov 385ddba2d9 (CoroutineDebugger) Keep coroutine info list reference from collection
#KT-38606 Fixed
2020-05-12 15:39:36 +02:00
Vladimir Ilmov 5a5c1c3420 (CoroutineDebugger) Local variables should have precedence over restored. 2020-05-12 15:39:35 +02:00
Sergey Rostov f19f49711c Scripting: minor changes 2020-05-12 16:22:48 +03:00
Sergey Rostov 14bd6fe781 scripting ucache: update synchronously in unit test mode 2020-05-12 16:22:48 +03:00
Sergey Rostov ac70234342 201: proper implementation for AsyncFileChangeListenerHelper.kt
updateFile is called before changes in vfs, so the timestamp is old there.
The proper implementation is to collect changed files in list and get timestamp in apply.
2020-05-12 16:22:48 +03:00
Sergey Rostov 9aa5f0c31a Scripting unified cache: update sdks synchronously on changes 2020-05-12 16:22:48 +03:00
Sergey Rostov 9e96885586 GradleBuildRoot: don't store references to virtual files 2020-05-12 16:22:48 +03:00
Sergey Rostov 35765fe6e6 remove stale GradleScriptInputsWatcher references 2020-05-12 16:22:47 +03:00
Sergey Rostov ed6e369735 minor: ScriptingSupport.Provider -> ScriptingSupport, KDoc 2020-05-12 16:22:47 +03:00
Sergey Rostov 33d79f9135 GradleScriptOutOfProjectTest: roots are already registered as legacy 2020-05-12 16:20:47 +03:00