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
intellij
  • d

    DALDEI

    08/15/2018, 10:21 PM
    Any suggestions on how to get intellij to STOP auto-completing every time I hit space ?| I type "null<space>" and it autocomplets to "nullssometing..()"
    b
    o
    • 3
    • 4
  • s

    supaham

    08/17/2018, 12:18 AM
    So a bit of a weird one this time around. I'm trying to do some stuff to my entirely java project. But every time the kotlin 1.2.60 stable plugin is loaded, I keep getting import errors on all modules on the project. Anyone familiar with this?
    • 1
    • 1
  • n

    nomad

    08/20/2018, 11:10 AM
    My project has started rebuilding all the time, e.g. if I press ctrl + f9, let it finish, and then ctrl + f9 again, it will rebuild all modules, are anyone else seeing this behavior? Or know if there is some way I can output some debug info from idea to figure out why it is always rebuilding everything?
    g
    • 2
    • 9
  • p

    pniederw

    08/21/2018, 8:29 PM
    does everyone else also experience lag when typing kotlin code? I can’t remember the last time I could type fluently.
    j
    j
    c
    • 4
    • 5
  • p

    poohbar

    08/22/2018, 1:32 PM
    Updated to
    2018.2.2
    and now all my files have this icon
    u
    • 2
    • 14
  • p

    poohbar

    08/22/2018, 1:49 PM
    I assume you are using Gradle?
    e
    • 2
    • 1
  • p

    poohbar

    08/22/2018, 2:44 PM
    I mean Maven works fine, but if
    kapt
    in in my
    pom.xml
    , IntelliJ does not parse it correctly.
    o
    y
    • 3
    • 2
  • p

    Parshav

    08/22/2018, 3:59 PM
    Is there a way to easily map a terminal command to a keyboard shortcut in intellij ? I’m wondering if there is already a way to do this, else I’m thinking to go ahead and write a small plugin to implement this.
    k
    • 2
    • 2
  • d

    DALDEI

    08/26/2018, 6:34 PM
    Is there a way to get kotlin-dsl gradle build files in auto-update mode to be usable in the editor ? Now when I type anything it kicks off a sync and repositions my cursor to the last NON BLANK SPACE on the current line. This makes typeing anything that includes a space nearly impossible while auto-sync is enabled.
    ➕ 2
    g
    • 2
    • 2
  • h

    holgerbrandl

    08/27/2018, 6:16 AM
    Hi, is there a kotlin ticket to provide a “Navigate to test data” action similar to java?
    o
    • 2
    • 1
  • s

    Slackbot

    09/03/2018, 2:35 PM
    This message was deleted.
    k
    c
    s
    • 4
    • 5
  • d

    DALDEI

    09/05/2018, 5:29 PM
    Is there a mechanism in Intellij to support Kotlin Scripts with a 'real' include ? -- By this I mean to be able to seperate out common boilerplate like "import java.io.File" into a common file so that .kts files can be simplier like @file:really-do-include("common.kts")
    g
    • 2
    • 1
  • r

    rocketraman

    09/05/2018, 6:05 PM
    Just discussed this on #ktor ... coworker getting
    java.lang.VerifyError
    on ktor application startup -- https://kotlinlang.slack.com/archives/C0A974TJ9/p1536169797000100 -- turned out his Kotlin plugin was not up-to-date. Kotlin plugin authors, is this a known issue and is there any plan to improve the failure mode for this situation?
    o
    a
    • 3
    • 3
  • d

    DALDEI

    09/06/2018, 12:48 AM
    @Gary Tierney any clues as to where exactly one might use the "ScriptConfiguration" ? I found it in the kotlin and intellij source but no luck finding any hints on how one actually applies it to the IDE
    g
    i
    • 3
    • 5
  • c

    christophsturm

    09/06/2018, 7:24 AM
    why does the new 2018.3 eap not appear in toolbox?
    k
    • 2
    • 1
  • б

    Бежан Александр

    09/07/2018, 5:11 PM
    Hey guys. I have IntelliJ question. I have
    PsiJavaFile
    and I need to compile it with IntelliJ API. Any directions are greatly appreciated. Thanks
    k
    e
    • 3
    • 7
  • б

    Бежан Александр

    09/07/2018, 8:06 PM
    Is there a way to automatically send IDE fatal errors reports ? They are showing up every time I open a project and are annoying.
    k
    • 2
    • 1
  • a

    Aregev2

    09/08/2018, 8:04 AM
    Yes, go to settings -> kotlin updates and change the settings to check for 1.3 preview releases, then just install the plugin and restart
    p
    • 2
    • 3
  • e

    elye

    09/10/2018, 11:59 AM
    I have learn to write IntelliJ PLugin for Kotlin code. Sharing with all here https://medium.com/@elye.project/making-custom-kotlin-code-inspection-plugin-ec1aedeffa48
    o
    • 2
    • 1
  • r

    rocketraman

    09/11/2018, 10:10 PM
    I'm opening https://github.com/gradle/kotlin-dsl/tree/master/samples/hello-js directly in IJ (using the Gradle project model) and it doesn't run from within IJ -- 404's for kotlin.js and output.js.
    n
    • 2
    • 8
  • j

    jkbbwr

    09/15/2018, 7:59 PM
    Anyone know why 4k scaling is broken on intellij now
    o
    • 2
    • 2
  • p

    Paul Woitaschek

    09/17/2018, 12:30 PM
    It's always public but in 99% of the cases I want private
    ➕ 1
    g
    o
    • 3
    • 2
  • p

    poohbar

    09/20/2018, 1:37 PM
    can I set intellij to only open files when i double click in project structure and not single click?
    h
    k
    • 3
    • 3
  • c

    christophsturm

    09/22/2018, 12:16 PM
    in the idea new project dialog there is one entry for
    kotlin multiplatform deprecated
    and one for
    kotlin multiplatform web
    . what does that mean?
    • 1
    • 1
  • h

    Hamza

    09/23/2018, 12:24 PM
    i am lead to believe that there might be something wrong with the intellij plugin? i’ve been trying to create a variable from this lambda using discord.js, and i’m getting this error and im completely lost on what’s happening and why. can someone lend me a hand and help me figure out why this isn’t working?
    g
    • 2
    • 2
  • r

    razvandragut

    09/24/2018, 5:21 PM
    val d = Double.NaN.equals(Double.NaN)
    IntelliJ suggests "Call replaceable with binary operator". This is wrong because
    Double.NaN == Double.NaN
    is false while
    Double.NaN.equals(Double.NaN)
    is true.
    :youtrack: 1
    b
    m
    • 3
    • 3
  • a

    André Roaldseth

    09/25/2018, 8:18 AM
    I guess this lands somewhere between #intellij and #gradle, but I'm experimenting with the Composite Build feature. I have a library that exposes some third party library through the
    api
    -configuration. Then I have an app that requires that library and use some of the classes from third party library. Gradle(and IntelliJ) is able to build the whole getup, but IntelliJ insists that the classes from the third party library is not available (in the editor only, compile is OK).
    g
    • 2
    • 3
  • o

    otakusenpai

    09/25/2018, 9:09 PM
    how do i replace all matches for "foo" in a file with "baz" ?
    🚓 1
    :google: 3
    n
    • 2
    • 1
  • h

    holgerbrandl

    09/26/2018, 8:08 AM
    Is there some refactoring (or a ticket to vote for) to extract an extension method from the following selection?
    o
    • 2
    • 2
  • o

    otakusenpai

    09/26/2018, 11:39 AM
    Is there a memory leak in the most recent version of Intellij IDEA Community edition? My computer's conky and htop setup are showing above 7gb mem usage. Though if i check where all these memory is allocated in KSysGuard then I dont get any heads up on the memory usage in place.
    c
    o
    • 3
    • 8
