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

    Dmitry Kandalov

    03/02/2019, 6:45 PM
    Is there an easy way to figure out which version of kotlin is bundled with different IDE versions?
    b
    • 2
    • 3
  • s

    Slackbot

    03/21/2019, 7:11 AM
    This message was deleted.
    g
    • 2
    • 1
  • d

    Dmitry Kandalov

    06/10/2019, 6:09 PM
    In
    build.gradle
    for a plugin I can specify other plugins it depends, e.g.
    intellij {
    	plugins = ["github", "junit"]
    }
    however it doesn’t work with
    build.gradle.kts
    , e.g.
    configure<IntelliJPluginExtension> {
        plugins = arrayOf("") // <-- Val cannot be reassigned
    }
    Is it a bug?
    b
    • 2
    • 3
  • d

    Dmitry Kandalov

    06/10/2019, 6:50 PM
    In the
    LATEST-EAP-SNAPSHOT
    tests extending
    LightPlatformCodeInsightFixtureTestCase
    recently started failing with
    CompositeException (2 nested):
    ------------------------------
    [0]: java.lang.ClassNotFoundException: com.intellij.stats.sender.SenderComponent
    [1]: CompositeException (2 nested):
    ------------------------------
    [0]: CompositeException (4 nested):
    ------------------------------
    [0]: java.lang.ClassNotFoundException: com.android.tools.idea.apk.viewer.ApkFileSystem
    [1]: cannot create class "com.intellij.openapi.actionSystem.DefaultActionGroup" [Plugin: com.intellij]
    [2]: Unknown macro: $ROOT_CONFIG$ in storage file spec: $ROOT_CONFIG$
    [3]: java.lang.ClassNotFoundException: com.android.tools.idea.apk.viewer.ApkFileSystem
    I don’t think my project depends on
    SenderComponent
    or
    ApkFileSystem
    . Does anyone know why this might happen?
    b
    • 2
    • 3
  • m

    m

    07/10/2019, 1:26 PM
    Hi. How to find usage of deprecated java classes with
    Structural Search
    command in Intellij IDEA?..
    • 1
    • 2
  • d

    Dmitry Kandalov

    07/31/2019, 3:44 PM
    I’m trying to update a plugin at https://plugins.jetbrains.com but after login I get
    UH-OH! Verification Error
    page which forces me to verify email. But the email verification link (pointing to https://hub.jetbrains.com/users/xxx-my-user-id) returns
    404: Nope, can't find it!
    . Does anyone know if this is a temporary issue or I fell through the cracks of enterprise applications and need advanced admin help?
    b
    • 2
    • 2
  • r

    raulraja

    08/29/2019, 7:13 PM
    Hi, I'm writing an IDEA Plugin for which I wish to derive automatically Synthetic Descriptors given a decompiled kt file that is on the build folder. An external process is generating new binaries in the build folder and idea is not recognizing properly new classes and functions. Is there a plugin out there that does something similar keeping the Editor in sync with the build folder contents ? Thanks !
    t
    • 2
    • 2
  • b

    Brian Estrada

    10/07/2019, 9:10 AM
    . I want these . vv vvv someFunctionName(“valueOne”,“ValueTwo”)
    m
    r
    • 3
    • 8
  • s

    Slackbot

    11/01/2019, 8:20 PM
    This message was deleted.
    b
    • 2
    • 1
  • f

    Foso

    11/11/2019, 6:45 PM
    Hi, does someone know an example intellij plugin that is using javaFx for the Gui?
    m
    • 2
    • 2
  • c

    caffeine

    12/01/2019, 9:09 PM
    Hello. I try to create plugin. I created custom editor for non-text format. How I can use embedded redo and undo functions? And second question: when I must save my operation data into disk? Does IDE send some event for save data into disk?
    h
    • 2
    • 5
  • k

    kpgalligan

    12/10/2019, 1:08 PM
    I’m new(ish) to plugin dev, but wanted to do a POC of something and figured the easiest way is to find a similar feature and work my way out. Essentially I’d like to figure out how this is implemented. When you click on a reference, the source of the reference is highlighted. I’m working with Kotlin specifically, but this seems to be common for languages. Thanks in advance!
    highlightref.mp4
    r
    • 2
    • 2
  • k

    kpgalligan

    01/04/2020, 8:16 PM
    I’m trying to get the class type from a
    KtClass
    instance. This seems to work in other contexts, but for some reason I’m stuck in one specific case. I have a
    KtProperty
    and am trying to get the type of it’s parent
    KtClass
    . I’m quite new to the Kotlin PSI, so I’m mostly just hacking around to figure things out. I’m sure I’m doing something quite wrong, but any tips would be appreciated. More detail here: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360006941519-Getting-class-type-from-KtClass
    • 1
    • 1
  • c

    caffeine

    01/07/2020, 12:41 PM
    Hello. I try to write some plugin. My plugin comunicate with kotln-plugin. How I can get property annatations using psi?
    r
    m
    • 3
    • 4
  • a

    Ahmed Mourad

    03/05/2020, 12:07 PM
    I'm trying to create an inspection suppressor for Kotlin but for some reason it's not recognized as a valid input for the
    language
    attribute:
    <idea-plugin>    
        <!-- ... -->
        <depends>org.jetbrains.kotlin</depends>
    
        <extensions defaultExtensionNs="org.jetbrains.kotlin">
        <!-- ... -->
        </extensions>
    
        <extensions defaultExtensionNs="com.intellij">
            <lang.inspectionSuppressor
                    language="kotlin"     <!-- Unresolved reference -->
                    implementationClass="MyInspectionSuppressor"
                    order="first"
            />
        </extensions>
    m
    • 2
    • 2
  • r

    raulraja

    03/12/2020, 5:52 PM
    Hi, I'd like to know if it's possible to contribute to the EduTools plugin. The current repo on GitHub does not seem to match the latest plugin versions and I would love to add additional languages.
    • 1
    • 1
  • a

    adev_one

    03/14/2020, 12:14 PM
    I started to get errors after upgrading from
    2019.1
    to
    2019.2
    Cannot access 'com.intellij.psi.PsiModifiableCodeBlock' which is a supertype of 'org.jetbrains.kotlin.psi.KtProperty'. Check your module classpath for missing or conflicting dependencies
    My
    build.gradle
    : https://github.com/adevone/summer-plugin/blob/bugfix/psi_modifiable_code_block/build.gradle Whole plugin sources: https://github.com/adevone/summer-plugin/blob/bugfix/psi_modifiable_code_block
    r
    • 2
    • 2
  • a

    adev_one

    03/20/2020, 8:07 AM
    Can I get supertypes of KtClass as KtClass’es?
    • 1
    • 2
  • d

    Dmitry Kandalov

    03/28/2020, 4:11 PM
    It looks like
    WindowManagerListener.frameCreated()
    is not called anymore in the latest IJ versions. Does anyone know if this is a bug or intentional (there are no deprecation annotations on
    WindowManagerListener
    though)?
    • 1
    • 1
  • g

    gammanik

    04/02/2020, 3:32 PM
    Hello! Are there any repos or examples of how to use Kotlin script engine in Intellij plugin dev? I’m trying to start with a simple code:
    setIdeaIoUseFallback()
    val engine = ScriptEngineManager().getEngineByExtension("kts")!!
    I’ve added dependencies and
    /services/javax.script.ScriptEngineFactory
    file. But the engine is actually null. There is no factory for Kotlin in
    ScriptEngineManager().engineFactories
    r
    • 2
    • 9
  • d

    dephinera

    04/12/2020, 10:29 AM
    Hello, everyone! Any references for getting started with Intellij plugins? More specifically for editing the PSI for code generation. Do you have anything that you've found very useful? I want to create a compiler plugin + IDE plugin for exposing mutable private properties as immutable public ones. For example:
    class A {
        @Expose
        private val mutableList = mutableListOf<String>()
    }
    
    class B(val a: A) {
        init {
            a.mutableList.add("hi") // ERROR!! the type here would be just List<String> instead of MutableList<String>
        }
    }
    I'm doing it as a project at my university, but I'll release it as open source. I want to put an end to the private mutable-pulbic immutable boilerplate.
    r
    i
    b
    • 4
    • 32
  • d

    Dima Avdeev

    05/09/2020, 2:45 PM
    Which extension point or listener is called upon the first launch or install of My plugin? I trying to use:
    <applicationListeners>
        <listener class="MyListener" topic="com.intellij.ide.plugins.DynamicPluginListener"/>
        <listener class="MyListener" topic="com.intellij.ide.plugins.PluginStateListener"/>
    </applicationListeners>
    but it don't handle my plugin, Also I try to check:
    InstalledPluginsState.getInstance().installedPlugins
    But it don't contains my plugin. I want to execute some startup script only once - then IDE install my plugin, or plugin run first time
    i
    • 2
    • 3
  • t

    themishkun

    05/25/2020, 3:31 PM
    Hi guys Any tips on how to resolve a type declaration in the constructor call? i.e. given
    // foo.kt
    package foo
    data class Bar(val x: Int)
    
    // foox.kt
    package foox
    import foo.Bar
    data class Buzz(val bar: Bar)
    I want to jump from
    KtClass
    of
    Buzz
    to the
    KtClass
    of
    Bar
    , emulating
    jump to declaration
    functionality of the IDE. What is a right way to approach this?
    i
    • 2
    • 11
  • s

    SrSouza

    06/12/2020, 1:47 AM
    Hi folks, there is any built in API in IntelliJ SDK to do a Split View in FileEditor? The Android Studio is using alot of it and Markdown official plugin is using too.
    • 1
    • 1
  • s

    SrSouza

    06/13/2020, 6:34 PM
    It is possible with the new Dynamic Plugins to load a plugin from a Gradle project? If is not possible, this is something that IntelliJ could have in the future? Use case: I have a compiler plugin for Kotlin and I want to have Insights, Line Marker, TextEditorWithPreview, etc directly in the IntelliJ.
    g
    • 2
    • 1
  • d

    dephinera

    06/19/2020, 1:19 PM
    hello, I'm trying to change the name of a REFERENCE_EXPRESSION. I'm trying to do that by replacing the PsiElement (IDENTIFIER) child of it. Sadly in the
    fun visitReferenceExpression(expression: KtReferenceExpression)
    method the expression is missing the identifier child. The other problem I have is that when I try the resolve the declaration reference, I always get null and the references list is empty, even though the Psi Viewer plugin shows that it shouldn't be. Is it possible to modify the PSI from a visitor?
    • 1
    • 2
  • b

    Brian

    06/26/2020, 2:51 AM
    Any thoughts?
    • 1
    • 3
  • c

    caffeine

    06/28/2020, 3:49 PM
    Hello! I try to write some plugin. How I can pass some data from gradle plugin to intellij plugin?
    b
    • 2
    • 2
  • j

    Julio Zynger

    07/04/2020, 1:56 PM
    I’m following JetBrains’ sample website to write a plugin with a
    RelatedItemLineMarkerProvider
    . I have registered the class in the
    plugin.xml
    file (as
    JAVA
    and
    kotlin
    entries) but I still do not receive calls to either on
    collectNavigationMarkers
    nor
    getLineMarkerInfo
    . What am I missing?
    b
    d
    • 3
    • 16
  • s

    SrSouza

    08/03/2020, 3:45 PM
    Hi folks, I have a problem here, I trying to change the Kotlin Scripting Icon like the Gradle Script does for my new scripting but it is not working. Its is working only on the File Editor icon. I try to use this extension points:
    fileIconPatcher
    and
    fileIconProvider
    . Anyone from the Kotlin plugin team can help me with it?
    • 1
    • 2
Powered by Linen
Title
s

SrSouza

08/03/2020, 3:45 PM
Hi folks, I have a problem here, I trying to change the Kotlin Scripting Icon like the Gradle Script does for my new scripting but it is not working. Its is working only on the File Editor icon. I try to use this extension points:
fileIconPatcher
and
fileIconProvider
. Anyone from the Kotlin plugin team can help me with it?
Here is my source code if helps https://github.com/DevSrSouza/Bukkript/tree/master/intellij/src/main/kotlin/br/com/devsrsouza/bukkript/intellij
Found the fix, I was using FileIconProvider and not IconProvider, I add a order="first" too
👍 1
View count: 5