GarouDan
03/18/2018, 4:49 PMilya.gorbunov
04/05/2018, 10:53 AMYuku Kotani
04/12/2018, 3:37 PMgradlew generateTests
in root directory, the error CreateProcess error=206, The filename or extension is too long
has occurred. Does anyone know a solution?
JDK is at C:\Program Files\Java\jdk1.8.0_151\bin\java.exe
Kotlin root folder is at F:\Git\kotlin
nish
04/18/2018, 7:34 PMK2JVMCompiler().compile(out, arguments)
Is there a way to have it use the bundled Kotlin distribution in my current classpath instead of having to pass external jars using the -kotlin-home
flag?
I want to be able to bundle the Kotlin embeddable compiler with everything that it needs to work in a single binary without requiring any external fileskarelpeeters
04/20/2018, 7:55 AMpp.amorim
04/26/2018, 10:12 AMuli
04/26/2018, 12:10 PMvar deadline = 10
tailrec fun recursionTest() {
deadline--
run {
println("$deadline")
return recursionTest()
}
}
fun main(args: Array<String>) {
recursionTest()
Above code prints an endless row of `9`s. And the byte code decompiles to this Java code:
public static final void recursionTest() {
int var0 = deadline;
deadline += -1;
while(true) {
String var2 = "" + deadline;
System.out.println(var2);
}
}
wickedev
04/26/2018, 12:26 PMalllex
04/27/2018, 2:17 PMEgor Trutenko
05/09/2018, 4:17 AMprivate object Holder { val INSTANCE }
companion object { instance: ClassName by lazy { Holder.INSTANCE } }
Is kinda irritating to write and read.Andrey
05/14/2018, 6:32 AMdimiii
05/14/2018, 2:11 PMjameswald
05/19/2018, 5:34 PMZac Sweers
05/27/2018, 11:22 PMdave
06/05/2018, 3:28 AMBoolean.Companion.fromJson
like I can with Int.Companion.fromJson
and String.Companion.fromJson
(long story). I’m happy to send a PR to implement this very difficult change 😉, but I’m guessing it will need proper consideration first as it is affecting something fundamental like Boolean
.jdemeulenaere
06/10/2018, 5:44 PMyawkat
06/17/2018, 10:44 AMJonathan Walsh
06/21/2018, 4:55 PMnavi
06/27/2018, 1:08 AMkarelpeeters
06/29/2018, 12:42 PM===
in the grammer? http://kotlinlang.org/docs/reference/grammar.html ctrl + F
doesn't find anything.ice1000
07/01/2018, 3:27 AM~/git-repos/kotlin λ> ./gradlew --no-daemon -m
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: <https://docs.gradle.org/4.7/userguide/gradle_daemon.html>.
Daemon will be stopped at the end of the build stopping after processing
> Task :buildSrc:prepare-deps:android-dx:untarDxSources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':buildSrc:prepare-deps:android-dx:dxSourcesTar'.
> Could not resolve google:dx:0.
Required by:
project :buildSrc:prepare-deps:android-dx
> Could not resolve google:dx:0.
> Could not get resource '<https://dl-ssl.google.com/android/repository/dx_0.tar.gz>'.
> Could not HEAD '<https://dl-ssl.google.com/android/repository/dx_0.tar.gz>'.
> Connect to <http://dl-ssl.google.com:443|dl-ssl.google.com:443> [<http://dl-ssl.google.com/74.125.204.93|dl-ssl.google.com/74.125.204.93>, <http://dl-ssl.google.com/74.125.204.91|dl-ssl.google.com/74.125.204.91>, <http://dl-ssl.google.com/74.125.204.136|dl-ssl.google.com/74.125.204.136>, <http://dl-ssl.google.com/74.125.204.190|dl-ssl.google.com/74.125.204.190>, <http://dl-ssl.google.com/2404:6800:4008:c07:0:0:0:be]|dl-ssl.google.com/2404:6800:4008:c07:0:0:0:be]> failed: 网络不可达 (connect failed)
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
ice1000
07/01/2018, 3:31 AMjdemeulenaere
07/01/2018, 9:51 PMcart
07/03/2018, 10:00 PMgradle build
runs a ton of things, I really just want to build the Kotlin standard library and the compiler. Is this possible?raulraja
07/04/2018, 3:01 PMextension
in grammar. (grammar/src/modifiers.grm) What are other relevant places that need to change for the grammar to be valid Kotlin syntax?
- Function/Class/Interface args scope resolution. Interested as to where it is decided which extension functions apply and what the this
and parent scopes refer to.
- Call scope resolution tests: What is an effective way to test my changes to resolution are correct or similar tests I can use as base for the type class definition and resolution tests?
In general I’m also interested if anyone has stories to tell as to how they go about adding a similar feature to the compiler, what is the flow usually looks like when working in this project. Ultimately if anyone wants to help please contact me, thanks!jdemeulenaere
07/04/2018, 6:55 PMcart
07/05/2018, 10:46 PM./gradlew -q compiler:dependencies
I get implementation - Implementation only dependencies for source set 'main'. (n)
No dependencies
and lots of stuff under testCompile
shouldn't there be dependencies for building the project not just testing?cart
07/09/2018, 6:14 PMWARNING! Removed exclusions from kotlin-stdlib dependency of kotlin-android-extensions-runtime artifact's maven metadata, check kotlin-stdlib dependency of :kotlin-android-extensions-runtime project
redrield
07/20/2018, 3:06 PMredrield
07/21/2018, 10:48 PMredrield
07/21/2018, 10:48 PMdsavvinov
07/22/2018, 10:34 AM./gradlew dist install publish
2. Then, you can just call ./gradlew dist -Pbootstrap.local
redrield
07/22/2018, 4:58 PM