rbares
04/05/2020, 9:48 AMClassNotFoundException
, and they also fail when running gradlew plugins:android-extensions-compiler:test
from the command line. At best it seems like the dependencies are set up awkwardly elsewhere, in a different gradle script. What is the correct way to debug these tests?turansky
04/11/2020, 12:13 AM1.4.0-dev-1818
(used in master) removed from bintray!
Which version recommended before master update?
@ilya.gorbunov Was 1.4.0-dev-5087
planned as next?Dominik wuttke
04/26/2020, 8:40 PMSubroh Nishikori
05/03/2020, 9:50 AMdevDependencies
in the org.jetbrains.kotlin.js
plugin.
I tried to implement it in the Kotlin repository that I forked, and it worked as expected.
So I want to send a Pull Request, but is there a problem?diesieben07
06/14/2020, 2:57 PMgradlew install
. Now I can see all the artifacts in my local maven repository. When trying to do a gradle build referencing the snapshot artifacts in my local maven repo I get the following error: Built-in class kotlin.Enum is not found. My build.gradle.kts and settings.gradle.kts.
Any advice?Samyak Jain
06/15/2020, 5:52 AMchr
06/24/2020, 7:38 PM./gradlew ideaPlugin
into Android Studio? Once that finishes I zip /dist/artifacts/ideaPlugin/Kotlin
and try to install that as a plugin from disk, but I always get the message “Plugin ‘Kotlin’ is incompatible with this installation”. Is there something I need to configure before building the plugin to note which IDE I want to build it for?Samyak Jain
06/26/2020, 3:45 PM:kotlin-gradle-plugin:classes
\--- :kotlin-gradle-plugin:compileJava
+--- :kotlin-gradle-plugin:compileKotlin
| \--- :kotlin-gradle-plugin:jar
| +--- :kotlin-gradle-plugin:classes (*)
| +--- :kotlin-gradle-plugin:compileKotlin (*)
| \--- :kotlin-gradle-plugin:inspectClassesForKotlinIC
| \--- :kotlin-gradle-plugin:classes (*)
\--- :kotlin-gradle-plugin:jar (*)
While running kotlin v1.3.30 from the gradle 4.4.1 without using kotlin-DSL, The build fails with the above circular dependencies. Can someone explain me the circular dependency structure, I feel like a little lost here.Samyak Jain
07/04/2020, 6:45 PMfind . -name 'kotlin-annotation-processing-gradle'
but wasn't able to find it in the kotlin-source + plus googling doesn't help either 😕Samyak Jain
07/07/2020, 7:39 AM:kotlin-compiler-embeddable:install (Thread[Task worker for ':' Thread 4,5,main]) started.
:kotlin-compiler-embeddable:install
Putting task artifact state for task ':kotlin-compiler-embeddable:install' into context took 0.0 secs.
Up-to-date check for task ':kotlin-compiler-embeddable:install' took 0.0 secs. It is not up-to-date because:
Task has not declared any outputs.
Publishing configuration: configuration ':kotlin-compiler-embeddable:archives'
Publishing to org.gradle.api.publication.maven.internal.deployer.BaseMavenInstaller@85c2fcf
:kotlin-compiler-embeddable:install FAILED
:kotlin-compiler-embeddable:install (Thread[Task worker for ':' Thread 4,5,main]) completed. Took 0.002 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':kotlin-compiler-embeddable:install'.
Could not publish configuration 'archives'
> Could not write to file '/home/samyak/Kotlin/master/kotlin-1.3.30/prepare/compiler-embeddable/build/poms/pom-default.xml'.
* Try:
Run with --debug option to get more log output. Run with --scan to get full insights.
I'm not quite sure why it is not able to write to the file? Any help is appreciated.Samyak Jain
07/17/2020, 5:32 PMRenee Vandervelde
07/18/2020, 5:56 PM@SinceKotlin
and what version to target when using it?
i.e. Should it be used any time a public method is added? and do the same rules apply to libraries like kotlin.test in addition to stdlib?camdenorrb
08/11/2020, 11:52 PMAlex Ch
08/13/2020, 8:57 PM@ExperimentalUnsignedTypes
?Esa
08/20/2020, 11:25 AMIterable<T>
that has been very useful to me personally, and I wish to make a contribution to the stdlib with those. 🙂 I read through this link and it suggests to let you know of my plans. So here's what the functions are basically:
list.validatedFold
- this is a function that iterates through the elements of an ordered list, and verifies that elements n
and n+1
pass some validation function. returns true if all elements pass, or false on the first element that does not pass (early return).
list.flatMapIndexedNotNull
- essentially what the name says, it was relevant for me in one case and I didn't find it in the stdlib.
Do you think these are appropriate contributions?cketti
09/04/2020, 4:23 PMilyagulya
09/17/2020, 8:55 AMilyagulya
09/18/2020, 10:16 AMUzi Landsmann
10/03/2020, 7:19 AM@sample
line be?
• in the expect
• in all actual
implementations
• both in the expect
and the actual
implementationsBrutus5000
10/07/2020, 11:49 AMsumOfOrNull
so I wrote my own very simple one:
inline fun <T> Iterable<T>.sumOfOrNull(selector: (T) -> Double?): Double? =
this.mapNotNull(selector)
.reduceOrNull { acc, i -> acc + i }
Does it make sense to add it to the standard library?
Is this even suitable? I see the standard library uses mostly iterators, for
or while
, and not that much high level stuff (I guess due to performance?)zmunm
10/08/2020, 7:12 AMclass Test {
interface Example {
operator fun <T> get(key: String, defaultValue: T): T
}
class ExampleImpl : Example {
override fun <T> get(key: String, defaultValue: T): T = when (defaultValue) {
is Int -> defaultValue
else -> // Debug here is recognized as'Long' on `exampleError`
throw UnsupportedOperationException("NOT_YET_IMPLEMENT")
}
}
// exception occurs only in 1.4
@Test(expected = UnsupportedOperationException::class)
fun exampleError() {
val example: Example = ExampleImpl()
org.junit.Assert.assertEquals(example["key", 1], 1)
}
// Success
@Test
fun exampleSuccess() {
val example: Example = ExampleImpl()
junit.framework.TestCase.assertEquals(example["key", 1], 1)
}
}
I think this is the cause
TestCase.assertEquals
public static void assertEquals(int expected, int actual)
Assert.assertEquals
public static void assertEquals(Object expected, Object actual) // There is no part defined as int type
Is there anyone who can help?wjur
10/26/2020, 8:56 PMkotlin.reflect
and I want to contribute. I did some research and here’s what I found. Calling metod.kotlinFunction
on a method that is a suspend function with inline class as a return type results in an error. It happens exactly in InlineClassAwareCaller.kt#L100. It is similar to KT-34024 , but it’s not exactly it.
I went through the code and now I have a working minimal setup that reproduces the problem and some ideas how to fix it. I’d like to apply my ideas, starting with writing failing tests. I tried to find out how to write one, but I couldn’t find any instructions for that. I checked what git-blame says about the file and I found a commit which modifies the code and adds some tests. The commit adds, for example, compiler/testData/codegen/box/reflection/callBy/inlineClassDefaultArguments.kt, and, in the beginning of the file, there is:
// IGNORE_BACKEND: JS_IR, JS, NATIVE
// WITH_REFLECT
I found another one with:
// TARGET_BACKEND: JVM
// WITH_REFLECT
// WITH_COROUTINES
They seem to be instructions for a tool used in tests. Do you have any manual for it? Eg what options are available?
Is it a good idea if I try to mimic what the linked commit does? I mean, is it sufficient to add *.kt file in the compile/testData/codegen directory and call ./gradlew coreLibTests
?
Thank you :)David
10/27/2020, 9:17 PMIaroslav Postovalov
11/30/2020, 3:39 PMmisc.xml
and other files that shouldn't be changed by a PR?Justin Wei
12/05/2020, 2:44 AMIaroslav Postovalov
12/26/2020, 1:41 PMZac Sweers
01/02/2021, 2:29 AMJustin Wei
01/27/2021, 3:31 AMZhelenskiy
02/08/2021, 3:39 PMCollection
instance for `Progression`s: https://github.com/JetBrains/kotlin/pull/4095
Connected issue: https://youtrack.jetbrains.com/issue/KT-34617Iaroslav Postovalov
03/04/2021, 1:44 PMIaroslav Postovalov
03/04/2021, 1:44 PMstanislav.erokhin
03/04/2021, 1:47 PMIaroslav Postovalov
03/04/2021, 1:51 PM