Why is it not possible to exclude certain files (l...
# random
s
Why is it not possible to exclude certain files (like *.gradle.kts) from auto imports for kotlin like it is for java? I'm so tired of IJ auto importing some nonsense that breaks my build files. the only way around this is to disable auto imports for kotlin (if enabled you can't manually delete the wrong import lines as it immediately adds them again), then sync gradle and enable auto imports again.
👍 1
a
The box where you've added
*.gradle.kts
is for packages, not file names. I don't know if there's a way to configure scripting separately - you could try making a youtrack issue.
s
oh wow I didn't even notice. but regardless, disabling auto complete is a rather ugly 'fix'. I wish Amper, or kotlin toolchain, was a solution to this but that will sadly never be the case without interoperability to fully support gradle plugins.
a
Can you share examples of auto imports that are causing problems?
s
for example these two are added in place of kotlinx.html.script.async or kobweb's app dsl
Copy code
import org.gradle.internal.impldep.kotlinx.coroutines.async
import org.gradle.internal.impldep.org.bouncycastle.oer.its.ieee1609dot2.EndEntityType.app
a
Very weird. You should make a YT issue and attach a reproducer.