Tomasz Krakowiak
03/31/2021, 9:49 AMHyugga
04/08/2021, 4:03 AMapatrida
05/07/2021, 7:34 PMOrNull
and here is an idea to start a discussion:
https://github.com/apatrida/KEEP/blob/master/proposals/OrNull-syntactical-sugar.mdFranz Ka
05/12/2021, 5:47 PMIaroslav Postovalov
05/28/2021, 12:15 PMdiesieben07
06/03/2021, 6:02 PMjs/js.translator/testData/typescript-export
. The readme there tells me I first need to run the box tests via JUnit. I don't know how to do this.
I ran test
task from js:js.tests
however it takes forever (I gave up and stopped it after like 1200 very slow tests.... can I filter these somehow?). I ran quickText
, which seems to be much faster (it's still running, at 4000 tests now...), however it has failed tests (again how can I just run the tests that I want to?).
Additionally, I have no idea how I would go about making my own set of tests in the typescript-export
set? Do I just copy one of the existing folders and go from there?
Thanks for any insight! 🙈Dave
06/09/2021, 6:38 AMmcpiroman
06/11/2021, 2:26 PMplugins { kolin("js") version "1.5.30.1234-local" }
, if that's even possible, this is.
2. Can I use the latest dev/nightly builds like build-1.5.30-dev-2088 which I see are frequent on github release page? Kotlin itself uses those to bootstrap itself and I have tried adding some of the gradle dependency links from the repo, but with no luck.mcpiroman
06/17/2021, 2:28 PMUnexpected state for resolution: Unknown
error for every gradle project.
The resulting error message is Could not resolve all dependencies for configuration ':allopen-ide-plugin:compileClasspath'
but I guess that's because it's the first project.
When I do Refresh gradle dependencies
on the root (kotlin
) project, the gradle model builds, but is not imported.
But when I then Reload Gradle Project
the circle repeats, see line 2.
The thing is, when I execute gradlew assemble
in the shell, for example, everything builds fine. Hence I do not post this at #gradle
I've been instructed to ask here but I apologize if this is not the correct place.Iaroslav Postovalov
06/18/2021, 6:43 PMIrClass
doesn't have sealedSubclasses
. I see only two options to solve this problem:
1. Publish IrBuiltIns.toIrSymbol
function to use ClassDescriptor.getSealedSubclasses
(and it seems to be a bad way).
2. Add such property and support it in fir2ir
and psi2ir
.
I need some opinions from the compiler team to get if I can add this property or this problem can be solved in another way.Justin
07/10/2021, 8:56 PMSlackbot
07/16/2021, 1:11 PMrnett
07/31/2021, 5:18 AMPiotr Krzemiński
08/09/2021, 10:09 AMproperties_initialized_someFileName_kt
is checked inside the init functions (we base our Python backend on the JS one, so this also happens in JS/IR backend). The problem in Python is that variables need to be initialized before they are read, so for each IrFile I need to produce a top-level assignment properties_initialized_someFileName_kt = False
.
Something along these lines (forgive the imprecise arguments, the returned type is the real problem):
JsIrBuilder.buildSetField(
symbol = ...Name.identifier("properties initialized $fileName")...,
receiver = null,
value = JsIrBuilder.buildBoolean(context.irBuiltIns.booleanType, false)
)
I tried adapting existing lowerings to emit such IR entity, but I don't know how to put IrSetFieldImpl
in the IR output because lowerings produce a list of IrDeclaration
and the types just don't match. I sort of understand lowerings that transform some existing IR node to something else, but here I need to produce something new (not map from A to B). It would be cool if you could guide me how to write such lowering, and maybe also refer me to some docs about internal compiler API.scaventz
08/16/2021, 3:12 PMgradle dist
to compile the repo itself ? Made some changes to compiler, worrying that the test case may not be comprehensive enough.Piotr Krzemiński
08/20/2021, 5:43 AMmcpiroman
08/26/2021, 2:47 PMAlexey Subach
08/28/2021, 6:54 PMmcpiroman
09/02/2021, 8:40 AMrahulc29
09/11/2021, 8:39 AMrahulc29
09/12/2021, 6:38 AMIan Lynagh
10/06/2021, 10:31 AMcompiler/fir/analysis-tests/build/reports/tests/test/index.html
, but given all the red on https://teamcity.jetbrains.com/project.html?tab=projectOverview&projectId=Kotlin I'd just like to check whether this is normal before I try to work out what's going wrong.Ian Lynagh
10/07/2021, 1:47 PMcompilerTest
with a particular number of threads? Passing -Porg.gradle.parallel=false
, -Dkotlin.test.maxParallelForks=1
and -Porg.gradle.workers.max=1
doesn't seem to be having any effectLuffy D. Monkey
10/07/2021, 6:23 PMNo compatible toolchains found for request filter: {languageVersion=6, vendor=any, implementation=vendor-specific} (auto-detect true, auto-download true)
error, how do I resolve this error? I am on macOS and have insatlled java6 using brew as mentioned in the README.Mike Rylander
10/07/2021, 11:41 PMsolonovamax
10/25/2021, 3:43 PMkotlin-native
in the AUR and am having trouble building it. Currently, it's giving me a bunch of errors when I try to run gradle :bundle
, with the message e: warnings found and -Werror specified
.
I've tried the following:
1. Compiling from the root directory, with gradle :kotlin-native:bundle
2. Compiling from the kotlin-native
directory with gradle :bundle
3. Adding kotlin.build.disable.werror=true
to the gradle.properties
in both the root and kotlin-native
directories, and performing 1 and 2 again.
4. Modifying the property KotlinBuildProperties.disableWerror
in buildSrc/src/main/kotlin/BuildPropertiesExt.kt
to make it always return true
, then performing 1 and 2 again.
5. Commenting out allWarningsAsErrors = true
in the build.gradle.kts
(line 529) and performing 1 and 2 again.
6. Passing -Pkotlin.build.disable.werror=true
to gradle, and performing 1 and 2 again.
At this point, I'm stumped on what I need to do to build it properly.Piotr Krzemiński
12/02/2021, 12:38 PMscaventz
12/07/2021, 4:16 AMJVM_IR
lowering code, which changes the jvm bytecode of stdlib
classes, can I just run ./gradlew jvmCompilerTest
to test the change or I should run something like ./gradlew coreLibsTest
to build the stdlib
first?Icyrockton
12/18/2021, 2:15 AMJunjie Wu
12/20/2021, 2:45 AMJunjie Wu
12/20/2021, 2:45 AMdmitriy.novozhilov
12/20/2021, 7:32 AMAssignee
field, so you can just comment in issue that you will work on it and then just mention issue number in your PRJunjie Wu
12/20/2021, 7:33 AMdmitriy.novozhilov
12/20/2021, 7:35 AMJunjie Wu
12/20/2021, 9:35 AMdmitriy.novozhilov
12/20/2021, 9:36 AMJunjie Wu
12/20/2021, 6:18 PMilya.gorbunov
12/21/2021, 7:52 AMJunjie Wu
12/21/2021, 8:37 AMilya.gorbunov
12/21/2021, 8:38 AMJunjie Wu
12/21/2021, 8:39 AM