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
  • j

    jkbbwr

    01/26/2021, 1:43 PM
    Im having an issue with intellij atm, I have set up a fresh micronaut project with kotlin and gradle.kts Everything works fine, the project imports, everything builds. EXCEPT for some reason no matter what jdk I use, no matter what I do
    javax.inject
    never resolves. Even though the code compiles fine via gradle, intellij still complains.
    c
    • 2
    • 7
  • c

    Colton Idle

    01/26/2021, 5:49 PM
    I heard newest intellij lets you have project in tabs at the top of the IDE. I can't find the tweet anymore, but does anyone know if thats true/how to enable?
    c
    h
    • 3
    • 12
  • d

    Dariusz Kuc

    01/26/2021, 8:29 PM
    Hello 👋 Not a Kotlin plugin related issue (at least I don't think so) but I'm hitting some weird problem with Intellij that if I switch from openJDK 15 to openJDK 11 (tried one installed by Intellij and one from sdkman) it starts complaining that it no longer can resolve
    java.lang.Class
    etc, any ideas?
    m
    a
    • 3
    • 7
  • r

    rkeazor

    01/28/2021, 6:21 AM
    Hey all, updated the kotlin plugin in android studio now AS won’t open , and shows the “missing essential plugin org.jetbrains.android
    a
    • 2
    • 4
  • h

    holgerbrandl

    01/28/2021, 7:48 PM
    Hey there, is there an inspection to warn if I don't have javadoc
    @param paramName bla bla
    for a method parameter?
    a
    • 2
    • 1
  • t

    thana

    01/29/2021, 4:10 PM
    uhm... any idea? 😄
    c
    • 2
    • 4
  • c

    christophsturm

    02/01/2021, 5:40 PM
    is there a way to disable some code inspections for the test root? for example “Property could be private” is something I don’t care about in unit tests.
    m
    w
    • 3
    • 27
  • c

    christophsturm

    02/02/2021, 4:23 PM
    does go to class also navigate to objects? I think it did at some point but now it seems it does not. (but i think it should)
    w
    • 2
    • 2
  • m

    melatonina

    02/02/2021, 8:55 PM
    Will I loose all my build settings if I re-import my project from the gradle files, in IntelliJ IDEA?
    w
    • 2
    • 11
  • c

    christophsturm

    02/03/2021, 9:15 AM
    it would be great if the idea kotlin plugin showed what files in my project are compatible with multiproject common
    ➕ 1
    • 1
    • 1
  • j

    Javier

    02/03/2021, 4:24 PM
    What JDK is using embedded intellij JDK? I am having problems with Oracle JDK 11 and embedded one is working fine. I would like to download it
    c
    • 2
    • 5
  • h

    holgerbrandl

    02/05/2021, 11:03 AM
    Hi there, is it a known problem that the debugger does not show all
    this
    objects? It's driving me nuts since some weeks that these are constantly missing and just the main
    this
    is present in the variable view. Example:
    ➕ 1
    a
    • 2
    • 3
  • m

    mbonnin

    02/05/2021, 5:17 PM
    My IntelliJ is stuck on indexing for a while now with :
    2021-02-05 18:12:08,146 [ 725650]   INFO - il.indexing.FileBasedIndexImpl - Rebuild requested for index Stubs 
    com.intellij.util.indexing.StorageException: java.nio.file.NoSuchFileException: mvn-ea86bec8a5ee731487fd356d3f92904fd049a1c2f7d79d1c8f66da0a255e730f-f0d166cf0962/Stubs/org.jetbrains.kotlin.idea.stubindex.KotlinExactPackagesIndex/org.jetbrains.kotlin.idea.stubindex.KotlinExactPackagesIndex.storage.keystream
    	at com.intellij.indexing.shared.platform.impl.HashBasedMapReduceIndex$MyMapIndexStorage.processKeys(HashBasedMapReduceIndex.java:137)
    	at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.lambda$processAllKeys$2(VfsAwareMapReduceIndex.java:347)
    	at com.intellij.util.ConcurrencyUtil.withLock(ConcurrencyUtil.java:229)
    	at com.intellij.util.indexing.impl.storage.VfsAwareMapReduceIndex.processAllKeys(VfsAwareMapReduceIndex.java:346)
    Does that ring any bell?
    a
    • 2
    • 2
  • h

    Haris Khan

    02/06/2021, 6:23 PM
    Anyone else update to the latest kotlin plugin and having issues?
    m
    • 2
    • 4
  • j

    Javier

    02/08/2021, 10:38 AM
    Latest EAP doesn't have this screen, how can I change the memory? By default it is 750M...
    c
    • 2
    • 1
  • n

    Nikolay Kasyanov

    02/09/2021, 9:49 AM
    folks, I’m experiencing following issue: I’m using an intel mac book pro with an external monitor, the laptop is always closed. And sometimes, after I unlock/wake (not sure 100% if computer being in sleep is mandatory or just screen being locked is enough), code editing and scrolling becomes sluggish in IDEA. Relaunch fixes it immediately. IDEA CE 2020.3.2, 2021.1 EAP. Is this a known issue? How else can I help to pinpoint it?
    w
    a
    • 3
    • 4
  • s

    suresh

    02/11/2021, 7:55 PM
    I am using latest IJ 2021.1 EAP build and getting the this error in IDE for all the jetbrains compose APIs. The project is using kotlin 1.4.30 and building fine using Gradle cli. Any idea what’s happening here?
    a
    • 2
    • 1
  • m

    marzelwidmer

    02/14/2021, 6:43 AM
    Hello I want ask what are de best Inellij Setting to get more Performance my setttings are the following at the moment
    -Xms1024m
    -Xmx2048m
    -XX:ReservedCodeCacheSize=240m
    -XX:+UseConcMarkSweepGC
    -XX:SoftRefLRUPolicyMSPerMB=50
    -ea
    -XX:CICompilerCount=2
    -Dsun.io.useCanonPrefixCache=false
    -Djdk.http.auth.tunneling.disabledSchemes=""
    -XX:+HeapDumpOnOutOfMemoryError
    -XX:-OmitStackTraceInFastThrow
    -Djdk.attach.allowAttachSelf=true
    -Dkotlinx.coroutines.debug=off
    -Djdk.module.illegalAccess.silent=true
    -XX:+UseCompressedOops
    -Dfile.encoding=UTF-8
    
    -XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
    -XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
    On a
    :stackoverflow: 2
    m
    t
    • 3
    • 2
  • s

    Sudhir Singh Khanger

    02/16/2021, 3:22 AM
    How do I run a Kotlin file within the Intellij? Say I have Somefile.kt which has a code like below.
    fun main() {
        println("hello")
    }
    I can run it in a terminal using
    kotlinc Somefile.kt -include-runtime -d output.jar
    and
    java -jar output.jar
    . But how do I create the configuration to run it within Intellij.
    m
    • 2
    • 4
  • d

    dave08

    02/16/2021, 2:38 PM
    How do I get the Kotlin sources in a gradle dependency in Intellij Ultimate? I have sources for everything except a certain one...
    w
    • 2
    • 8
  • v

    vineethraj49

    02/17/2021, 2:12 PM
    can someone give me pointers on where the inspections for kotlin are defined? (intellij / plugin source)
    a
    • 2
    • 1
  • d

    dave08

    02/18/2021, 3:12 PM
    When I switched a project over to Java 11 (from 8 ) and converted to Gradle Kotlin DSL, I suddenly got a bunch of red underlines... I checked project structure dialog, couldn't find anything not 11... How do I configure gradle to get rid of all the red? The project actually compiles as-is...
    m
    a
    • 3
    • 9
  • s

    spand

    02/19/2021, 11:53 AM
    Anyone else experience that you cannot start a Kotlin Run configuration while IDEA is indexing (the buttons are grayed out) ? My other configurations Java, tests etc. are enabled just fine
    a
    • 2
    • 2
  • r

    Rob Elliot

    02/23/2021, 3:04 PM
    Not an Kotlin thing, but there’s no traffic on the IntelliJ discord… Often I hit start/debug for a service on the service window. Compilation fails, so it switches to the Build window. I fix the compilation error, want to try again - and I have to navigate to the service window again, find my service, remember whether I wanted to run or debug - I really want a “try again” in the build window, but all I’ve got is a build button, which will build it but not then run/debug it. Am I missing something? It feels like a very clunky UI journey compared to what IntelliJ generally manages.
    w
    • 2
    • 6
  • c

    Chris Ruddell

    02/23/2021, 8:18 PM
    It would be great if the “Convert Java to Kotlin” feature in IntelliJ would default to using the optional
    ?
    notation instead of force-unwrapping (
    !!
    ) everything. I understand the force-unwrapping allows it to be more in a state where it can compile, but I assume most of us go through and replace all those with optionals anyway to ensure null safety. If there is a way of changing that default behavior, please let me know.
    a
    • 2
    • 5
  • c

    christophsturm

    02/24/2021, 1:56 PM
    it seems idea can’t build gradle projects that use convention plugins with its integrated build system (jps)
    j
    • 2
    • 5
  • r

    ribesg

    02/25/2021, 12:58 PM
    Amazed it can even end up writing this text
    :trollface: 1
    s
    • 2
    • 2
  • c

    christophsturm

    02/26/2021, 3:34 PM
    is it possible to give this ticket a higher priority? https://youtrack.jetbrains.com/issue/KTIJ-2410 precompiled script plugins are the recommended way to share build logic in gradle projects nowadays, and they cause scratch files to no longer work and break the jps build
    j
    a
    • 3
    • 6
  • d

    dimsuz

    03/03/2021, 1:40 PM
    Hi! When I have
    class Builder {
      fun withSomeAction(action: (P) -> Unit)
    }
    and autocomplete this on usage site, IDE turns this into
    Builder().withSomeAction { }
    which sometimes leads to programmer errors when actions are an object. Instead I'd like to have
    Builder().withSomeAction(action)
    Is there a way to give IDE a hint I don't want to expand here? I recall there was some YouTrack issue about this, but I can't find it.
    r
    • 2
    • 3
  • o

    Orhan Tozan

    03/03/2021, 2:56 PM
    The new Reader mode for documentation is nice, but is there any setting for changing it's font size?
    a
    • 2
    • 1
Powered by Linen
Title
o

Orhan Tozan

03/03/2021, 2:56 PM
The new Reader mode for documentation is nice, but is there any setting for changing it's font size?
a

Alexey Belkov [JB]

03/10/2021, 11:07 AM
Try right click -> adjust font size on the Javadoc.
View count: 1