Questions tagged [scalariform]

10 questions
12
votes
1 answer

How to format the sbt build files with scalariform automatically?

I'd like to format my sbt build files with scalariform. Is it possible to run scalariform on the build definition itself when starting sbt?
Leif Wickland
  • 3,693
  • 26
  • 43
4
votes
1 answer

Is the usage of Scalariform as an embedded library considered abandoned?

I had been using Scalariform in a project I upgraded to Scala 2.11. In doing so, I discovered that Scalariform does not appear to have an artifact published for 2.11 in any of the usual places. This makes the usual sbt cross-version dependency…
Brian Kent
  • 3,754
  • 1
  • 26
  • 31
3
votes
1 answer

SBT scalariform plugin formatting same thing more than once, is it possible do it once?

SBT scalariform plugin is formatting files more than once in multi project setup. Here is example https://github.com/Seetaramayya/sbt-scalariform-example if you compile the project you can see something like this in the console [info] Formatting 5…
1
vote
0 answers

How to format build.sbt using scalariform

I would like to have my 2.11 scala project automatically formatted. The scala code under /src/main/scala seems to be well formated, however, the build.sbt below is not. I would like to align %%, % and =>. my project/scalariform.sbt : resolvers +=…
ogen
  • 802
  • 2
  • 7
  • 23
1
vote
1 answer

scalariform not downloading dependency

When I try to install the scalariform plugin : build.sbt : resolvers += Resolver.typesafeRepo("releases") addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.6.0") I receive sbt error : [ trace] Stack trace suppressed: run last *:update for…
blue-sky
  • 51,962
  • 152
  • 427
  • 752
1
vote
2 answers

Unresolved dependency SBT, scalariform

I am receiving this compilation error: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] ::…
user2827214
  • 1,191
  • 1
  • 13
  • 32
0
votes
1 answer

import not found error for sbt.build file

I am in the learning process for Scala and sbt. I have an existing project I am starting with. On the command line under top project folder, as soon as I enter the sbt command I get: C:\Projects\aproject\build.sbt:1: error: not found: object…
user2938828
  • 91
  • 1
  • 1
  • 5
0
votes
1 answer

Scalafmt package name checker

I have found a nice rule in scalariform that checks the package names and is as follows:
Kratos
  • 1,064
  • 4
  • 20
  • 39
0
votes
1 answer

How can I align on colons in scalariform?

I have a case class like this: case class Foo( one: String, another: Int, stuff: Boolean ) Is there a setting in scalariform to get this? (aligned on the colon) case class Foo( one : String, another: Int, stuff : Boolean ) I'm…
Greg
  • 10,696
  • 22
  • 68
  • 98
0
votes
1 answer

sbt-scalariform plugin - can't resolve settings

I wanted to integrate scalariform tool into SBT. Following the https://github.com/sbt/sbt-scalariform/tree/master I created plugins.sbt file with line addSbtPlugin("com.typesafe.sbt" % "sbt-scalariform" % "1.3.0") then I created scalariform.sbt…
Andna
  • 6,539
  • 13
  • 71
  • 120