Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IDEA complains about Revolver.settings when trying to parse spray-template's build.sbt file

I've cloned the Spray template project (branch on_spray-can_1.1) as suggested on Spray's "Getting Started" page, and used sbt-idea to generate a corresponding IDEA project. It builds fine, but when I open my build.sbt file, the last line makes IDEA unhappy:

seq(Revolver.settings: _*)

It doesn't recognize Revolver, and suggests importing spray.revolver.RevolverPlugin.Revolver, which seems reasonable. However, when I do that, it still complains "Expression type (Def.SettingsDefinition) must conform to Setting[_] in SBT file".

Clearly this is not a real problem, or IDEA's (external) make would fail, and/or SBT would complain from the command line. But why does IDEA think it's a problem? Has something changed in recent versions of SBT?

When I look at the SBT 0.13.0 source I notice seq is deprecated; it says "In build.sbt files, this call can be removed." If I do that, however, Revolver stops working ("Not a valid command: re-start").

FWIW, I'm using SBT 0.13.0 with Scala 2.10.3 and IDEA 12.1.6 on Mint 14.

like image 994
David Moles Avatar asked Oct 24 '13 23:10

David Moles


1 Answers

You should be able to replace it by just

Revolver.settings
like image 93
jrudolph Avatar answered Oct 14 '22 14:10

jrudolph