TeamCity IntelliJ inspections not analyzing Kotlin files

Completed

I have a Kotlin JVM project configured with Gradle, that I want TeamCity to run IntelliJ inspections on. The inspection step succeds, but does not find/analyze any Kotlin source files (other files, such as resources in src/main/resources are detected and analyzed). I have verified through the IDE that there should be warnings.

The step is configured with the "Inspections (IntelliJ IDEA)" runner, as a Gradle project referencing the build.gradle file. The .idea/inspectionProfiles directory is committed to VCS, and the profile is detected by TeamCity under the Inspection Profile Name setting.

If I launch IDEA inspections from the command line or through the IDE directly, with the same profiles, it has no problem finding and analyzing the Kotlin files - the problem seems to be limited to TeamCity.

Things I've tried without luck:

  • Committing the misc.xml and compiler.xml files to VCS
  • Explicitly including +:src/main/kotlin in the runner's Include/Exclude Patterns section
  • Changing the Inspection Profile to explicitly include all Kotlin inspections
  • Tried with various IntelliJ Inspections and Duplicates Engines

Does anyone have any advice on how I get this correctly set up, or other things I could try?

Running TeamCity 2018.2.4 (build 61678) via Docker

0
4 comments

Any updates on this?

0

Hi, Olavur!

Currently, IntelliJ IDEA in TeamCity doesn't have Kotlin plugin. I've created the issue in YouTrack about it, please, watch\vote.

0

Any updates on this?

0

Hi Andre Gruhn,

You can find updates in the corresponding ticket on our public bug tracker: https://youtrack.jetbrains.com/issue/TW-64381. In this ticket, you can also communicate directly with the Dev team.

0

Please sign in to leave a comment.