Commit Graph

49831 Commits

Author SHA1 Message Date
Dmitry Savvinov 3dd4e9f04f Minor: use try-finally for setting LazyContractProvider
It conveys meaning of the code more celearly (because that's what we
want to do here: set LazyContractProvider no matter how code finished),
and also defends from several corner-cases (like, make sure that we
properly set LazyContractProvider even if doCheckContract has throw an
exception)
2018-10-24 12:03:04 +03:00
Mikhail Zarechenskiy bae3ff5211 Don't try parsing contract-like function not from kotlin package
Returning `null` from `doCheckContract` functions means that we
have failed to parse contract function and should report an error, but
if the called function isn't true contract, we shouldn't evaluate that code
at all.

 #KT-27758 Fixed
2018-10-24 12:03:04 +03:00
Mikhael Bogdanov d82ca9ccd0 Rearrange repositories in android build script 2018-10-24 09:45:39 +02:00
Ilya Gorbunov c8caed5b6f Duplicate MutableList.add docs in AbstractMutableList.add
Because the documentation inheritance doesn't work as desired here.
2018-10-23 22:21:25 +03:00
Ilya Gorbunov efa7bf0c37 Unify kotlin.test docs 2018-10-23 22:21:25 +03:00
Piotr Krzeminski 3c46bb9d03 kotlin-test: Add documentation for value returned by assertFailsWith
A follow-up after https://youtrack.jetbrains.com/issue/KT-27418

Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com>
2018-10-23 22:21:25 +03:00
Mikhail Levchenko 16918fa25e Remove confusing samples from SequenceBuilder docs
Problem:
SequenceBuilder is experimental and deprecated in 1.3 in favor of
SequenceScope. Usage of experimental package is discouraged in 1.3.
The documentation for SequenceBuilder refers to SequnceScope sample code,
which might be confusing.

Solution:
Remove samples for SequenceBuilder completely to discourage its usage,
but provide a note about it having deprecated in favor of SequenceScope.
Provide links to modern version of outdated SequenceBuilder.
2018-10-23 22:21:25 +03:00
Andrey Uskov af5281e7c7 Fixed import in IDEA if required environment variables are not set.
#KT-26413 Fixed
2018-10-23 20:52:15 +03:00
Mikhael Bogdanov d77175b7e4 Minor. Reformat 2018-10-23 16:27:53 +02:00
Mikhael Bogdanov 0288a1bd2d Restructure android test module, update dependencies 2018-10-23 16:27:52 +02:00
Mikhael Bogdanov 78fe9d8eee Move 'compileKotlinAgainstKotlin' java 8 tests to common 2018-10-23 16:27:51 +02:00
Mikhael Bogdanov c6b4bae81f Move 'bytecodeText' java 8 tests to common 2018-10-23 16:27:50 +02:00
Mikhael Bogdanov 4284c19a16 Move 'writeFlags' java 8 tests to common 2018-10-23 16:27:50 +02:00
Yan Zhulanow 37c38b6e43 Add missing bunch for testResourceBundle (fixes flaky debugger tests)
See also e1f746f23c.
2018-10-23 17:12:12 +03:00
Sergey Igushkin 5ee6a6037d (minor) Move the unused source sets check to the taskGraph.whenReady
This is a workaround for Android compilations being configured in
an afterEvaluate callback.

