Talon
08/10/2018, 11:30 PMkotlin_questions
08/11/2018, 4:19 PMkotlin_questions
08/12/2018, 9:25 PMjuliocbcotta
08/12/2018, 10:49 PMbloodshura
08/14/2018, 7:27 AMfair_enough
08/14/2018, 8:22 AMMessageApi.prototype.onMessage_ep0k5p$ = function (listener) {
this.socketApi_0.addListener_lgim5c$(KWebSocket$Companion_getInstance().EVENT_MESSAGE, MessageApi$onMessage$lambda(listener));
};
This was not created:
Object.defineProperty(MessageApi.prototype, 'onMessage', {
get: function () {
return this.onMessage_ep0k5p;
}
});
This is the class:
class MessageApi(private val socketApi: ISocketApi, override val user: String = WebAppUser) : IMessageApi {
override fun onMessage(listener: MessageListener) {
socketApi.addListener(KWebSocket.EVENT_MESSAGE) {
it.data?.apply {
listener(this)
} ?: println("Message text was null: $it")
}
}
override fun send(text: String) {
socketApi.webSocket.send(SocketData(SocketDataType.Default, user, KWebSocket.EVENT_MESSAGE, text))
}
}
coder82
08/15/2018, 12:53 PMjuliocbcotta
08/16/2018, 6:15 PMcoder82
08/18/2018, 10:12 PMjuliocbcotta
08/21/2018, 12:58 AMcoder82
08/21/2018, 2:53 PMcoder82
08/22/2018, 1:53 PMpatrickdelconte
08/22/2018, 2:41 PMcoder82
08/27/2018, 4:48 PMcoder82
08/27/2018, 8:36 PMgaetan
08/31/2018, 2:18 PMerror: duplicate target file will be created for '/Users/gaetan/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-js/1.2.61/6e6ada4e826d8c66053f9383a6778b2324853f2/kotlin-stdlib-js-1.2.61.jar!kotlin.js' and '/Users/gaetan/dev/data2viz/time/d2v-time-js/build/libs/d2v-time-js-0.6.0.jar!lib/kotlin.js
Has anyone already seen this message and understood the problem?coder82
09/02/2018, 11:43 PMtimrijckaert
09/03/2018, 3:25 PMjacob
09/04/2018, 1:17 AMbloder
09/05/2018, 7:35 PMModule not found: Error: Can't resolve 'kotlinx-html-js' in '/home/bloder/KotlinJsProjects/bloder-polymer-playground/polymer-playground/build/js'
I've already tried to import kotlin-html-js in node dependencies but it's still occurring, I'm using kotlin front end plugin, and I'm importing the library like this
dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-html-js:0.6.9"
}
napperley
09/05/2018, 11:54 PM> Task :js:runJest FAILED
FAIL build/test/js_test.js
● Test suite failed to run
Cannot find module 'kotlin' from 'js_test.js'
3 | define(['exports', 'kotlin', 'kotlin-test'], factory);
4 | else if (typeof exports === 'object')
> 5 | factory(module.exports, require('kotlin'), require('kotlin-test'));
| ^
6 | else {
7 | if (typeof kotlin === 'undefined') {
8 | throw new Error("Error loading module 'js_test'. Its dependency 'kotlin' was not found. Please, check whether 'kotlin' is loaded prior to 'js_test'.");
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:221:17)
at require (build/test/js_test.js:5:29)
at Object.<anonymous> (build/test/js_test.js:1:2)
Test Suites: 1 failed, 1 total
What is the way to resolve JS dependencies?Vinicius Carvalho
09/06/2018, 7:04 PMVinicius Carvalho
09/06/2018, 7:06 PMvar onmessage: ((Event) -> dynamic)?
steamstreet
09/06/2018, 9:27 PMnapperley
09/08/2018, 5:12 AMamatsehor
09/10/2018, 7:34 PMnapperley
09/12/2018, 8:06 AM● org.webscene.core.test.dom › DomQueryTest › testFetchExistingPageId
ClassCastException: Illegal cast
36 | element.hasAttribute("pageId")
37 | }
> 38 | return if (metaElements.isNotEmpty()) metaElements.first().getAttribute("pageId") ?: "" else ""
| ^
robstoll
09/12/2018, 9:08 AMnapperley
09/13/2018, 3:29 AMjkbbwr
09/15/2018, 10:32 PM