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-plugins
  • q

    qwentynotarantino

    06/30/2017, 10:58 AM
    Hello everyone! I am not sure where to write it, but I cannot update Kotlin Plugin in Android studio from 1.1.2-4 to 1.1.3. I am updating it using Tools-Kotlin-Configure Kotlin Plugin Updates, but after restarting android studio I get 1.1.2-4. Is there any way to fix that?
    g
    • 2
    • 2
  • b

    breandan

    07/17/2017, 7:03 AM
    Having a difficult time using
    PersistentStateComponent
    . Nothing seems to be calling
    loadState()
    . Any ideas what I'm doing wrong? https://github.com/johnlindquist/AceJump/blob/master/src/main/kotlin/com/johnlindquist/acejump/config/AceConfig.kt
    y
    • 2
    • 7
  • d

    Dmitry Kandalov

    08/14/2017, 11:23 PM
    What is the proper way to set up plugin project in gradle? I found https://github.com/JetBrains/gradle-intellij-plugin but it generates non-plugin modules.
    y
    • 2
    • 2
  • n

    nitrog42

    08/17/2017, 8:09 AM
    Hello Jetbrains guys, I have an issue with https://github.com/JetBrains/gradle-intellij-plugin , basically Kotlin class for IntelliJ plugin aren’t copied into the jar, only when using Kotlin 1.1.4. Is it a Kotlin issue or a gradle-intellij-plugin issue ? @yole
    y
    • 2
    • 2
  • y

    yole

    08/18/2017, 10:04 AM
    #intellij
    a
    • 2
    • 1
  • a

    alec

    09/13/2017, 3:37 PM
    can you command+click an element and be brought to its source?
    a
    • 2
    • 3
  • y

    yole

    11/01/2017, 12:44 PM
    you need to add a dependency on the Kotlin plugin to your project, and then you'll be able to use the APIs. you can find plenty of examples in the Kotlin plugin source code
    m
    • 2
    • 2
  • m

    m

    11/06/2017, 6:40 PM
    It seems related to
    Assertion failed: Duplicate bundled template New Kotlin Function Body.kt [jar:file:/Applications/IntelliJ%20IDEA%202017.3%20EAP.app/Contents/plugins/Kotlin/lib/kotlin-plugin.jar!/fileTemplates/code/New Kotlin Function Body.kt.ft, jar:file:/Users/m/Library/Caches/IntelliJIdea2017.3/plugins-sandbox/plugins/mockito-generator/lib/kotlin-plugin.jar!/fileTemplates/code/New Kotlin Function Body.kt.ft]
    Is it my local env issue?
    s
    • 2
    • 2
  • n

    nvinayshetty

    01/20/2018, 7:29 AM
    in short what is the ktClass equivalent for following code for PsiClass
    a
    • 2
    • 1
  • j

    joscha.alisch

    01/20/2018, 11:30 AM
    I’m setting up my first plugin project using the gradle intellij plugin. Everything seems to be working fine, when running “runIde” but after the new intellij instance opens it hangs after every ui-action for around 10-20 seconds. Anybody has an idea what i might be doing wrong? Here is my `build.gradle`:
    buildscript {
        ext.kotlin_version = '1.2.10'
    
        repositories {
            maven { url '<http://dl.bintray.com/jetbrains/intellij-plugin-service>' }
            jcenter()
            maven { url "<https://oss.sonatype.org/content/repositories/snapshots/>" }
            mavenCentral()
        }
        dependencies {
            classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        }
    }
    
    plugins {
        id 'org.jetbrains.intellij' version "0.2.17"
    }
    
    apply plugin: 'org.jetbrains.intellij'
    apply plugin: 'kotlin'
    
    intellij {
        version 'LATEST-EAP-SNAPSHOT'
        pluginName 'My Plugin'
    }
    
    repositories {
        mavenCentral()
    }
    
    compileKotlin {
        sourceCompatibility = 1.8
        targetCompatibility = 1.8
    }
    
    tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
        kotlinOptions {
            jvmTarget = "1.8"
        }
    }
    a
    • 2
    • 1
  • d

    Dmitry Kandalov

    01/31/2018, 10:53 PM
    Should I raise :youtrack: issue for this or I'm missing something?
    s
    • 2
    • 2
  • b

    breandan

    02/04/2018, 5:17 PM
    Is the gradle-grammarkit-plugin still being maintained? https://github.com/hurricup/gradle-grammar-kit-plugin
    z
    • 2
    • 1
  • d

    dh44t

    02/06/2018, 5:48 PM
    I know that isn't Kotlin related,but http://plugins.intellij.net/ is down like 50% (or even more)
    g
    a
    • 3
    • 3
  • g

    galex

    02/12/2018, 7:22 PM
    Do someone here can help? I’m using https://github.com/JetBrains/gradle-intellij-plugin and I am trying to set up a library module which would be used by two other modules, each one an IntelliJ Plugin, and can’t manage to import the library inside the two other modules
    z
    • 2
    • 5
  • j

    jtonic

    03/01/2018, 6:57 AM
    Hi, I plan to work on a idea plugin, but I really like to do the build with gradle. I looked over the examples of gradle-intellij-plugin plugin. All is fine as long as I run the plugin tasks. But what I would like to do is to create a run configuration for the plugin. Trying to do this lead me to the following error in the run configuration dialog: No plugin module specified for configuration. 1. Is there a way to handle this in Idea 2. better, a) can I use idea gradle plugin to apply the plugin facet to the project module(S), and b) create a run configuration for it, c) make the idea task a default one. Thank you in advance for your comments/suggestions.
    z
    k
    • 3
    • 5
  • d

    digitalsanctum

    07/23/2018, 8:56 PM
    can anyone point me to plugin sources that use Kotlin as the implementation language?
    b
    • 2
    • 2
  • j

    jw

    08/09/2018, 4:04 AM
    AS is at 2018.2 of IntelliJ and IntelliJ IDEA is at 2018.2.1... that's not exactly "several releases late"
    r
    m
    • 3
    • 7
  • t

    trevjones

    08/09/2018, 4:35 AM
    community is
    IC-182.*
    ultimate is
    IU-182.*
    and studio is
    AI-182.*
    based on what is listed in the readme here: https://github.com/JetBrains/gradle-intellij-plugin I would think you just need to set your type correctly
    r
    • 2
    • 6
  • p

    Parshav

    08/22/2018, 4:05 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.
    d
    • 2
    • 2
  • t

    trevjones

    08/22/2018, 8:40 PM
    can you use a bash run config and just use ctrl+r or would that be too clunky?
    p
    • 2
    • 1
  • d

    Dmitry Kandalov

    09/12/2018, 6:40 PM
    Is there a way to transfer ownership of a plugin in JetBrains Plugins Repository?
    b
    • 2
    • 1
  • c

    cfleming

    09/19/2018, 12:36 PM
    I’m trying to add support for the 2018.3 beta to my plugin. When I switch to compiling against 183.2407.10, I get tons of errors along the lines of:
    Class 'kotlin.jvm.Throws' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler
    d
    • 2
    • 1
  • m

    m

    10/11/2018, 5:29 PM
    Hi. Is it possible to develop plugin for DataGrip (For example to add additional Go To Record action) ?
    d
    • 2
    • 2
  • c

    Chris Cunningham

    11/06/2018, 3:47 PM
    how are most of you guys dealing with UI’s for intellij plugins, doing it all in kotlin, or making the UI in the swing ui builder and binding to java
    b
    • 2
    • 10
  • c

    Chris Cunningham

    11/13/2018, 4:02 AM
    how is this warning supposed to be dealt with, do i have to go back to 1.2, or is it possible to include the jar
    y
    • 2
    • 4
  • c

    Chris Cunningham

    11/18/2018, 11:05 PM
    what kinda of limitations is there on what can be Serialized with the State attribute? am getting a
    XmlSerializationException
    when ever my application tries to save its settings. They type i am trying to use is not all that complex either, its just a data class contains a
    MutableMap<String, MyOtherDataClass>
    • 1
    • 1
  • k

    kasper.kondzielski

    12/09/2018, 3:50 PM
    Hi @Mark unfortunately I dont know any materials apart from official docs (https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started.html), but I did something similar in the past like writing my own test framework for kotlin and later writing plugin for intellij idea for it. So if anything I can show you how I did that https://github.com/ghostbuster91/nspek-intellij-plugin I hope that it will help you, also I will be glad to answer your questions about my code.
    m
    • 2
    • 1
  • d

    Dmitry Kandalov

    12/16/2018, 2:07 PM
    How can I make plugin settings UI searchable? For example: - open
    IDE settings -> Other settings -> My plugin settings
    - type something in search dialog - matching UI components are highlighted while typing, however, half second later my plugin settings entry disappears from the list of matching settings
    z
    • 2
    • 1
  • c

    cfleming

    01/10/2019, 9:57 PM
    @Dmitry Kandalov See https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000213760-Is-SearchableOptionsContributor-available-now-
    👍 1
    d
    • 2
    • 1
  • g

    Graeme

    01/25/2019, 3:50 PM
    Question: if one writes a Kotlin compiler plugin does the plugin automatically work in Intellij? Or does special IDE support need to be built
    d
    • 2
    • 4
Powered by Linen
Title
g

Graeme

01/25/2019, 3:50 PM
Question: if one writes a Kotlin compiler plugin does the plugin automatically work in Intellij? Or does special IDE support need to be built
d

Dmitry Kandalov

01/26/2019, 9:56 PM
Depends on compiler plugin functionality but if it’s something like new keyword afaik you’ll need special IDE support for it.
From what I remember from KontlinConf though the long term plan is to change compiler plugin API so that it will “just work” in IDE.
g

Graeme

01/29/2019, 8:06 AM
Thanks for the reply. I’m not looking to change the syntax just confirmation that compiler plugins are picked up automatically by the IntelliJ compiler. KAPT for example is not.
d

Dmitry Kandalov

01/29/2019, 11:48 AM
Oh, I think I misinterpreted your question 🤔 Thought it was about IDE support in general. For IJ compiler to pick up plugins I guess you’ll need to specify them in
IDE Preferences -> Kotlin Compiler
settings with parameters as described here https://kotlinlang.org/docs/reference/compiler-plugins.html#using-in-cli
View count: 4