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
server
  • s

    silentsudo

    04/01/2018, 6:33 AM
    sorry for off-topic question, do we need billing enabled for deploying web app to gcloud i just want to try out some sdks
    :google: 1
    :stackoverflow: 4
    • 1
    • 1
  • c

    Chih

    04/01/2018, 8:30 PM
    [Coroutines] Hello, may some one help me? I'm studying about Kotlin coroutines, and I have a question which couldn't find any clear answer. The question is: why do I need to specify the coroutine context, can't I just use the default one? And how can I create a custom context, my custom thread pool? (Talking about backend) Thanks!
    m
    s
    • 3
    • 3
  • k

    Kingmoses

    04/12/2018, 1:40 PM
    #ktor Hey guys. How can i solve the below error when deploying to heroku _remote: FAILURE: Build failed with an exception. remote: remote: * What went wrong: remote: Task 'stage' not found in root project 'ipay_rest'. remote: remote: * Try: remote: Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. remote: remote: BUILD FAILED in 14s remote: remote: ! ERROR: Failed to run Gradle! remote: It looks like your project does not contain a 'stage' task, which Heroku needs in order remote: to build your app. Our Dev Center article on preparing a Gradle application for Heroku remote: describes how to create this task: remote: https://devcenter.heroku.com/articles/deploying-gradle-apps-on-heroku remote: remote: If you're stilling having trouble, please submit a ticket so we can help: remote: https://help.heroku.com remote: remote: Thanks, remote: Heroku remote: remote: ! Push rejected, failed to compile Gradle app. remote: remote: ! Push failed_
    s
    s
    g
    • 4
    • 15
  • k

    Kingmoses

    04/13/2018, 6:36 AM
    #ktor I have a web REST API which runs on Netty. I managed to successfully deploy it to Heroku. I expected the Heroku's Java buildpack to automatically detect Ktor framework. I tried executing the command heroku ps:scale web=1 to at least get one instance of the app running, which resulted me to getting the error Couldn't find that process type. Anyone who have experienced this and what did they do?
    o
    • 2
    • 2
  • c

    codefinger

    04/13/2018, 12:57 PM
    @Kingmoses does the app have a
    Procfile
    ?
    k
    • 2
    • 1
  • c

    cedric

    04/16/2018, 6:52 PM
    @Kingmoses This might be relevant to you: https://github.com/cbeust/koolaid
    a
    • 2
    • 3
  • f

    Filip Husnjak

    04/17/2018, 11:45 AM
    Hello again I have run into a small issue. I want to serialize my model using GSON but i get stuck with an StackOverflow so to solve this i wanted to try using expose annotations which do not work “This Annotation is not applicable to target ’member property with delegate”
    @Expose(true)
         var name by Table.name
    Meaning that i cannot specify what to serialize and what to not serialize. The way i have solved this now is to use a Data Class along side my model class, which is a pain because then i would have to have tree objects for one table. There must be a better way!
    m
    • 2
    • 3
  • r

    RichyHBM

    04/17/2018, 1:03 PM
    Tried ktor, wasabi and even nanohttp but no luck
    g
    • 2
    • 4
  • g

    gildor

    04/17/2018, 2:53 PM
    sunhttp does not work on native, it’s java only
    r
    d
    • 3
    • 7
  • g

    gildor

    04/17/2018, 3:03 PM
    Before we have multiplatform IO/socket abstraction and Ktor is JVM only, the simplest way to do that is just use some C http server library for native and probably write some idiomatic Kotlin wrapper for this library.
    n
    • 2
    • 3
  • d

    Dexter

    04/19/2018, 5:23 PM
    @here I need to ramp up quickly on idiomatic Kotlin patterns using coroutines with both blocking and non-blocking I/O. Any pointers to the good resources? Thanks.
    n
    d
    g
    • 4
    • 6
  • s

    silentsudo

    04/20/2018, 10:35 AM
    when i hit server i am getting java.lang.IllegalArgumentException: Parameter specified as non-null is null: method mypkg.repository.data.Department.<init>, parameter name at mypkg.repository.data.Department.<init>(Department.kt) ~[classes/:na] at mypkg.repository.data.Department.<init>(Department.kt:9) ~[classes/:na] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_131] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_131] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_131] at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_131]
  • y

    yonidavidson

    04/26/2018, 3:14 PM
    and how do you feel about it?
    b
    • 2
    • 1
  • b

    Bright Robert

    05/08/2018, 10:43 PM
    Please is there any internship programme u know for web dev, please info me to join
    n
    o
    • 3
    • 2
  • m

    Marcin Wisniowski

    05/10/2018, 10:17 PM
    Could someone suggest me some Kotlin frameworks/things for making a website? I want to build a run of the mill simple webpage with login and a database, for which I'd usually use PHP, but I'd like to not use PHP. How do I do these things in Kotlin? Thank you.
    s
    t
    • 3
    • 5
  • k

    Kyle

    05/11/2018, 4:16 PM
    @sdeleuze have you tried working with https://github.com/JetBrains/Exposed instead of the jpa annotations?
    s
    • 2
    • 2
  • k

    Kyle

    05/11/2018, 4:17 PM
    Also, one issue I ran into with the data classes is they wanted private constructors, did you not run into the same thing?
    s
    • 2
    • 1
  • k

    kenkyee

    05/12/2018, 2:46 AM
    Slides from a short presentation I did at a local Kotlin meetup comparing different Kotlin framworks: https://drive.google.com/open?id=1Y4H-7z5mdVxpIKwgbe2dzBjL7ieq-rBU Surprisingly, some of the audience wanted a deeper dive into Vert.x's Kotlin support...
    d
    t
    • 3
    • 8
  • n

    noah

    05/12/2018, 2:16 PM
    hi,do exposed support Chinese string?
    o
    • 2
    • 1
  • f

    frellan

    05/12/2018, 5:01 PM
    Hello everybody, how do you guys handle the crud save from json problem? When you have a few relations and business rules for your beans/models things starts to become quite nasty. This is the oldest business case in the book so how do people go about this? In kotlin?
    :stackoverflow: 2
    m
    • 2
    • 2
  • o

    orangy

    05/15/2018, 8:09 PM
    http://arhipov.blogspot.ru/2017/08/xrebel-for-standalone-apps-with.html You can use #ktor with embedded Jetty.
    j
    d
    h
    • 4
    • 6
  • b

    bissell

    05/22/2018, 11:28 PM
    interesting article. I wonder how far you could get with AOT compilation of Kotlin JVM code e.g. with Graal
    n
    s
    +2
    • 5
    • 15
  • k

    kenkyee

    05/23/2018, 12:53 PM
    Or even Kotlin/js
    n
    • 2
    • 3
  • j

    Javal

    05/27/2018, 2:46 PM
    I am new to kotlin, our team is thinking of utilizing kotlin for writing one of the service for our project. Is Ktor a good framework to go with or there are any better alternatives? This is just for a specific feature (1 or 2 endpoints) will talk to dynamodb to update/read json file.
    n
    f
    n
    • 4
    • 4
  • c

    coder82

    06/02/2018, 8:49 AM
    hi guys is there a way to have file listing with ktor? I mean serving a static page with all the clickable files in that dir?
    n
    • 2
    • 1
  • a

    amanda.hinchman-dominguez

    06/04/2018, 5:29 PM
    hey guys! I'm trying out spring boot and Kotlin - my preference for Kotlin projects is generally maven, but I was wondering if you have any preferences on maven vs. gradle for server-side experiences with Kotlin?
    s
    p
    +2
    • 5
    • 34
  • a

    amanda.hinchman-dominguez

    06/04/2018, 5:46 PM
    I'll check both out! I really like docker, but I haven't heard of H2 before.
  • m

    mp

    06/04/2018, 9:33 PM
    If you're using a SQL database I think jOOQ is solid. You can see how to use it with kotlin in https://bitbucket.org/marshallpierce/ktor-demo/src/master/.
    👍 2
    b
    • 2
    • 2
  • m

    mp

    06/05/2018, 8:57 PM
    I suggest at least checking “Single Instance”.
  • c

    cedric

    06/05/2018, 9:20 PM
    It irks me to no end that “Single Instance” is not the default and I haven’t found a way to make it so
    :youtrack: 1
    👍 1
    m
    a
    e
    • 4
    • 3
Powered by Linen
Title
c

cedric

06/05/2018, 9:20 PM
It irks me to no end that “Single Instance” is not the default and I haven’t found a way to make it so
:youtrack: 1
👍 1
m

mp

06/05/2018, 11:16 PM
It does seem odd that you can’t control that in run configuration templates
a

amanda.hinchman-dominguez

06/06/2018, 12:13 AM
I agree, many other Kotlin projects uses it - to be fair, since I'm using the Spring project, I'm guessing it's not really catered to IntelliJ. Maybe that would be a neat thing to whip up
e

eliz

06/06/2018, 9:36 AM
Ugh! I wish this was just the default already, it’s so rare that I don’t want a single instance.
View count: 2