Andrey Uskov
bfad00e8c9
Mute android-related gradle import tests
2020-05-23 23:16:42 +03:00
Ilya Gorbunov
22c4d30a89
Correct docs of ThreadLocal and SharedImmutable annotations
...
- clarify that they have effect only in K/N
- correct possible application targets of SharedImmutable
KT-36245
2020-05-23 22:28:46 +03:00
Ilya Gorbunov
dae7a23998
Clarify docs of CharSequence.split(Pattern, limit)
...
Emphasize differences from Pattern.split(CharSequence, limit).
#KT-39023 Fixed
2020-05-23 22:25:54 +03:00
Abduqodiri Qurbonzoda
f3145454f2
Decommonize collection builder implementations
2020-05-23 03:40:44 +03:00
Victor Petukhov
379c6944a2
NI: extract diagnostics from partially resolved call instead of separately handling it including running all checks
...
^KT-37630 Fixed
^KT-35494 Fixed
2020-05-22 22:13:53 +03:00
Ilya Matveev
eaa16714f6
[Gradle, native] Allow disabling warning about incorrect dependencies
...
Issue #KT-32476
2020-05-22 22:16:18 +07:00
Svyatoslav Kuzmich
c9adf22697
[JS] Remove binding context from NameSuggestion instance
...
Pass bindingContext to suggest method instead.
Revert creating multiple instances of NameSuggestion in checkers.
2020-05-22 17:05:30 +03:00
Ilya Goncharov
104352b313
[Gradle, JS] Remove browser tests from gradle integration tests
2020-05-22 13:25:23 +03:00
Svyatoslav Kuzmich
6e3d3831c2
[JS] JsExport diagnostics and legacy support
...
Account for JsExport in legacy backend namer. It means we
catch overloaded exported function conflicts for free!
Add error diagnostics:
* NESTED_JS_EXPORT (Fixes KT-36798)
* WRONG_EXPORTED_DECLARATION (Part of the fix for KT-37752)
* NON_EXPORTABLE_TYPE (Fixes KT-37771)
2020-05-22 10:50:22 +03:00
Dmitriy Dolovov
4076bf40a9
[Commonizer] Add Gradle property to pass JVM args
...
^KT-39094
2020-05-22 12:07:37 +07:00
Dmitriy Dolovov
2a1e014d51
Minor. Add jetbrains to project dictionary
2020-05-22 12:07:26 +07:00
anastasiia.spaseeva
c736a1e5b0
[Spec tests] Update testsMap for when-expression section
2020-05-22 02:52:02 +03:00
anastasiia.spaseeva
d9160a26e9
[Spec tests] Add property helpers to testMaps
2020-05-22 02:52:02 +03:00
anastasiia.spaseeva
cbba52e43c
[Spec tests] Make collectInfoFromTests for both spec and implementation tests
2020-05-22 02:52:01 +03:00
anastasiia.spaseeva
270972ca1c
[Spec tests] Make main link nullable for case if implementation tests don't have this one
2020-05-22 02:52:00 +03:00
anastasiia.spaseeva
3a46b5a45a
[Spec tests] Add path element at testMaps for main links also
2020-05-22 02:52:00 +03:00
anastasiia.spaseeva
d94c212a60
[Spec tests] Add linkType element to testMaps
2020-05-22 02:51:59 +03:00
anastasiia.spaseeva
3a31150df4
[Spec tests] Metadata refactoring: remove duplicated links in testMaps
2020-05-22 02:51:58 +03:00
anastasiia.spaseeva
d32aca87d1
[Spec tests] Change metadata structure of implementation and spec tests
2020-05-22 02:51:57 +03:00
Mikhail Likholetov
80cd26c9df
[FIR] Support several annotation class diagnostics
2020-05-21 18:01:36 +03:00
Ilya Chernikov
c112d37ac1
Consolidate resolving in the new lib, deprecate it in script-util
...
also deprecate Import and CompileOptions annotations, because they
do not seem generic enough. Create specific copie in the main-kts
instead.
2020-05-21 16:49:57 +02:00
Ilya Chernikov
7d426226f9
Switch example to the new maven resolving API
2020-05-21 16:49:56 +02:00
Ilya Chernikov
f363134fbc
Do not continue compilation if collected dependencies contain error
...
avoids additional errors reported by compilation, if configuration
refinement returned error
2020-05-21 16:49:56 +02:00
Ilya Chernikov
d92e4d28f5
Provide a method to update script definitions after loading into IDE
...
also documenting ScriptDefinitionsProvider
2020-05-21 16:49:56 +02:00
Ilya Chernikov
4b032a14af
Refactor host configuration handling and script definition creation
...
so it is possible now to create custom host configuration with template
and all configurations are handled consistenly.
Also introduce and use new ScriptDefinition class wrapping compilation
and evaluation configurations, that could be consistenly created from a
template.
2020-05-21 16:49:55 +02:00
Ilya Chernikov
255ad47406
Use copied key to extract default jdkHome from host configuration
2020-05-21 16:49:55 +02:00
Ilya Chernikov
20bbcd5d5a
Implement copied key with ability to take default from source config
2020-05-21 16:49:55 +02:00
Ilya Goncharov
3c9207a2cd
[Gradle, JS] Add test on local project dependency
...
#KT-38592 fixed
2020-05-21 17:36:33 +03:00
Ilya Goncharov
985623eac5
[Gradle, JS] Fix hmpp on only js
...
#KT-38592 fixed
2020-05-21 17:36:33 +03:00
Ilya Goncharov
bed7b23d6c
[Gradle, JS] Fix naming of test and test data
...
#KT-38592 fixed
2020-05-21 17:36:33 +03:00
Ilya Goncharov
d089bbe14a
[Gradle, JS] Fix for JsIrTarget in mixed mode
...
#KT-38592 fixed
2020-05-21 17:36:33 +03:00
Ilya Goncharov
79984b6e04
[Gradle, JS] Add test on hmpp with both js
...
#KT-38592 fixed
2020-05-21 17:36:33 +03:00
Ilya Goncharov
a6812e5d6a
[Gradle, JS] Add fake common usage context for single js plugin publish
...
#KT-38592 fixed
2020-05-21 17:36:33 +03:00
Ilya Goncharov
4f747072f4
[Gradle, JS] Define fake configuration for single js plugin to publish as common
...
#KT-38592 fixed
2020-05-21 17:36:32 +03:00
Ilya Goncharov
22f5d3b134
[Gradle, JS] Add isMpp property
...
#KT-38592 fixed
2020-05-21 17:36:32 +03:00
Pavel Kirpichenkov
0b33e9430b
[NI] Report unstable smart cast directly instead of using SmartCastManager
...
Fix compilation errors, revealed by this fix.
SmartCastManager is unnecessary for error reporting, intermediate diagnostics from the NI contain all required infromation.
When SmartCastManager is used it leads to missing unstable smart casts in case of expressions with captured types.
This happens, because data flow info is recorded for original expression without captured types, which is used as a key.
DataFlowValues created from receivers with captured types can't be used to retrieve that info.
^KT-39010 Fixed
2020-05-21 17:09:10 +03:00
Dmitry Gridin
b808d5f381
TrailingCommaInspection: cleanup code
2020-05-21 13:42:30 +00:00
Dmitry Gridin
ee141ae57b
TrailingCommaInspection: add dependency to settings
...
* Change severity to `INFO`
* Mark useless comma as unused symbol
* Add dependency on `Use trailing comma`
#KT-39069 Fixed
#KT-38568 Fixed
2020-05-21 13:42:29 +00:00
Ilya Matveev
8d77ec83c6
[Gradle, native] Don't set system properties when the compiler runs in daemon
...
Changing system properties during parallel in-process compiler
execution may cause data races (e.g. see KT-37362, KT-37442).
This commit abandons using system properties when the compiler
is executed in process.
Issue #KT-37550 fixed
2020-05-21 12:05:24 +00:00
Ilya Matveev
f88722ae76
Update K/N: 1.4-M3-dev-15627
2020-05-21 12:05:23 +00:00
Roman Golyshev
a83b0bef96
KT-38841 Do not call preparePsiElementForWrite if not needed
...
- This call breaks Intention Preview for all intentions that extend
`SelfTargetingIntention`
- This check is actually already performed by the platform before the
intention invocation (but only if `startInWriteAction` returns `true`)
- There are many other intentions which redundantly use this call, but
most of them implement `LocalQuickFix`, which means that they are
inspection based. Currently Intention Preview does not seem to support
this kind of intentions
2020-05-21 11:45:48 +00:00
Dmitry Petrov
b89878a509
Update testData for KAPT tests for new inline class ABI
...
Since class member functions returning inline class values are now
mangled, they are not visible from Java.
2020-05-21 13:56:57 +03:00
Jinseong Jeon
7a947e8008
FIR: fix default constructor visibility for enum entry.
2020-05-21 08:40:03 +03:00
Jinseong Jeon
0d3301b695
FIR: resolve local class in anonymous initializer.
2020-05-21 08:36:49 +03:00
Mikhail Zarechenskiy
2ff5b253ae
[NI] Fix suspend conversions for subtypes of functional types
...
Fix for recently added tests:
- testIntersectionTypeToSubtypeConversion
- testSubtypeOfFunctionalTypeToSuspendConversion
2020-05-21 00:47:12 +03:00
Roman Golyshev
3903814c9c
Revert "KT-38841 Remove redundant preparePsiElementForWrite call"
...
This reverts commit 165b62da
Something went wrong with the AS40 build
2020-05-20 22:58:49 +03:00
Victor Petukhov
12db3d6e83
NI: remove separation of variable fixation order by constraint kind
...
The commit partially reverts ec4d9d2f1f
^KT-37914 Fixed
2020-05-20 22:37:30 +03:00
Dmitry Petrov
874fa5b998
Bootstrap: 1.4.0-dev-8798
2020-05-20 18:02:11 +03:00
Roman Golyshev
165b62da63
KT-38841 Remove redundant preparePsiElementForWrite call
...
- This call breaks Intention Preview for all intentions that extend
`SelfTargetingIntention`
- This check is actually already performed by the platform before the
intention invocation
- There are many other intentions which redundantly use this call, but
most of them implement `LocalQuickFix`, which means that they are
inspection based. Currently Intention Preview does not seem to support
this kind of intentions
2020-05-20 14:33:21 +00:00
Steven Schäfer
933440dc63
JVM IR: Fix mangling of @JvmStatic internal function in companion objects
2020-05-20 15:57:03 +02:00