Powered by Linen
Title
o

otakusenpai

09/26/2018, 11:39 AM
Is there a memory leak in the most recent version of Intellij IDEA Community edition? My computer's conky and htop setup are showing above 7gb mem usage. Though if i check where all these memory is allocated in KSysGuard then I dont get any heads up on the memory usage in place.
https://postimg.cc/mcStgpW6 Heres a gif showing the output now.
c

christophsturm

09/26/2018, 11:48 AM
this channel is only for the kotlin idea plugin, see topic
also you can’t just add up all the memory of the threads that htop shows. most of the memory is shared memory.
https://stackoverflow.com/questions/131303/how-to-measure-actual-memory-usage-of-an-application-or-process
o

otakusenpai

09/26/2018, 12:00 PM
Ok. So I just rebooted and this is the output of the command "ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' |cut -d "" -f2 | cut -d "-" -f1" from that link:
2234.00 Mb /tmp/.mount_RamboxWSYPDn/app/rambox 
       913.05 Mb /usr/lib/jvm/openjdk
       806.01 Mb firefox 
       646.59 Mb /usr/lib/jvm/openjdk
       495.48 Mb /usr/lib/jvm/openjdk
       363.13 Mb /tmp/.mount_RamboxWSYPDn/app/rambox 
       284.95 Mb /usr/lib/jvm/openjdk
       266.41 Mb /tmp/.mount_RamboxWSYPDn/app/rambox 
       209.51 Mb /usr/lib/firefox/firefox 
       194.50 Mb /usr/lib/firefox/firefox 
       194.09 Mb /tmp/.mount_RamboxWSYPDn/app/rambox 
       122.19 Mb /usr/lib/firefox/firefox 
       108.97 Mb ksysguard 
       104.46 Mb /usr/lib/polkit
        92.37 Mb Thunar 
        88.12 Mb /usr/libexec/Xorg 
        67.42 Mb conky 
        63.31 Mb xfdesktop 
        57.43 Mb hexchat 
        50.12 Mb /usr/libexec/gnome
Rambox is the utility that I use to chat here, but my suspicions are still aloat since this is a reboot.
By the way I did a fresh reboot and use jemalloc as my malloc library
Though this increase of ram issue happened even before i installed jemalloc
o

orangy

09/26/2018, 1:32 PM
Please file an issue in the IntelliJ issue tracker: https://youtrack.jetbrains.com/newissue?project=idea
View count: 1