TeamCity, IntelliJ runner and Scala plugin

Hi,

Because the sbt plugin currently neither supports IDEA's code coverage runner nor IDEA inspections, we used a workaround: Generate an IDEA project from sbt with mpeltonen's sbt-idea plugin and use the IntelliJ runner then. However, since TC 9/IDEA 14, this doesn't work anymore because mpeltonen's plugin (1.7.0-SNAPSHOT) generates "old" project data (Scala facets instead of Scala SDK), which IDEA 14 can convert - but won't when called from TC (at least it seems). I don't expect the plugin to be fixed/updated (or even maintained any further) because IDEA now supports "import from sbt project" natively.

The problem is: I cannot get it to work from TeamCity (well, its integrated IDEA). Is there any way to trigger this "import project" in teamcity? If not, are there any suggestions for a workaround? Or any plans to extend the sbt plugin? After all, running inspections/Scala coverage and IDEA integration is the main argument for TC over Hudson/Jenkins (for us).

Regards,

Messi

4 comments
Comment actions Permalink

Dear Messi,

I am sorry that TeamCity doesn't work smooth for you. We are going to imrpove SBT runner and add possibility to run coverage but unfortunatly I can't give you any time estimate on this. Last version of SBT runner works with any SBT installation, it means that if you can run some coverage tool locally you can use it on TeamCity as well and then teach TeamCity how to show the generated coverage report. If you need any further information don't hesitate to cnatct me directly at shkate at jetbrains.com.

Regards,
Kate

0
Comment actions Permalink

It's been a couple of years. Is there a feature request for this somewhere that we can vote on? Intellij inspections in TeamCity don't support SBT but only supports Gradle and Maven. This feature would be extremely useful.

3
Comment actions Permalink

TeamCity Enterprise 2018.1.3 EAP (build 58612), open source license:

it is still an issue, if project is under sbt, looks like there is no way to run inspections from Intellij IDE in CI, as no way to enforce this in CI level , no good reasons to keep running it in Intellij IDEA.

Unfortunately main reason of using TC in favor of Jenkins (native inspections support) is not valid any more.

Please provide at least workarounds.

0
Comment actions Permalink

There has been an issue in our tracker for a long time. Please vote for it. https://youtrack.jetbrains.com/issue/TW-33597

0

Please sign in to leave a comment.