Hi I am using latest version of Intellij. I want t...
# intellij
k
Hi I am using latest version of Intellij. I want to see implementation of code but it showing me compiled code. I don't understand what is wrong in here.
1
👀 1
Example Code
Copy code
private fun simpleWindowed(unFilteredMovieList: List<NewMovieItem>) {
    val numberList = listOf(1, 2, 3, 4, 5, 6, 7, 8, 9)
    numberList.windowed(size = 2, step = 1, partialWindows = true).forEach { window: List<Int> ->
            val first = window.first()
            val second = window.last()
            println(window)
        }
}
Intellij
Copy code
IntelliJ IDEA 2023.1.2 (Ultimate Edition)
Build #IU-231.9011.34, built on May 16, 2023
Runtime version: 17.0.6+10-b829.9 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.3.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16
Metal Rendering is ON
Registry:
    debugger.new.tool.window.layout=true
    ide.experimental.ui=true

Non-Bundled Plugins:
    com.intellij.nativeDebug (231.8770.15)

Kotlin: 231-1.8.21-IJ9011.34
You can see in this video when I tried to open the code it opens the compiled code.
Screen Recording 2023-05-25 at 11.03.28.mov
s
This has come up before and seems to affect quite a few people. I’ve never been able to figure out what causes it though 😞.
k
Yeah same issue. I tried a lot of stuff but nothing works
a
@KotlinLeaner, can you please clarify what Kotlin build plugin version do you use? Do you use Gradle as build system? Does the issue reproduce if try to create a new simple project with the same code? If possible, it would be great if you can provide a simple project with the issue reproduction. Thank you!
k
I tried to create a new project with kotlin gradle and it working fine.
The issue above is for older project
The older project look like this
Older project doesn't have gradle build system.
a
It would be great to have a test project with the issue reproduction for investigation. Can you send it to me, if possible? Thank you in advance!
k
yeah sure, no problem. Can I send you in personal chat?
👌 1
thank you color 1
a
For history: the concrete issue has been resolved by adding library sources to the project manually. In the most cases it is better to use Gradle as a build tool in projects. It should help to avoid such issues.
👍 2