https://kotlinlang.org logo
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
  • r

    rocketraman

    03/29/2022, 6:49 PM
    Routes are generated as numbered strings e.g.
    /kv/routeFoo1
    ,
    /kv/routeFoo2
    . Does this imply that changing the order of methods in the interface breaks compatibility with existing clients? For both compatibility reasons and clarity of debugging in the network inspector, does it make sense to give routes names based on the target method name:
    /kv/routeFooSomeMethod
    and/or an annotated name?
    r
    • 2
    • 6
  • m

    Michal Klimczak

    04/04/2022, 8:38 PM
    Should this
    link("/test", url = "/test", dataNavigo = true)
    work the same as
    routing.navigate("/test")
    ? Because for me, the former reloads page, while the latter works as expected (uses history api).
    r
    • 2
    • 5
  • p

    Philipp Smorygo [JB]

    04/10/2022, 3:23 AM
    I got a bug / race when switching states I have a view that’s bind by
    bind(AppManager.store.sub { it.commercialProposalState to it.customerState }) { states ->
      commercialProposalEdit(states.first, states.second)
    }
    This view is shown only when
    state.coreState.view == CP_EDIT
    Also this view uses some fields from Then I dispatch an event that changes
    state.coreState.view
    and sets
    state.customerState
    fields to null. After that I got an exception that some field from
    state.customerState
    is null. But view
    state.coreState.view
    is already changed so my component should not update anymore. It looks like it’s updated first, and only then it is replaced by another view. It seems that this update should not happen, because the component should be disposed before it’s update could be triggered Also this breaks the app and my
    commercialProposalEdit
    component is never disposed and on every
    state
    change it throws an exception. So only reloading the page helps.
    r
    • 2
    • 12
  • p

    Philipp Smorygo [JB]

    04/15/2022, 8:47 PM
    Hi, after updating to 5.9.0 I started getting error highlighting for all `ServiceException`s and inheritors of
    AbstractServiceException
    with message
    "required Throwable, actual ServiceException"
    . Also, references to
    Exception
    in
    io.kvision-kvision-common-remote-commonMain
    module are not resolved to anything. The project however compiles file. I use IDEA 2022.2 EAP 222.1198. Is it a problem on IDEA side, or something is not well with kvision module?
    r
    t
    • 3
    • 6
  • j

    Jalil

    04/16/2022, 12:02 AM
    I set a tab to closeable but no cross shows up to be able to close it?
    r
    • 2
    • 3
  • r

    rocketraman

    04/27/2022, 6:34 PM
    I use kvision, but only for the remoting layer. My frontend is currently Compose/Web. However, I do use the KVision project structure with
    commonMain
    ,
    frontendMain
    , and
    backendMain
    . This is fine for now, but the next iteration of this will likely have desktop, android and iOS targets as well. I'll want a source set or library that has common code across all the frontends (but not backends, as some of that common code has no JVM platform target e.g. GitLive firebase-auth). Any advice/experience with structuring this kind of project? (More in comments)
    r
    b
    • 3
    • 24
  • t

    Tom

    05/01/2022, 8:45 PM
    Is it possible to bind a Range(Input) to a complex ObservableValue (data class)? Tried also (without success) to bind to a sub-store.
    r
    • 2
    • 4
  • j

    Jörg Rade

    05/05/2022, 3:47 PM
    What is the recommended node version at the moment?
    • 1
    • 1
  • r

    rocketraman

    05/10/2022, 1:26 PM
    Integrating a token-based authorization system with kvision RPCs. I see that this can be done with
    requestFilter: (RequestInit.() -> Unit
    , however that lambda is non-suspending, which makes integrating with something that might need to do a suspending call to refresh a token unnecessarily difficult, especially with the lack of
    runBlocking
    on JavaScript. Thoughts on making that suspending to enable this kind of use case?
    r
    • 2
    • 2
  • j

    João Paulo Figueira

    05/23/2022, 7:52 AM
    I’m using an extension for Leaflet maps to implement context menus on overlays. This code works by extending the
    Polyline.PolylineOptions
    interface and this is causing me some issues. From what I can see from the sources, I also need to create new classes to implement
    Polyline
    and
    Polygon
    because both implement the abstract
    Path
    parameterized by
    Polyline.PolylineOptions
    . This would be a simple case of copying your code and using the new context-menu enabled options class, but… Is there an alternative? TIA!!
    r
    • 2
    • 3
  • r

    Robert Jaros

    06/01/2022, 10:42 AM
    Reached 900 ⭐ on GitHub! 🎉🙂
    :kotlin-intensifies: 10
    🎉 2
    b
    • 2
    • 1
  • r

    rocketraman

    06/06/2022, 2:12 PM
    Having trouble upgrading my full-stack build from 5.8.2 to 5.9.0 or 5.10.1... getting gradle build error
    Could not resolve io.kvision:kvision-server-ktor:<kvision-version>
    . Same build works fine with 5.8.2. Any ideas?
    r
    • 2
    • 6
  • j

    João Paulo Figueira

    06/08/2022, 12:42 PM
    How do I determine the selected
    Tab
    on a
    TabPanel
    ? I want to persist the `TabPanel`’s state between `bind`s.
    • 1
    • 2
  • r

    Rodrigo Silva

    06/11/2022, 12:28 PM
    Hello all. Can i use kvision with bulma only? Without bootstrap.
    r
    • 2
    • 3
  • a

    Adam S

    06/18/2022, 7:09 PM
    I'm trying to bring my KVision site to 'production' and I need to remove the hardcoded websocket URL. I've managed to derive the correct websocket URL from modifying
    window.location.href
    , but now I need to set up some sort of 'proxy' so I can connect when developing locally I've tried using the dev server option in
    build.gradle.kts
    // build.gradle.kts
    ...
              proxy = mutableMapOf(
                "/ws" to mapOf(
                  "target" to "<http://localhost:12080>",
                  "secure" to false,
                  "ws" to true,
                  "changeOrigin" to true,
                ),
              ),
    but I get an error in the application logs
    <i> [webpack-dev-server] [HPM] Upgrading to WebSocket
    <e> [webpack-dev-server] [HPM] WebSocket error: Error: read ECONNRESET
    <e>     at TCP.onStreamRead (node:internal/stream_base_commons:220:20) {
    <e>   errno: -4077,
    <e>   code: 'ECONNRESET',
    <e>   syscall: 'read'
    <e> }
    In the browser it tries to connect, but gets an
    Invalid frame header
    error. I saw that the KVision examples set up websockets proxys, but they look the same as what I have. What else do I need? KVision 5.10.1, Kotlin/JS 1.7.0, more details here
    r
    • 2
    • 14
  • r

    Robert Jaros

    06/19/2022, 8:43 AM
    KVision 5.11.0 is out https://github.com/rjaros/kvision/releases/tag/5.11.0
    🎉 9
    :kotlin-intensifies: 5
    a
    • 2
    • 1
  • j

    João Paulo Figueira

    06/24/2022, 10:29 AM
    I’m getting this when starting up the frontend:
    [webpack-cli] TypeError: cli.isMultipleCompiler is not a function
    Any insights?
    r
    • 2
    • 27
  • r

    Robert Jaros

    06/30/2022, 1:42 PM
    Yesterdays release of
    bootstrap-fileinput 5.5.0
    breaks projects using
    kvision-bootstap-upload
    module. Temporary workaround:
    rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin> {
            rootProject.the<org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension>().apply {
                resolution("bootstrap-fileinput", "5.2.8")
            }
    }
  • r

    Robert Jaros

    06/30/2022, 1:45 PM
    Why it's so hard for everyone to keep semantic versioning? ...
    😂 2
  • r

    Robert Jaros

    07/01/2022, 6:34 AM
    KVision 5.12.0 is out https://github.com/rjaros/kvision/releases/tag/5.12.0
    🎉 5
    r
    • 2
    • 4
  • r

    Robert Jaros

    07/12/2022, 5:12 AM
    KVision 5.13.0 is out. https://github.com/rjaros/kvision/releases/tag/5.13.0
    :kotlin-intensifies-purple: 1
    🎉 3
  • r

    Robert Jaros

    07/15/2022, 1:45 PM
    KVision 5.13.1 is out. https://github.com/rjaros/kvision/releases/tag/5.13.1
    🎉 2
  • j

    João Paulo Figueira

    07/19/2022, 9:15 AM
    Do we have any pointers on how to run frontend tests with KVision?
    r
    • 2
    • 26
  • r

    Robert Jaros

    08/09/2022, 6:23 AM
    Someone has published a video on youtube about KVision!

    https://www.youtube.com/watch?v=-mua_TAE-ww▾

    Nice work! 🙂
  • r

    Robert Jaros

    08/10/2022, 10:44 AM
    KVision 5.14.0 is out. https://github.com/rjaros/kvision/releases/tag/5.14.0
  • a

    ashmelev

    08/11/2022, 4:32 PM
    @Robert Jaros When I use the Tabulator in
    dataUpdateOnEdit = true
    mode I get a (rather lengthy)
    Uncaught exception...
    in the browser console which seems to indicate an issue when setting data:
    <redacted>....refreshActiveData@http://localhost:8080/web/main.bundle.js:2:1490426\n_setDataActual@http://localhost:8080/web/main.bundle.js:2:1485115\n2995/setData/<@http://localhost:8080/web/main.bundle.js:2:1484530\nsetData@http://localhost:8080/web/main.bundle.js:2:1484442.....<redacted>
    The data source for the Tabulator is declared as:
    val organizations: ObservableList<OrganizationExch> = observableListOf()
    and
    OrganizationExch
    is declared as
    @Serializable
    data class OrganizationExch(@Id var extId: String,
                                var name: String,
                                var description: String? = null,
                                var webUrl: String? = null,
                                var imageUrl: String? = null,
                                var theme: String? = null,
                                var createdAt: OffsetDateTime? = null,
                                var updatedAt: OffsetDateTime? = null)
    [NOTE: I am trying to edit
    webUrl
    in my tests] The data originates from a
    List
    on the KVision back-end (SpringBoot) and I convert it into a
    MutableList<OrganizationExch>
    before synch (probably unnecessary):
    organizations.syncWithList(organizationService.getOrganizations().toMutableList())
    I am clearly missing something..... can you help?
    r
    • 2
    • 53
  • f

    Francis Mariano

    08/16/2022, 12:53 PM
    Hello, I am building a simple page and I need to open two files for comparing each other. First step, how can I open a file in the browser ????
    r
    • 2
    • 21
  • a

    ashmelev

    08/21/2022, 12:15 AM
    Hello. Does anyone have an example of using KVision Chart with dynamic data? More specifically with data from a KVision back-end server? I have a use case where charts need to display data dynamically both using filtering components on the front end as well as refreshing with newly updated data from the back end. I've tried using ObservableList for both the DataSet (and underlying
    data
    ) as well as Labels, but, while the Cart paints properly the first time it seems indifferent to updates of the ObservableLists.
    r
    • 2
    • 2
  • r

    Robert Jaros

    08/25/2022, 6:49 PM
    I've just got an email about Heroku plans to phase out free services 😞 It means some KVision example apps will no longer be published after November.
    a
    b
    n
    • 4
    • 16
  • n

    napperley

    09/01/2022, 1:31 AM
    Does KVision's Ktor support cover Kotlin Native (via the linuxX64 target)?
    r
    • 2
    • 2
Powered by Linen
Title
n

napperley

09/01/2022, 1:31 AM
Does KVision's Ktor support cover Kotlin Native (via the linuxX64 target)?
r

Robert Jaros

09/01/2022, 5:03 AM
KVision's Ktor support depends on Guice, so I think it will not work with Kotlin Native.
n

napperley

09/04/2022, 3:57 AM
Are there any other options for web full stack support which support Kotlin Native?
View count: 7