Ji-Hoon Kim
05/23/2025, 12:50 AMRok Oblak
05/23/2025, 7:34 AM?: false
implies "default to false". I find this more readable than == ...
.Rob Elliot
05/23/2025, 9:54 AM.main.kts
scripts don't know about the Java stdlib - lots of:
Cannot access 'Object' which is a supertype of 'ObjectMapper'. Check your module classpath for missing or conflicting dependencies.
Cannot access 'Serializable' which is a supertype of 'ObjectMapper'. Check your module classpath for missing or conflicting dependencies.
I can't work out how to tell the script about them?drewhannay
05/23/2025, 10:57 PMChris Lee
05/24/2025, 12:44 AMwasyl
05/28/2025, 9:08 AMswitcher
and recent files
behavior on IJ 2025.2 EAP? EAP 1 was completely broken, EAP 2 is broken as well but a bit less
• EAP 1 would seemingly populate recent files
dialog with indexed files? It would show tons of generated files that were never open. In EAP 2 I still get unopened files, but only sometimes and it's just one file
• in EAP 2 the switcher
(ctrl + tab on mac) doesn't show recently opened file anymore, and when invoked doesn't return the cursor to the place it was previously. In 2025.1.x, pressing ctrl + tab
repeatedly will toggle between two files, in 2025.2 the switcher
files don't match recent files at all
if not I'll file some later, just curious if there's some new setting or something that I'm missingrobstoll
05/28/2025, 3:45 PMKirill Grouchnikov
05/28/2025, 9:37 PMGrigory Panko
05/29/2025, 3:06 PMKarlo Lozovina
05/29/2025, 11:04 PMArtyom Gornostayev
06/01/2025, 4:01 PMCompact Middle Packages
in Project tab.
Does anybody have this problem?holgerbrandl
06/01/2025, 8:31 PMdata class Foo(val id: String) {
override fun toString(): String = id
}
class Bar(val id: String)
class Test
class Test2
fun main() {
val foo = Foo("1")
val bar = Bar("2")
// why is not flagged as well?
if(foo != bar) println("not equal")
if(Test() != Test2()) println("not equal")
}
The first condition is not flagged. The issues seems to affect only cases where the left-hand side argument of != is a data class.Austin
06/03/2025, 4:29 PMkrzysztof
06/04/2025, 5:48 PMRob Elliot
06/05/2025, 11:46 AMvoohbar
06/06/2025, 5:48 PMget
prefix.
Are there any known workarounds?
Version: IntelliJ IDEA 2025.1.2 (Ultimate Edition)
Build: #IU-251.26094.121, built on June 2, 2025
Kotlin Compiler: K2Edoardo Luppi
06/17/2025, 7:44 AMcom.intellij.diagnostic.PluginException: Class org.jetbrains.kotlin.idea.core.script.k1.modules.ScriptDependenciesInfo$ForProject must not be requested from main classloader of org.jetbrains.kotlin plugin. Matches content module (packagePrefix=org.jetbrains.kotlin.idea.core.script.k1., moduleName=kotlin.base.scripting.k1). [Plugin: org.jetbrains.kotlin]
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.kt:185)
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.kt:154)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
Isaac Udy
06/18/2025, 6:07 AM.idea
folder to show up in the project files view. I can see it in Android Studio, if I open that instead, and even if I add a custom scope to the project it still won't show up in that custom scope. Does anyone know how to set this up? The new Kotlin Multiplatform plugin requires some .idea configuration to allow xcode run configurations to become visible, and it's very annoying needing to open the files externally to edit them.PHondogo
06/19/2025, 10:11 AMdo {
// some code here
TODO()
} while (true) // warning for unreachable code with suggestion to replace with 'while()'. It is unreachable but in this case i think it should be ok
Edoardo Luppi
06/19/2025, 10:19 AMloke
06/20/2025, 2:25 PMhho
06/23/2025, 4:17 PM.main.kts
script in IntelliJ IDEA ... it runs, but no breakpoints ever trigger anything. Is that a known limitation? (2025.2 EAP with K2)bod
06/24/2025, 12:16 PMdarkmoon_uk
06/26/2025, 1:39 AMAlexander Weickmann
06/26/2025, 8:11 AMmbonnin
06/26/2025, 2:17 PMmain.kts
and K2? I just had to disable K2 again to get autocomplete 🤔 on IntelliJ IDEA 2025.2 EAP
. Am I missing something? Can you do main.kts
with K2?Kirill Grouchnikov
06/26/2025, 5:11 PMdarkmoon_uk
06/29/2025, 7:08 AM.kts
scripts instead of `.sh`; keeping more complex scripts in a powerful, familiar language.
Unfortunately the usefulness of kts
is unduly limited by IntelliJ IDE's failure to resolve symbols across @file:Import
dependencies - meanwhile the scripts still run fine.
This problem has only become more impactful with junie Junie; as the agent sees 'unresolved' false positives and erroneously act upon them, struggling for a fix that never comes.
kodee sad This limitation is very sad, given it's been hanging for over 2 years...
KTIJ-16352 Scripts / IDE: unresolved reference when trying to import file in main.kts scripts with @Import annotation
Any insights into this issue in or outside of JB? Is scripting just abandoned beyond what's needed for Gradle? Such a shame, it's a killer feature in my book.
Slack ConversationSargun Vohra
07/01/2025, 1:48 AM-Xcontext-sensitive-resolution
to my compiler args but the IDE still highlights code red where I use ithfhbd
07/01/2025, 9:15 AM