build.gradle.kts file is detected as a cargo file,...
# intellij
b
build.gradle.kts file is detected as a cargo file, am I doing something wrong or is this a bug in the latest intellij? my main issue is that only buildSrc tasks are visible in the gradle sidebar
1
c
In File | Settings | Editor | File Types, check the Kotlin and Cargo types
b
oh it looks like they've changed how the Rust plugin works, can't use it from IntelliJ Ultimate anymore and probably got confused because of that
still stuck with only buildSrc showing up in the gradle window however
c
I don't know a quick solution for that, but a not-quick solution is: • close IDEA • remove the .idea folder • remove the project from "recent projects" • open the project again, specifically choosing the settings.gradle.kts file
b
no success; maybe it gets confused because my buildSrc also has a settings.gradle.kts file to read in version catalogs
probably a gradle topic, thanks for the help, gonna check if more than 1 settings gradle file is "allowed"
c
Yes, as long as you select the root one when you open the project, it should find all the others with no issues
If you want to know whether it's an IDEA or a Gradle project, try to open this project: https://gitlab.com/opensavvy/automation/gradle-conventions This is the most complex I have, it has ~5 settings.gradle.kts files. As long as you open the root one, everything should work with no issues
(if you can open this one: it's a problem in your gradle config. if you can't open this one: it's a problem in your IDEA config)
b
found the issue
looks like I didn't watch out to make a parameter lazy in a task