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

    mikehearn

    06/13/2017, 8:20 AM
    hm, blowing away my .idea and then doing a restart/invalidate caches has temporarily fixed it again, so i have a diff of a working .idea vs a broken one now. but i expect the problem to return shortly, perhaps next time I do a gradle sync.
    c
    • 2
    • 4
  • c

    Czar

    06/13/2017, 9:09 AM
    In kotlin reference there is this bit:
    Starting with Kotlin 1.1.2, the dependencies with group
    org.jetbrains.kotlin
    are by default resolved with the version taken from the applied plugin.
    So, when I updated from
    1.1.1
    to
    1.1.2-5
    I removed
    $kotlinVersion
    from my compile dependencies:
    compile 'org.jetbrains.kotlin:kotlin-stdlib-jre8'
    Unfortunately though for `./gradlew build`: Execution failed for task ':*****:*****:compileKotlin'.
    > Could not resolve all dependencies for configuration ':*****:*****:detachedConfiguration5'.
    > Could not find org.jetbrains.kotlin:kotlin-stdlib-jre8:.
    Searched in the following locations:
    file:/home/czar/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jre8//kotlin-stdlib-jre8-.pom
    file:/home/czar/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jre8//kotlin-stdlib-jre8-.jar
    https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre8//kotlin-stdlib-jre8-.pom
    https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre8//kotlin-stdlib-jre8-.jar
    https://artifactory.********/repository/maven-releases/org/jetbrains/kotlin/kotlin-stdlib-jre8//kotlin-stdlib-jre8-.pom
    https://artifactory.********/repository/maven-releases/org/jetbrains/kotlin/kotlin-stdlib-jre8//kotlin-stdlib-jre8-.jar
    Required by:
    project :*****:*****
    And when I try to refresh the project in IntelliJ, I get very similar error:
    >>
    Error: Could not find org.jetbrains.kotlin:kotlin-stdlib-jre8:. Searched in the following locations: file:/home/czar/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jre8//kotlin-stdlib-jre8-.pom file:/home/czar/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-jre8//kotlin-stdlib-jre8-.jar https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre8//kotlin-stdlib-jre8-.pom https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jre8//kotlin-stdlib-jre8-.jar https://artifactory.*******/repository/maven-releases/org/jetbrains/kotlin/kotlin-stdlib-jre8//kotlin-stdlib-jre8-.pom https://artifactory.*******/repository/maven-releases/org/jetbrains/kotlin/kotlin-stdlib-jre8//kotlin-stdlib-jre8-.jar Required by: project ******* > project ******
    y
    h
    • 3
    • 7
  • f

    fitermay

    06/21/2017, 1:57 AM
    why is intellij built with kotlin language level 1.0?
    c
    • 2
    • 1
  • d

    Dalinar

    06/23/2017, 7:13 AM
    I'm too lazy to make an issue for such a minor thing but just in case anyone at jetbrains is interested to know, there is an "uh-oh" page link at https://www.jetbrains.com/help/idea/2017.1/debugging-javascript-in-chrome.html - the one about configuring
    o
    r
    • 3
    • 2
  • n

    nkiesel

    06/26/2017, 11:28 PM
    I have a strange Kotlin/Intellj problem: Kotlin complains that
    javax.xml.XMLConstants.NULL_NS_URI
    is an unresolved reference, but
    javax.xml.XMLConstants.XML_NS_URI
    works fine. Compiling from command line works for both. Any ideas?
    y
    • 2
    • 3
  • n

    nkiesel

    06/27/2017, 10:35 PM
    latest community Linux intellj hangs hard (only reacts to
    kill -9
    ) when trying to convert a Java snippet into Kotlin. Simply pasting Java into the kotlin file works though.
    o
    t
    a
    • 4
    • 6
  • m

    mikehearn

    06/30/2017, 12:37 PM
    has this feature ever been ported to gradle properly? https://blog.jetbrains.com/idea/2010/05/maven-dependencies-diagram/
    o
    • 2
    • 5
  • n

    nayanjyoti

    07/03/2017, 7:12 AM
    I also looked in the ~/Library/Caches/ folder.
    c
    c
    • 3
    • 3
  • t

    trevjones

    07/13/2017, 6:29 PM
    it would be super nice if you could hit f1 on language keywords and get the popup with language docs. maybe even filtered to the given context/usecase?
    y
    • 2
    • 1
  • f

    fitermay

    07/15/2017, 12:53 PM
    Would an IntelliJ plugin compiled against language level 1.1 work with IntelliJ?
    y
    • 2
    • 3
  • r

    rocketraman

    07/17/2017, 11:40 PM
    Argh, I hate that IJ doesn't let me paste my password into the Jetbrains account login dialog...
    y
    • 2
    • 2
  • r

    rogeralsing

    07/18/2017, 2:57 PM
    dooh
    g
    • 2
    • 1
  • m

    mfiano

    07/18/2017, 5:06 PM
    Thanks. I just started learning IJ and KT today, and my friend has a video with Hadi showing 100 downTo 1 result, and then directly after showing result of 100..1 as the same...so I'm a bit confused.
    h
    • 2
    • 4
  • g

    gregd

    07/20/2017, 8:18 AM
    I'd like to have the color of my braces & punctuation a bit lighter than others. But I really can't find a way of changing those colons 😉
    o
    y
    • 3
    • 6
  • y

    yole

    07/20/2017, 9:52 AM
    no. we don’t think that removing explicit type declarations wherever possible is a good way to clean up Kotlin code
    c
    • 2
    • 1
  • y

    yole

    07/20/2017, 12:17 PM
    try this build? https://teamcity.jetbrains.com/repository/download/Kotlin_114_CompilerAndPlugin_NoTests/1120718:id/kotlin-plugin-1.1.4-eap-33-IJ2017.2-1.zip
    c
    • 2
    • 1
  • k

    kirillrakhman

    07/21/2017, 10:33 AM
    Just write
    Foo : SuperFoo
    d
    • 2
    • 1
  • e

    enighma

    08/04/2017, 7:41 AM
    I have a ktor project setup using gradle as build tool. One odd thing is that when I run it with a configuration inside intellij I get a crash when it tries to load a page. However, if I run it from the terminal inside intellij (same gradle task), it works fine. I’m using the gradle wrapper so I’m having a hard time figuring out what could be the difference. I’d be happy if anyone can point me in the right direction 🙂 This is the beginning of the crash:
    java.lang.VerifyError: Uninitialized object exists on backward branch 69
    Exception Details:
      Location:
        org/jetbrains/ktor/routing/RoutingResolveContext.parse(Ljava/lang/String;)Ljava/util/List; @106: goto
      Reason:
        Error exists in the bytecode
    ...
    o
    • 2
    • 3
  • p

    Paul Woitaschek

    08/10/2017, 1:42 PM
    Do you have the problem too that when you write "assertThat", there is no autocompletion and you have to add the junit import yourself?
    o
    r
    +2
    • 5
    • 5
  • t

    tlaukkan

    08/12/2017, 6:59 AM
    Has anyone seen this kind of Intellij kotlin editor complaint of Regex constructor while compilation passes: Overload resolution ambiguity. All these functions match. public constructor Regex(pattern: String) defined in kotlin.text.Regex public fun Regex(pattern: String): Regex defined in kotlin.text
    y
    • 2
    • 3
  • t

    tlaukkan

    08/12/2017, 8:33 AM
    I have noticed if I do IDE builds and gradle build simultaneously IDE seems to include the gradle build outputs in dependency projects instead of IDE build outputs even so that recompiling from IDE does not override dependent module gradle outputs. gradle clean resolves the issue for me
    y
    • 2
    • 1
  • h

    horse_badorties

    08/15/2017, 11:35 AM
    With the 1.1.4 kotlin plugin I can no longer do a documentation lookup
    Ctrl+Q
    while browsing the code completion list
    Ctrl-Space
    .
    Ctrl+Q
    works fine inside the editor though (lookup documentation for token at caret). Only Kotlin is affected, for Java it’s still fine. Can somebody confirm? Kotlin plugin 1.1.4-release-IJ2017.2-1 IntelliJ IDEA 2017.2.1 Build #IC-172.3544.35, built on July 31, 2017
    y
    t
    • 3
    • 7
  • h

    horse_badorties

    08/15/2017, 5:05 PM
    (how) can I downgrade to the 1.1.3 kotlin plugin?
    • 1
    • 1
  • e

    exfalso

    08/15/2017, 5:12 PM
    hi, recently intellij became extremely slow (constant hangs, up to a minute) to the point that it's nearly unusable. Anyone else experiencing this? What can I do to speed it up? I switched off all unused plugins
    y
    • 2
    • 1
  • e

    exfalso

    08/15/2017, 5:13 PM
    using version
    2017.2.172.3757.29-1
    p
    • 2
    • 4
  • e

    exfalso

    08/15/2017, 5:36 PM
    it seems kotlin related, seems to be blocking in KotlinResolveCache.kt
    s
    • 2
    • 1
  • n

    nkiesel

    08/16/2017, 12:55 AM
    upgraded to 1.4 and now I see tons of "Unresolved service: class org.jetbrains.kotlin.resolve.jvm.JavaDescriptorResolver" errors. Time to downgrade?
    y
    • 2
    • 6
  • e

    Eugen Martynov

    08/16/2017, 7:42 AM
    @trevjones no I didn’t
    k
    • 2
    • 3
  • h

    horse_badorties

    08/16/2017, 1:31 PM
    I don't want to be overly insistent but am I really the only one having this issue with the 1.1.4 kotlin plugin?
    In a Kotlin editor I type
    "foo".
    then
    Ctrl+Space
    . With the code completion list open I do
    Ctrl-Q
    and nothing happens.
    When I type
    "foo".s
    and then do
    Ctrl-Space
    and
    Ctrl-Q
    an empty documentation windows pops up with a title “Documentation for s”, like he would do when directly issuing
    Ctrl-Q
    y
    • 2
    • 1
  • p

    paulblessing

    08/16/2017, 1:45 PM
    @horse_badorties I get the same
    h
    • 2
    • 1
Powered by Linen
Title
p

paulblessing

08/16/2017, 1:45 PM
@horse_badorties I get the same
h

horse_badorties

08/16/2017, 2:43 PM
Thanks, I filed an issue https://youtrack.jetbrains.com/issue/KT-19716
View count: 1