can someone walk me through this thing?
# javascript
h
can someone walk me through this thing?
r
Could you please provide some details about failures you get?
h
i think the problem is that im trying to compile
master
branch with my
1.2.40
plugin
gradle complains about compilation error of the script, but i cant find the log
found it.
Copy code
C:\rep\kotlin\kotlin\buildSrc\src\main\kotlin\pill\parser.kt: (490, 9): The feature "lateinit local variables" is only available since language version 1.2
e: C:\rep\kotlin\kotlin\buildSrc\src\main\kotlin\pill\render.kt: (76, 44): Smart cast to 'PSourceRootKotlinOptions' is impossible, because 'kotlinCompileOptions' is a local variable that is captured by a changing closure
e: C:\rep\kotlin\kotlin\buildSrc\src\main\kotlin\pill\render.kt: (86, 29): Smart cast to 'PSourceRootKotlinOptions' is impossible, because 'kotlinCompileOptions' is a local variable that is captured by a changing closure
e: C:\rep\kotlin\kotlin\buildSrc\src\main\kotlin\pill\render.kt: (87, 29): Smart cast to 'PSourceRootKotlinOptions' is impossible, because 'kotlinCompileOptions' is a local variable that is captured by a changing closure
e: C:\rep\kotlin\kotlin\buildSrc\src\main\kotlin\pill\render.kt: (88, 29): Smart cast to 'PSourceRootKotlinOptions' is impossible, because 'kotlinCompileOptions' is a local variable that is captured by a changing closure
e: C:\rep\kotlin\kotlin\buildSrc\src\main\kotlin\pill\render.kt: (89, 29): Smart cast to 'PSourceRootKotlinOptions' is impossible, because 'kotlinCompileOptions' is a local variable that is captured by a changing closure
e: C:\rep\kotlin\kotlin\buildSrc\src\main\kotlin\pill\render.kt: (90, 29): Smart cast to 'PSourceRootKotlinOptions' is impossible, because 'kotlinCompileOptions' is a local variable that is captured by a changing closure
e: C:\rep\kotlin\kotlin\buildSrc\src\main\kotlin\pill\render.kt: (91, 29): Smart cast to 'PSourceRootKotlinOptions' is impossible, because 'kotlinCompileOptions' is a local variable that is captured by a changing closure
e: C:\rep\kotlin\kotlin\buildSrc\src\main\kotlin\pill\render.kt: (92, 29): Smart cast to 'PSourceRootKotlinOptions' is impossible, because 'kotlinCompileOptions' is a local variable that is captured by a changing closure
a
Could you run
./gradlew clean dist
in the terminal from the root folder of the project and see if it succeeds?
h
you mean root kotlin or root stdlib js?
a
kotlin
h
i didnt even try to build it 🙂
a
You should
h
thanks, ill try
a
A lot of our build configurations rely on
dist
, but sometimes the explicit dependency is missing 😞
Also it will build the stdlib for Kotlin/JS
And copy to dist/js/kotlin.js
(that's just a side effect though)
h
ok, now i have
kotlin-stdlib-js-1.2-SNAPSHOT.jar
and three other files. Can I add this to the project which uses kotlin plugin 1.2.40, or do I have to rebuild whole idea plugin to use that thing?
yep, looks like it works