How to use the compiler I got by running `gradle d...
# kontributors
s
How to use the compiler I got by running
gradle dist
to compile the repo itself ? Made some changes to compiler, worrying that the test case may not be comprehensive enough.
s
We at Kotlin/Py are using the binaries generated in dist dir like this: https://github.com/krzema12/kotlin-python/blob/python-backend/python/experiments/README.md#generating-with-ir-backend Should be similar for other targets
i
First, do
./gradlew publish
, after that you can invoke gradle with
-Pbootstrap.local
flag (or
bootstrap.local=true
line in local.properties file) to use those locally published artifacts for compiling Kotlin.
s
@ilya.gorbunov
gradlew publish
failed for task
:kotlin-test-js-runner:yarnSetup
i
From the stacktrace, it looks like the problem is in parsing Uri in getProxyUri function. Do you have some proxy settings configured?
s
@ilya.gorbunov Thank you for your kind response. It's weird, if I manually execute
npm install yarn
in the same npm directory with the same options, the error disappears. Run
./gradlew publish
in wsl2, there is no error too, the error seems to only happen on Windows. Finally, I bump the version of Node from
16.2.0
to
16.7.0
, the error disappears on Windows too. Now I can move on.