this post was submitted on 08 Jan 2026
10 points (91.7% liked)
Programming
24365 readers
513 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
maybe you need to play around with the flags, I'm away from pc and can't test, but from the top of my head and a quick search it should be something like that
on arch linux it comes from this package: https://archlinux.org/packages/extra/any/kotlin/ not sure about other distros
no clue about windows
I got the Kotlin compiler using sdkman, the closest thing to that command I found was: kotlinc -Xreturn-value-checker=full $(find . -name '*.kt')
It doesn't really work, it just gives errors for every single import that comes from a library (libKTX in my case)
My bad, I think the option I mentioned might have existed at some point but doesn't now.
Sadly it's probably a moating strategy for jetbrains to have that as an IDE exclusive feature.
The best you can probably do is trying to dig out that functionality from the android studio source ... https://android.googlesource.com/platform/tools/base/+/studio-master-dev/studio.md
The debian/ubuntu package for the Kotlin compiler is super outdated, so I'll have to find a way to get it