Issue #KT-26963 Fixed
2018-10-23 16:15:05 +03:00
Denis Zharkov 834de23f39 Do not set version to buildNumber
They might be different in case of releases:
1.3.0 != 1.3.0-release-N
2018-10-23 15:39:01 +03:00
Denis Zharkov cbbc0eae8c Use https when publishing to sonatype
Otherwise, NoHttpResponseException may happen sporadically
2018-10-23 15:39:01 +03:00
Ilya Matveev ca152fed12 Update Kotlin/Native: 1.0.0 2018-10-23 18:30:50 +07:00
Mikhail Glukhikh 7a589d69da Fix 183 build 2018-10-23 14:16:19 +03:00
Alexander Podkhalyuzin 16d3bf7716 Fixed KotlinConfidenceTests 2018-10-23 13:57:42 +03:00
Nikita Katkov d66619b1c2 BlockingMethodInNonBlockingContextInspection: resolve mode switched to partial & coroutine "released" status check 2018-10-23 13:18:32 +03:00
Toshiaki Kameyama 90529dfda4 "Remove redundant receiver" quick fix: Remove unused type parameter #KT-23512 2018-10-23 13:02:44 +03:00
Toshiaki Kameyama 0cd25353bc Lift assignment: do not report in cases where argument are of different types #KT-21520 Fixed 2018-10-23 12:48:03 +03:00
Mikhail Glukhikh fcc6395b14 SetterBackingFieldAssignment: minor refactoring 2018-10-23 12:35:35 +03:00
Toshiaki Kameyama 29cc727c5a Add inspection for suspicious 'var' property #KT-23691 Fixed 2018-10-23 12:31:42 +03:00
Toshiaki Kameyama 3ede93df11 Introduce inspection: "Setter backing field should be assigned"
#KT-20273 Fixed
2018-10-23 11:22:40 +03:00
Mikhail Glukhikh 784d9f14f6 Rollback language / API version at the end of IDE tests
This should fix some flaky tests
2018-10-23 10:57:09 +03:00
Nikolay Krasko 0eb5934e09 Update channels list in update Kotlin dropdown (KT-25429)
#KT-25429 Fixed
2018-10-23 01:23:21 +03:00
Yan Zhulanow 5d2a3c097c Minor: Update kapt test (nullability annotation is gone in Enum constructors) 2018-10-22 23:06:05 +03:00
Alexey Sedunov af5d4b3156 MPP: Fix adjustment of transitive project dependencies
#KT-27632 Fixed
2018-10-22 19:18:35 +03:00
Alexey Sedunov fd4c07f0e6 MPP: Populate BuildScriptClasspathData if it's absent
This happens when Java support is not available in the IDE
(e.g. in CLion)
2018-10-22 19:18:34 +03:00
Alexey Sedunov 839d936918 MPP: Implement directory selection UI supporting non-JVM roots
#KT-27291 Fixed
 #KT-26696 Fixed
2018-10-22 19:18:32 +03:00
Alexey Sedunov aa4e87fc4b Refactor: Introduce MoveSource class 2018-10-22 19:18:31 +03:00
Mikhael Bogdanov 2131a314b0 Add file content to parsing errors 2018-10-22 16:32:57 +02:00
Mikhael Bogdanov 9c3b367b93 Skip JVM_TARGET and SKIP_JDK6 tests on android 2018-10-22 16:32:56 +02:00
Mikhael Bogdanov ce1d6e7217 Fix test in JDK independent way 2018-10-22 16:32:56 +02:00
Mikhael Bogdanov a4206a543a Skip test on JDK 6 2018-10-22 16:32:55 +02:00
Mikhael Bogdanov db25343f90 Run tests on different JDKs via different suites and custom test runner 2018-10-22 16:32:54 +02:00
Mikhael Bogdanov 55880ef013 Fix delegateFilter reinitialization
Otherwise IDEA marks all test as skipped
2018-10-22 16:32:54 +02:00
Mikhael Bogdanov 5b8acd69e3 Mute JVM IR tests 2018-10-22 16:32:53 +02:00
Mikhael Bogdanov edc648813d Regenerate box tests 2018-10-22 16:32:52 +02:00
Mikhael Bogdanov ac8e1a0124 Move JVM8 box test to common 2018-10-22 16:32:52 +02:00
Mikhael Bogdanov b61608aba7 Add TARGET_BACKEND for JVM 8 tests 2018-10-22 16:32:51 +02:00
Mikhael Bogdanov 6ec7b8e0d3 Fix test server and proxy 2018-10-22 16:32:50 +02:00
Vyacheslav Gerasimov 38902149d2 Add bunch set for AS 3.4 2018-10-22 17:21:22 +03:00
Ilya Gorbunov 4a10d954fc Unify and improve Regex docs 2018-10-22 17:14:46 +03:00
Ilya Gorbunov 709a28060f Unify coroutine intrinsic docs 2018-10-22 17:14:46 +03:00
Ilya Gorbunov 63c5e18149 capitalize/decapitalize docs in stdlib/js 2018-10-22 17:14:45 +03:00
Ilya Gorbunov a1c0c679ee Common String.toNumber: clarify thrown exception types 2018-10-22 17:14:45 +03:00
Ilya Gorbunov 1ed136a621 kotlin.system docs improvements
- Rewrite exitProcess docs in a more common way
- Add [block] parameter reference
2018-10-22 17:14:45 +03:00