https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
kvision
  • l

    Lars Erik Rojeras

    09/01/2021, 8:44 AM
    Migrating from 4.7.1 to 5.1.0 (and still using legacy compiler). All seems to work, except that the table definitions are not applied. I have a table type definition as:
    setOf(TableType.BORDERED, TableType.SMALL, TableType.STRIPED, TableType.HOVER)
    But it is rendered as a plain table without borders, stripes etc. When I use Intellij to check the documentation of BORDERED I see:
    io.kvision.table.TableType 
    enum entry BORDERED 
    Enum constant ordinal: 1
      Gradle: io.kvision:kvision-bootstrap:5.1.0
    If I check to the table definition i Showcase/BasicTab (which renders correctly) it says:
    io.kvision.table.TableType 
    enum entry BORDERED 
    Enum constant ordinal: 1
      Gradle: io.kvision:kvision-bootstrap:klib:5.1.0
    I seem to be missing a klib. How can I fix this?
    r
    • 2
    • 4
  • u

    UNuX

    09/02/2021, 1:28 PM
    How do I "properly" get a row number clicked in Tabulator? This works on 2 of my views:
    val tabulatorRowIndex = ((event.detail as io.kvision.tabulator.js.Tabulator.RowComponent).getIndex() as Int) - 1
    But on the third its failing on cast exception
    r
    m
    • 3
    • 21
  • u

    UNuX

    09/02/2021, 2:34 PM
    How do I serialize a class with null fields? (I'm trying to pass it to backend using the rest client)
    Serializer for class 'null' is not found.
    r
    • 2
    • 4
  • r

    rocketraman

    09/14/2021, 1:23 PM
    My recent go-to architecture for web/mobile apps has been a typed backend API via graphql, consumed with Apollo multi-platform on mobile and Apollo Client on web. I'm starting a new side project and am considering other approaches, like KVision. One thing that scares me is that KVision moves me in a direction away from the "native frontend" approach that JetBrains/KMM is pushing. For example, I don't want to use Cordova for Android -- I want to use Compose. I'd like to experiment with Compose for web and potentially desktop as well. Is anyone using the RPC layer from KVision, but integrating that with native client UI?
    r
    • 2
    • 37
  • t

    Tomas Kormanak

    09/15/2021, 3:23 PM
    Hi, is it possible to use form with data class and keep some properties, which are not editable (there is no matching field in form). For example:
    data class Comment(val title: String val note: String, author_id: Int)
    And I the form contains only title and note, when I call
    form,getData()
    I get an error saying
    author_id
    is required.
    r
    • 2
    • 8
  • a

    ashmelev

    09/16/2021, 9:07 PM
    @Robert Jaros Hi. I have a situation where I am trying to upload a large image file and need the result from the MultiPart Form POST. I am using the Ajax version of your upload technique (as far as I could properly grasp from the doc). I am uploading the file to an endpoint on the server (Spring WebFlux), say
    /api/v1/image/upload
    . The server-side is reacting correctly and the file is uploading properly and the server returns a Flux<String> with success/fail messages. The problem is that I cannot sort out how to capture that response stream and navigate the UI to a page where I can display results. Rather, the browser navigates to
    /api/v1/image/upload
    and displays the results as text there. If I then hit the "Back button" in the browser I am back to normal Frontend code. In the JQuery docs there should be a
    success
    handler that would catch the servers response data, but I have been unable to sort out where to hook into that in KVision. I'm putting sa sample of my "upload" Frontend code into the thread.
    r
    • 2
    • 16
  • u

    UNuX

    09/22/2021, 5:43 AM
    Is it possible to format numbers in a spinner? I'd like them to be displayed like this in the form as the user enters them: 10000 as: 10 000 etc.
    r
    • 2
    • 1
  • u

    UNuX

    09/22/2021, 10:55 AM
    Is there any calendar widget I could use that could be presented on a full page?
    r
    • 2
    • 17
  • r

    Robert Jaros

    09/25/2021, 11:22 AM
    777 ⭐ on GitHub 🤩
    🎉 2
    👍 2
    r
    • 2
    • 1
  • i

    Ivan Pavlov

    09/28/2021, 9:07 PM
    Hi! I have a question regarding
    bind
    function, probably I just don't understand how should I work with it. Details in thread
    r
    • 2
    • 8
  • i

    Ivan Pavlov

    09/29/2021, 4:18 PM
    Hi again! I have a question regarding the integration with react components. I have a prop in react component (see on picture in thread). I translate it to
    Props
    interface as
    var emptySymbol: dynamic
    . It should accept react element, but I have no idea how can I do it. I tried few things without success, details in thread
    r
    • 2
    • 3
  • r

    rocketraman

    10/07/2021, 6:15 PM
    Trying out the
    addressbook-fullstack-ktor
    example and getting this error on `frontendRun`:
    > [webpack-cli] Unable to load '@webpack-cli/serve' command
      [webpack-cli] TypeError: options.forEach is not a function
      [webpack-cli] TypeError: options.forEach is not a function
          at WebpackCLI.makeCommand (/home/raman/source_ext/kvision-examples/addressbook-fullstack-ktor/build/js/node_modules/webpack-cli/lib/webpack-cli.js:173:21)
          at ServeCommand.apply (/home/raman/source_ext/kvision-examples/addressbook-fullstack-ktor/build/js/node_modules/@webpack-cli/serve/lib/index.js:41:19)
          at loadCommandByName (/home/raman/source_ext/kvision-examples/addressbook-fullstack-ktor/build/js/node_modules/webpack-cli/lib/webpack-cli.js:907:35)
          at async Command.<anonymous> (/home/raman/source_ext/kvision-examples/addressbook-fullstack-ktor/build/js/node_modules/webpack-cli/lib/webpack-cli.js:1462:17)
          at async Promise.all (index 0)
          at async WebpackCLI.run (/home/raman/source_ext/kvision-examples/addressbook-fullstack-ktor/build/js/node_modules/webpack-cli/lib/webpack-cli.js:1500:9)
          at async runCLI (/home/raman/source_ext/kvision-examples/addressbook-fullstack-ktor/build/js/node_modules/webpack-cli/lib/bootstrap.js:11:9)
    r
    • 2
    • 4
  • t

    Tomas Kormanak

    10/19/2021, 9:54 AM
    Hi, a quick question. When does the function
    Widget.dispose()
    is called?
    r
    • 2
    • 16
  • h

    Hywel Bennett

    10/28/2021, 7:18 PM
    I'm having issues getting the Bootstrap spinner dependency to work... is there any guidance available for it? My kvision dependencies look like this:
    implementation("io.kvision:kvision:$kvisionVersion")
            implementation("io.kvision:kvision-bootstrap:$kvisionVersion")
            implementation("io.kvision:kvision-bootstrap-css:$kvisionVersion")
            implementation("io.kvision:kvision-bootstrap-spinner:$kvisionVersion")
            implementation("io.kvision:kvision-react:$kvisionVersion")
            implementation("io.kvision:kvision-spinner:$kvisionVersion")
            implementation("io.kvision:kvision-redux:$kvisionVersion")
    but IntelliJ is failing to find io.kvision.form.spinner.Spinner
    r
    • 2
    • 4
  • p

    paoloconte

    11/02/2021, 2:12 PM
    Hi all, I'm trying kvision for the first time and I'm a bit confused about the virtual dom, as it seems that the dom is always recreated rather than patched For example if I have
    val counter = ObservableValue(0)
    
     simplePanel().bind(counter) { count ->
        span("Counter is $count")
     }
    When the value of counter changes, the span element gets removed from the dom and a new one is created. Using snabbdom directly, instead, when the state changes, it traverses the existing dom and make changes to it
    r
    • 2
    • 11
  • i

    Ivan Pavlov

    11/03/2021, 11:22 AM
    Is it safe to get coroutine scope inside a widget this way?
    val scope = kvscope.unsafeCast<CoroutineScope>()
    r
    • 2
    • 3
  • i

    Ivan Pavlov

    11/03/2021, 2:23 PM
    I have a problem with navigation. Tab with corresponding route is not selected when page is loaded, see code and a screenshot in thread.
    r
    • 2
    • 11
  • m

    Marius Kotsbak

    11/08/2021, 8:51 AM
    Looks like the generated source files are not automatically generated by Intellij. Is that a bug in KVision or IntelliJ? Also "generated-src" is not set up to be source directory.
    r
    • 2
    • 9
  • j

    Jörg Rade

    11/11/2021, 11:20 AM
    There is class kv-tab-close but no kv-tab-icon. Would this be the way to go?
    r
    • 2
    • 8
  • j

    Jörg Rade

    11/11/2021, 2:01 PM
    Is there a way to resize a window by grabbing it's left, right, top, bottom borders?
    r
    • 2
    • 5
  • m

    Mikaël

    11/14/2021, 3:59 PM
    Hi, Is there someone that face to hot reload problem with the project template-fullstack-ktor ? On my side, modification of front end code does not seems to be took into account by my browser, I need to relaunch
    ./gradlew frontendRun
    to see my changes. Perhaps I missed some part of the documentation.
    r
    • 2
    • 2
  • l

    Lars Erik Rojeras

    11/26/2021, 9:47 AM
    When I upgrade to 5.5.1 I get the following when I try to run
    [webpack-cli] Unable to load '@webpack-cli/serve' command
    [webpack-cli] TypeError: options.forEach is not a function
    [webpack-cli] TypeError: options.forEach is not a function
    at WebpackCLI.makeCommand (/home/leo/tmp/dev/tkview/build/js/node_modules/webpack-cli/lib/webpack-cli.js:173:21)
    at ServeCommand.apply (/home/leo/tmp/dev/tkview/build/js/node_modules/@webpack-cli/serve/lib/index.js:41:19)
    at loadCommandByName (/home/leo/tmp/dev/tkview/build/js/node_modules/webpack-cli/lib/webpack-cli.js:907:35)
    at async Command.<anonymous> (/home/leo/tmp/dev/tkview/build/js/node_modules/webpack-cli/lib/webpack-cli.js:1462:17)
    at async Promise.all (index 0)
    at async WebpackCLI.run (/home/leo/tmp/dev/tkview/build/js/node_modules/webpack-cli/lib/webpack-cli.js:1500:9)
    at async runCLI (/home/leo/tmp/dev/tkview/build/js/node_modules/webpack-cli/lib/bootstrap.js:11:9)
    Any ideas whats wrong?
    r
    • 2
    • 9
  • m

    Mikaël

    11/28/2021, 3:54 PM
    Hello, I am new on front-end development and I want to use a react activity calendar component from kvision. Could you give me advice on the best way to initialize parameter data for this component. Thanks for your help
    r
    • 2
    • 12
  • a

    ashmelev

    11/29/2021, 7:37 PM
    @Robert Jaros Is v5.6.0 requiring Kotlin 1.6 or simply supporting it?
    r
    • 2
    • 4
  • t

    Tomas Kormanak

    12/09/2021, 8:38 AM
    Is it possible to set serialization configuration for whole project? We have a custom serialization configuration (using open polymorphic class structure) and we need same config in Rest client and Form. (unfortunately we are still on version 4, but I am wondering whether the latest version support something like this)
    r
    • 2
    • 19
  • j

    Jörg Rade

    12/09/2021, 11:25 AM
    Can I have a DropDown with image?
    dropDown(tr("Dropdown with custom list"), icon = "far fa-image", style = ButtonStyle.WARNING) {
        minWidth = 250.px
        image(require("img/cat.jpg")) { height = 170.px; margin = 10.px; title = "Cat" }
        separator()
        image(require("img/dog.jpg")) { height = 170.px; margin = 10.px; title = "Dog" }
    }
    suggests I can have either a FontAwesome icon plus text or an image. What I want is a custom image with text.
    r
    • 2
    • 17
  • j

    João Paulo Figueira

    12/13/2021, 12:28 PM
    Hi, I am experiencing errors error while executing
    ./gradlew frontendRun -t
    on the wizard-generated KVision project. On the browser, the errors look like:
    Compiled with problems:
    ERROR in ../../node_modules/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css 1:0
    Module parse failed: Unexpected character '@' (1:0)
    You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See <https://webpack.js.org/concepts#loaders>
    > @charset "UTF-8";
    | .abc-checkbox {
    |   cursor: default;
    Any idea of what I might be doing wrong?
    r
    • 2
    • 11
  • j

    Jörg Rade

    12/21/2021, 1:40 PM
    Hi, I'm trying to bundle my project as jar, analogous to template-fullstack-ktor and get
    Task with name 'frontendBrowserProductionWebpack' not found in root project 'kroviz'.
    build.gradle.kts reads:
    import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpack
    import org.jetbrains.kotlin.gradle.targets.js.webpack.KotlinWebpackConfig
    
    plugins {
        val kotlinVersion: String by System.getProperties()
        kotlin("plugin.serialization") version kotlinVersion
        kotlin("js") version kotlinVersion
        val kvisionVersion: String by System.getProperties()
        id("io.kvision") version kvisionVersion
    }
    
    version = "2.0.0-SNAPSHOT"
    group = "org.apache.isis.client"
    
    kotlin.sourceSets.all {
        languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
    }
    
    repositories {
        mavenCentral()
        jcenter()
        mavenLocal()
    }
    
    // Versions
    val kotlinVersion: String by System.getProperties()
    val kvisionVersion: String by System.getProperties()
    
    // Custom Properties
    val webDir = file("src/main/web")
    
    kotlin {
        js {
            browser {
                runTask {
                    outputFileName = "main.bundle.js"
                    sourceMaps = false
                    devServer = KotlinWebpackConfig.DevServer(
                        open = false,
                        port = 3000,
                        proxy = mutableMapOf(
                            "/kv/*" to "<http://localhost:8080>",
                            "/kvws/*" to mapOf("target" to "<ws://localhost:8080>", "ws" to true)
                        ),
                        static = mutableListOf("$buildDir/processedResources/js/main")
                    )
                }
                webpackTask {
                    outputFileName = "main.bundle.js"
                }
                testTask {
                    useKarma {
                        useChromeHeadless()
                    }
                }
            }
            binaries.executable()
        }
        sourceSets["main"].dependencies {
            implementation(npm("react-awesome-button", "*"))
            implementation(npm("prop-types", "*"))
            implementation("io.kvision:kvision:$kvisionVersion")
            implementation("io.kvision:kvision-bootstrap:$kvisionVersion")
            implementation("io.kvision:kvision-bootstrap-css:$kvisionVersion")
            implementation("io.kvision:kvision-bootstrap-datetime:$kvisionVersion")
            implementation("io.kvision:kvision-bootstrap-select:$kvisionVersion")
            implementation("io.kvision:kvision-bootstrap-spinner:$kvisionVersion")
            implementation("io.kvision:kvision-bootstrap-upload:$kvisionVersion")
            implementation("io.kvision:kvision-bootstrap-dialog:$kvisionVersion")
            implementation("io.kvision:kvision-bootstrap-typeahead:$kvisionVersion")
            implementation("io.kvision:kvision-fontawesome:$kvisionVersion")
            implementation("io.kvision:kvision-i18n:$kvisionVersion")
            implementation("io.kvision:kvision-richtext:$kvisionVersion")
            implementation("io.kvision:kvision-handlebars:$kvisionVersion")
            implementation("io.kvision:kvision-datacontainer:$kvisionVersion")
            implementation("io.kvision:kvision-chart:$kvisionVersion")
            implementation("io.kvision:kvision-tabulator:$kvisionVersion")
            implementation("io.kvision:kvision-pace:$kvisionVersion")
            implementation("io.kvision:kvision-toast:$kvisionVersion")
            implementation("io.kvision:kvision-react:$kvisionVersion")
            implementation("io.kvision:kvision-routing-navigo:$kvisionVersion")
            implementation("io.kvision:kvision-state:$kvisionVersion")
            implementation("io.kvision:kvision-rest:$kvisionVersion")
            implementation("io.kvision:kvision-moment:$kvisionVersion")
            implementation("io.kvision:kvision-maps:$kvisionVersion")
            implementation(npm("xmltojson", "1.3.5", false))
            implementation(npm("flatted", "3.2.2", false))
            implementation(npm("diff", "5.0.0", false))
            implementation(npm("diff2html", "3.4.13", false))
            implementation(npm("xml-beautify", "1.1.2", false))
            implementation(npm("xterm", "4.15.0", false))
        }
        sourceSets["test"].dependencies {
            implementation(kotlin("test-js"))
            implementation("io.kvision:kvision-testutils:$kvisionVersion")
        }
        sourceSets["main"].resources.srcDir(webDir)
    }
    
    afterEvaluate {
        tasks {
            create("frontendArchive", Jar::class).apply {
                dependsOn("frontendBrowserProductionWebpack")
                group = "package"
                archiveAppendix.set("frontend")
                val distribution =
                    project.tasks.getByName("frontendBrowserProductionWebpack", KotlinWebpack::class).destinationDirectory!!
                from(distribution) {
                    include("*.*")
                }
                from(webDir)
                duplicatesStrategy = DuplicatesStrategy.EXCLUDE
                into("/assets")
                inputs.files(distribution, webDir)
                outputs.file(archiveFile)
                manifest {
                    attributes(
                        mapOf(
                            "Implementation-Title" to rootProject.name,
                            "Implementation-Group" to rootProject.group,
                            "Implementation-Version" to rootProject.version,
                            "Timestamp" to System.currentTimeMillis()
                        )
                    )
                }
                val dependencies =
                        project.tasks["frontendArchive"].outputs.files
                dependencies.forEach {
                    if (it.isDirectory) from(it) else from(zipTree(it))
                }
                exclude("META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA")
                inputs.files(dependencies)
                outputs.file(archiveFile)
                duplicatesStrategy = DuplicatesStrategy.EXCLUDE
            }
        }
    }
    What am I missing
    r
    • 2
    • 8
  • t

    Tomas Kormanak

    12/22/2021, 10:15 AM
    I there a reason why methods in
    interface Container
    returns Container? I can't see any usecase where it could be useful and I don't think it's a good pattern (fluent interface). I think they should return
    Unit
    The only case I can imagine return something else is method add. It can return added component to support this shortcut:
    val mycomponent = add(MyComponent())
    r
    • 2
    • 8
  • p

    pambrose

    12/23/2021, 5:04 AM
    First, a note of thanks for what you have done with kvision. It is a very nice project. I am on a M1-based Mac. When I try to upgrade to kvision 5.6.1 and kotlin 1.6.10 I get:
    > Could not find node-14.17.0-darwin-arm64.tar.gz (org.nodejs:node:14.17.0).
         Searched in the following locations:
             <https://nodejs.org/dist/v14.17.0/node-v14.17.0-darwin-arm64.tar.gz>
    The 14.17.0 version of node does not have M1 support, but newer versions do. Can you tell me where the reference to that version of node is coming from? Interestingly, I did not have this issue with kvision 5.5.1 and kotlin 1.5.31. Thanks again, Paul
    r
    • 2
    • 3
Powered by Linen
Title
p

pambrose

12/23/2021, 5:04 AM
First, a note of thanks for what you have done with kvision. It is a very nice project. I am on a M1-based Mac. When I try to upgrade to kvision 5.6.1 and kotlin 1.6.10 I get:
> Could not find node-14.17.0-darwin-arm64.tar.gz (org.nodejs:node:14.17.0).
     Searched in the following locations:
         <https://nodejs.org/dist/v14.17.0/node-v14.17.0-darwin-arm64.tar.gz>
The 14.17.0 version of node does not have M1 support, but newer versions do. Can you tell me where the reference to that version of node is coming from? Interestingly, I did not have this issue with kvision 5.5.1 and kotlin 1.5.31. Thanks again, Paul
r

Robert Jaros

12/23/2021, 5:54 AM
It seems like this kotlin bug: https://youtrack.jetbrains.com/issue/KT-49109
You can try a workaround
p

pambrose

12/23/2021, 6:57 PM
Thanks Robert. That worked.
View count: 4