Irfan
08/03/2022, 8:29 AMAshley Arthur
08/03/2022, 11:04 AMfun hello(param1:String, param2:String, param3:Boolean = false ) {}
JS.dt.ts
hello(param1?: string, param2?: string, param3?: boolean): void;
Björn Lilleike
08/03/2022, 3:33 PMandylamax
08/04/2022, 10:00 AMinfo There appears to be trouble with your network connection. Retrying...
for kotlin js builds too frequently in github actions lately? or is it just me? Whats even more ironik is simply reruning the job, passes.shama
08/04/2022, 10:24 PMalec
08/05/2022, 3:24 PM> Task :sqldelight:kotlinNpmInstall
error <https://registry.yarnpkg.com/typescript/-/typescript-3.9.5.tgz>: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, stat '/Users/runner/Library/Caches/Yarn/v6/npm-typescript-3.9.5-586f0dba300cde8be52dd1ac4f7e1009c1b13f36-integrity/node_modules/typescript/lib/typingsInstaller.js'"
> Task :sqldelight:kotlinNpmInstall FAILED
...
> Task :web:kotlinSourcesJar
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':sqldelight:kotlinNpmInstall'.
> Process 'Resolving NPM dependencies using yarn' returns 1
yarn install v1.22.17
and running out of ideas for what could be going on. It might be a corrupt cache of some sort but this is happening on CI and I'm not sure how to force a clear of the cacheAyfri
08/06/2022, 2:30 PMmartmists
08/07/2022, 2:27 AMasset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
index.js (516 KiB)
entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (516 KiB)
index.js
webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit <https://webpack.js.org/guides/code-splitting/>
After going to that website it remains a bit unclear how I should approach this, for two reasons:
• How do I effectively set this up for Kotlin/JS?
• The generated filenames by this action seem somewhat random; How would I handle this in my pebble templates? (currently hardcoded to index.js)Norbi
08/07/2022, 1:37 PM[webpack-cli] TypeError: cli.isMultipleCompiler is not a function
I found some discussion about this problem (eg. https://kotlinlang.slack.com/archives/C0B8L3U69/p1655183383117179?thread_ts=1655180593.195219&cid=C0B8L3U69) and a reported issue (KT-52776 KJS / Gradle: Webpack version update despite yarn.lock breaks Kotlin/JS build).
Unfortunatelly the workaround does not work for me.
Do you have any idea how this could be solved?
Thanks.Tóth István Zoltán
08/09/2022, 12:10 PMsimon ballantyne
08/10/2022, 10:12 PMClaude Brisson
08/11/2022, 10:43 AMCLOVIS
08/13/2022, 10:18 PMjsMain/resources
directory of my library module, but it doesn't end up in build/js/packages
for the final module. Is there anything needed to tell Gradle to put resources from dependencies there?Sachinda Liyanaarachchi
08/18/2022, 9:01 AM.js
file in index.html
My current problem is that there are two build folders being created. 1 in project folder and one in shared folder.David Whittaker
08/20/2022, 5:28 AM/gradlew run
. But I want to be able to take the JavaScript output and use it in my existing app. Where is the JS? I see there's a /build/js folder but no .js files, even after doing a ./gradlew build
. :: confused ::Tom Yuval
08/20/2022, 1:24 PMjuh juh
08/21/2022, 7:30 PMFloat.fromBits((-1e11f).toRawBits())
without getting distorted resultsAyfri
08/22/2022, 4:54 AMPartial<something>
? It would set all the external fields to nullable and override ones from the parents.Shan
08/22/2022, 5:39 AMThe engine "node" is incompatible with this module. Expected version ">=16.0.0". Got "14.17.0"
Is there a way to configure the kotlinNpmInstall
task to use a different version of node?Alexander Weickmann
08/22/2022, 10:48 AMinline fun ChildrenBuilder.auiDropdownMenu(block: RDOMBuilder<AUI_DROPDOWN_MENU>.() -> Unit): Unit = tag(block) {
AUI_DROPDOWN_MENU(mapOf(), it)
}
class AUI_DROPDOWN_MENU(
initialAttributes: Map<String, String>,
override val consumer: TagConsumer<*>
) : HTMLTag("aui-dropdown-menu", consumer, initialAttributes, null, false, false),
CommonAttributeGroupFacadeFlowInteractivePhrasingContent
but now I want to migrate this code and cannot find out how to do itAlexey Polyusov
08/23/2022, 8:57 PMAyfri
08/24/2022, 2:49 AMJohn O'Reilly
08/24/2022, 9:09 AMShan
08/27/2022, 7:47 PMdynamic
types:
I have a js function from an imported library which returns dynamic
. I'm trying to cast the return type's properties to kotlin types to create a typesafe wrapper of sorts. I can cast js primitives to kotlin primitives fine, but anything more complex like a js Uint8Array
as UByteArray
give me a ClassCastException
. Wondering what the strategy is for this? Do I need to create my own Uint8Array
type & implementations?eygraber
08/30/2022, 9:38 PMLEGACY
and IR
compilers to support some users (I was only using IR
before).
After doing so I got strange test failures that were all related to conditions in a when
not matching properly.
Works on JS IR and all other backends except JS LEGACY:
when(uriString[end]) {
'/',
'\\',
'?',
'#'
-> break // break isn't executed when uriString[end] == '/'
}
Works on all backends:
val c = uriString[end]
if(c == '/' || c == '\\' || c == '?' || c == '#') break
Is behavior like this expected?Ayfri
08/31/2022, 9:16 AMx: Number, y: Number
, how would I create an operator function plus
, should I convert or unsafeCast<Double>
the numbers for every operation I need ? Or add operator functions to Number with unsafeCast<Double>
every time ?包子such fun
08/31/2022, 10:00 AM包子such fun
08/31/2022, 3:43 PMShan
09/02/2022, 11:57 PMUint8Array
into a utf-8 string. Anyone know the best practice way to do this, since a Uint8Array
isn't back by a UByteArray
internally (from what I can tell) ?Laurent Laborde
09/05/2022, 10:03 AM