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

    ribesg

    04/28/2022, 2:57 PM
    I really do not expect IntelliJ to recommend & autocomplete with the second option here
    r
    w
    • 3
    • 11
  • r

    ribesg

    05/03/2022, 10:49 AM
    The CTDs make a really nice addition to the latest IntelliJ version, especially when you have projects open that take 10-15min to be indexed every time you open them, adds a little SPICE to the experience 👌
    c
    f
    • 3
    • 7
  • p

    Peter

    05/04/2022, 6:09 PM
    can anyone remember where to turn off this new feature that shows the git username above every block?
    m
    • 2
    • 2
  • a

    Ayfri

    05/07/2022, 12:25 AM
    Hi, I guess this is not normal but since 2022.1 I'm getting freezes (of 20s~40s) like, every 20s on big projects, it's the most frustrating thing I ever got while developing and I just can't work on multiple projects, I know I have a lot of plugins (80) it's the first time that I get this problem since 2 years and I allowed 3.2Go to IJ and it's not even using everything, it's about 2 GB at all times, my CPU and RAM are fine on my computer so I really don't know what is the problem about this and I really need to fix it quickly
    p
    c
    c
    • 4
    • 6
  • h

    holgerbrandl

    05/11/2022, 7:48 PM
    In the ide it is possible to open a preview for BufferedImage. Is this supported via a bundled type renderer or via some extension API? I'd like to create a similar debug UI panel for a custom kotllin type
    e
    • 2
    • 3
  • d

    Dan T

    05/11/2022, 10:30 PM
    Can I create a language injection for this pattern?
    Set mode to SQL
        If a val has the word "where" in it 
            And is in a kotlin class with "Repository" in its name
    I see something that looks similar for javascript, which is this:
    + jsLiteral().withStringValueIgnoringInterpolations(stringMatchesBrics(" *(SELECT|DELETE) .*FROM .*"))
    but I don't know how to translate that to looking at a variable in Kotlin. The result is that I'd like to be able to get automated SQL language support for variables that look like SQL in a repository class. I know I can add
    //language=sql
    val someStatement="select * from foo where x=?"
    ...but with a dozen statements in a repository, all those language comments are pretty cumbersome. Thanks for any advice!
    r
    • 2
    • 2
  • r

    Rob Elliot

    05/13/2022, 1:06 PM
    Is there any way to persuade Intellij not to reinstate class / object level qualifiers when moving things around? It's really frustrating - I import a bunch of static members, then I do a refactor of some kind and IntelliJ unimports them and my code is full of
    Charsets.UTF_8
    instead of
    UTF_8
    again.
    ➕ 5
    m
    a
    d
    • 4
    • 4
  • e

    Emil Kantis

    05/14/2022, 11:05 AM
    I'm having issues adding language injection for parameter of an infix function, is this a known limitation? The same function is called in both cases, but the injection only works for non-infix usage..
    • 1
    • 3
  • j

    Jonathan Ellis

    05/22/2022, 2:08 AM
    I upgraded intellij and now the editor is full of annotations that I am the author
    k
    k
    • 3
    • 4
  • j

    Jonathan Ellis

    05/22/2022, 2:08 AM
    w
    • 2
    • 1
  • j

    Jonathan Ellis

    05/23/2022, 6:19 PM
    is there no "convert extension function to instance method" refactoring?
    🇳🇴 2
    a
    • 2
    • 2
  • m

    mbonnin

    05/25/2022, 4:57 PM
    Is it possible to set the Gradle JVM per-project? I have some projects requiring 8, 11 and 17 and looks like the setting is global right now?
    e
    m
    +2
    • 5
    • 25
  • c

    Claude Brisson

    06/01/2022, 8:44 PM
    I have a multimodule gradle project, with : + a multiplatform application module, MAPP, with common/jvm/js targets + a multiplatform library module, MLIB, with common/jvm/js targets + a java library module, JLIB MAPP is supposed to depend on MLIB and JLIB, but whenever I add the JLIB dependency to MAPP, the MAPP source roots get broken at sync time, as if IntellijIdea was trying to find standard [main] and [test] source roots instead of multiplatform ones. If I comment the dependency to JLIB, after deleting the
    .idea
    folder, the sync succeeds and everything goes back to normal, with source and test roots properly detected in commonMain, jvmMain, jsMain and the same for test. Somehow, IntellijIdea mixes gradle build models between multiplatform and java plugins from different modules, and I don't have any clue why it happens. Versions: + IntelliJ IDEA 2021.3.3 (Ultimate Edition) Build #IU-213.7172.25, built on March 15, 2022 + Kotlin plugin 213-1.6.21-release-334-IJ6777.52 + gradle 7.1 or 7.4.2
    • 1
    • 1
  • a

    andylamax

    06/03/2022, 1:01 AM
    I am using intelliJ 2022.1.1 built on May 2022 but still getting
    This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 2021.2.1 or newer.
    How do I solve this without switching to Android Studio?
    ➕ 1
    m
    j
    +2
    • 5
    • 12
  • a

    andylamax

    06/07/2022, 8:47 AM
    Does inteliJ have a problem resolving plugin aliases from version catalogs? or do I have to enable some flags?? Command line seems fine. But
    plugins {
       alias(libs.plugins.greet)
    }
    libs
    would be highlighted with '<declaration> can't be called in this context by implicit receiver. Use the explicit one if necessary'. Is there a WA?
    s
    • 2
    • 3
  • j

    Jonathan Ellis

    06/07/2022, 10:22 PM
    is there a way to refactor a function to a property?
    r
    • 2
    • 3
  • a

    Adam S

    06/08/2022, 3:04 PM
    I'm writing some tests for a Kotlin Gradle plugin using Gradle TestKit. I'm writing
    build.gradle.kts
    files using multiline strings, and I'd like to use IntelliJ Language Injection so it looks pretty. I've set
    @Language("kotlin")
    , however, IntelliJ doesn't like it and shows an error. Is there a way of telling the language injection to highlight a string as if it were a
    .gradle.kts
    file?
    fun File.`build gradle kts`(@Language("kotlin") contents: String): File =
        createFile("build.gradle.kts", contents)
    c
    • 2
    • 4
  • s

    smallufo

    06/09/2022, 6:08 PM
    It seems IntelliJ (2022.1.2) kotlin 1.7 plugin (
    221-1.7.0-release-281-IJ5591.52
    ) has problem. I cannot build my project . errors :
    Kotlin: [Internal Error] java.lang.NoClassDefFoundError: org/jetbrains/kotlin/ir/visitors/IrElementVisitorVoidKt
    	at org.jetbrains.kotlinx.serialization.compiler.extensions.SerializationLoweringExtensionKt.runOnFileInOrder(SerializationLoweringExtension.kt:30)
    	at org.jetbrains.kotlinx.serialization.compiler.extensions.SerializationLoweringExtension.generate(SerializationLoweringExtension.kt:77)
    	at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.convertToIr$lambda-1(JvmIrCodegenFactory.kt:162)
    	at org.jetbrains.kotlin.psi2ir.Psi2IrTranslator.generateModuleFragment(Psi2IrTranslator.kt:99)
    	at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.convertToIr(JvmIrCodegenFactory.kt:194)
    	at org.jetbrains.kotlin.backend.jvm.JvmIrCodegenFactory.convertToIr(JvmIrCodegenFactory.kt:53)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.convertToIr(KotlinToJVMBytecodeCompiler.kt:232)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:115)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli$default(KotlinToJVMBytecodeCompiler.kt:60)
    	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:157)
    	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:52)
    	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:94)
    	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:43)
    	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:101)
    	at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1568)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    	at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)
    	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
    	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
    	at java.base/java.security.AccessController.doPrivileged(AccessController.java:691)
    	at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    	at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:587)
    	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
    	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:705)
    	at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
    	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
    	at java.base/java.lang.Thread.run(Thread.java:832)
    Caused by: java.lang.ClassNotFoundException: org.jetbrains.kotlin.ir.visitors.IrElementVisitorVoidKt
    	at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:440)
    	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
    	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
    	... 32 more
    I didn’t enable anything K2-related feature. This is a maven project , not a gradle project. If I invalidate cache and restart and recompile , it shows :
    Kotlin: [Internal Error] java.lang.AssertionError: org.jetbrains.kotlinx.serialization.compiler.extensions.SerializationResolveExtension caused LinkageError
    	at com.intellij.openapi.diagnostic.DefaultLogger.error(DefaultLogger.java:57)
    	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:187)
    	at org.jetbrains.kotlin.resolve.extensions.SyntheticResolveExtension$Companion$getInstance$1.generateSyntheticSecondaryConstructors(SyntheticResolveExtension.kt:307)
    	at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.addSyntheticSecondaryConstructors(LazyClassMemberScope.kt:514)
    	at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.doGetConstructors(LazyClassMemberScope.kt:509)
    	at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.access$doGetConstructors(LazyClassMemberScope.kt:51)
    	at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope$secondaryConstructors$1.invoke(LazyClassMemberScope.kt:504)
    	at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope$secondaryConstructors$1.invoke(LazyClassMemberScope.kt:504)
    	at org.jetbrains.kotlin.storage.LockBasedStorageManager$LockBasedLazyValue.invoke(LockBasedStorageManager.java:408)
    	at org.jetbrains.kotlin.storage.LockBasedStorageManager$LockBasedNotNullLazyValue.invoke(LockBasedStorageManager.java:527)
    	at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassMemberScope.getConstructors(LazyClassMemberScope.kt:518)
    	at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassDescriptor.getConstructors(LazyClassDescriptor.java:466)
    	at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassDescriptor.resolveMemberHeaders(LazyClassDescriptor.java:725)
    	at org.jetbrains.kotlin.resolve.LazyTopDownAnalyzer.resolveAllHeadersInClasses(LazyTopDownAnalyzer.kt:241)
    	at org.jetbrains.kotlin.resolve.LazyTopDownAnalyzer.analyzeDeclarations(LazyTopDownAnalyzer.kt:214)
    	at org.jetbrains.kotlin.resolve.LazyTopDownAnalyzer.analyzeDeclarations$default(LazyTopDownAnalyzer.kt:58)
    	at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(TopDownAnalyzerFacadeForJVM.kt:130)
    	at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(TopDownAnalyzerFacadeForJVM.kt:99)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:264)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:55)
    	at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.kt:115)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.kt:255)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:101)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli$default(KotlinToJVMBytecodeCompiler.kt:60)
    	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:157)
    	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:52)
    	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:94)
    	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:43)
    	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:101)
    	at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1568)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    	at java.rmi/sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)
    	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:200)
    	at java.rmi/sun.rmi.transport.Transport$1.run(Transport.java:197)
    	at java.base/java.security.AccessController.doPrivileged(AccessController.java:691)
    	at java.rmi/sun.rmi.transport.Transport.serviceCall(Transport.java:196)
    	at java.rmi/sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:587)
    	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:828)
    	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:705)
    	at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    	at java.rmi/sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:704)
    	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
    	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
    	at java.base/java.lang.Thread.run(Thread.java:832)
    Caused by: java.lang.NoSuchMethodError: 'org.jetbrains.kotlin.types.SimpleType org.jetbrains.kotlin.types.KotlinTypeFactory.simpleType$default(org.jetbrains.kotlin.descriptors.annotations.Annotations, org.jetbrains.kotlin.types.TypeConstructor, java.util.List, boolean, org.jetbrains.kotlin.types.checker.KotlinTypeRefiner, int, java.lang.Object)'
    	at org.jetbrains.kotlinx.serialization.compiler.resolve.SearchUtilsKt.toSimpleType(SearchUtils.kt:120)
    	at org.jetbrains.kotlinx.serialization.compiler.resolve.KSerializerDescriptorResolver.createLoadConstructorDescriptor(KSerializerDescriptorResolver.kt:342)
    	at org.jetbrains.kotlinx.serialization.compiler.extensions.SerializationResolveExtension.generateSyntheticSecondaryConstructors(SerializationResolveExtension.kt:96)
    	at org.jetbrains.kotlin.resolve.extensions.SyntheticResolveExtension$Companion$getInstance$1.generateSyntheticSecondaryConstructors(SyntheticResolveExtension.kt:131)
    	... 44 more
    Is there a way to downgrade my kotlin plugin to 1.6 ?
    h
    n
    • 3
    • 4
  • n

    napperley

    06/10/2022, 2:14 AM
    @Sergei Pecherkin [JetBrains] - Tried multiple times to install the latest Kotlin plugin that covers Kotlin 1.7.0, however a dialog box keeps on appearing that mentions the installation has failed with a 403 status code. If the Check for Updates... action is run then the following error appears:
    Failed to load plugins from the default repository: Request failed with status code 403
    • 1
    • 1
  • w

    wasyl

    06/10/2022, 9:15 AM
    Just found out https://youtrack.jetbrains.com/issue/KTIJ-9834, consider voting for it to maybe bump its priority 🙂 It’s an extremely useful refactoring, shame it’s not available for Kotlin
    c
    • 2
    • 1
  • v

    v79

    06/11/2022, 1:15 PM
    What does one do when IntelliJ refuses to recognise a particular import... even though gradle builds the code fine, you've completely nuked the project (rm -vfr) and reimported it from github, and intellij still shows the import in red?
    c
    a
    • 3
    • 4
  • n

    Norbi

    06/16/2022, 7:47 AM
    Hello, I tried to use a Kotlin scratch in Idea with REPL mode enabled. When I click the green run button, the whole script is always executed at once. What should I do to execute it really incrementally as the docs says? Thanks.
    ✅ 2
    • 1
    • 1
  • r

    Richard Gomez

    06/17/2022, 3:01 PM
    Why would IntelliJ be displaying an old version of a library that's no longer used by direct or transitive dependencies (under "External libraries")? It persists after doing a restart and rebuild, and refreshing Maven indices. 😞
    c
    a
    w
    • 4
    • 11
  • s

    smallufo

    06/21/2022, 9:52 PM
    github copilot is charging. Will IntelliJ plain to build in such AI-assistant ? (copilot’s kotlin support is awesome)
    👍 3
  • b

    beholder

    06/22/2022, 9:44 AM
    Kotlin plugin has some inspections with "Info" severity level, but this level cannot be selected and does not appear in dropdown list. Should it be reported as bug?
    a
    • 2
    • 1
  • d

    Draget

    06/22/2022, 11:35 AM
    I have projects with .yaml files that are someitmes Ansible playbooks, sometimes Kubernetes deploy manifests and someitmes other types of YAML files. If it want to overwrite the filetype associated, I have to choose a file-name pattern or shebang. Is it possible to define in a project 'this directory contains ansible stuff', 'this directory contains kubernetes stuff' or how should I handle this?
    s
    • 2
    • 6
  • f

    Francis Altomare

    06/22/2022, 1:55 PM
    Hey everyone — has anyone seen an issue where running tests using Gradle from IntelliJ results in no env vars being set? Even env vars that are set directly in the run configuration? Running and debugging using IntelliJ instead of Gradle doesn’t have this issue — env vars are correctly set. I suspect something is up with my project configuration, I can’t reproduce this issue with a clean project, but I’m not sure where I could look to see whats up.
  • m

    mbonnin

    06/22/2022, 3:03 PM
    Where can I find the source code for the IntelliJ inspections? Is it part of IntelliJ? Kotlin? Somewhere else?
    ✅ 1
    • 1
    • 2
  • b

    Big Chungus

    06/22/2022, 7:17 PM
    Hi guys, I have a KMP library project that makes heavy use of hierarchical sourceSets. Sadly, though, IDE is not able to resolve them in a consumer project even though all the gradle builds go through just fine. Could someone from IJ team have a look to at least confirm that it's not an issue with my setup? 1. checkout https://github.com/mpetuska/klip 2. Import
    ./klip-sandbox
    3. Open
    ./klip-sandbox/src/commonTest/kotlin/KlipTest.kt
    4. Notice how all
    klip
    functions are unresolved 5. (Optional) you can also comment-out included build and use version 0.4.1 from maven central.
    a
    • 2
    • 2
  • b

    beholder

    06/24/2022, 12:41 PM
    What is that thing and is it possible to get rid of it? I don't have kotlin scripts (only Gradle build script)
    m
    • 2
    • 1
Powered by Linen
Title
b

beholder

06/24/2022, 12:41 PM
What is that thing and is it possible to get rid of it? I don't have kotlin scripts (only Gradle build script)
m

Matthew Gast

06/24/2022, 1:59 PM
It is used by Gradle itself, so there shouldn't be any issues. Anything with that orangeish/yellow background (whatever you want to call that color) is on the Gradle classpath. That will include any scripts, and dependencies Gradle itself is pulling in, or any dependencies needed for any Gradle plugins you are using.
View count: 1