Scala Plugin crashes

Hi all,

I'm using IntelliJ 12.1.4 and scala plugin on ubuntu 12.04
I have Play! framework 2.1.0 project (which compiles and runs fine) using scala 2.10

However when I open that project in idea it starts printing:

OnceCanBuildFrom
canBuildFrom
canBuildFrom
canBuildFrom
canBuildFrom

non-stop.

After a while idea just doens't respond anymore.

Attached you'll find a threaddump.

I would appreciate it if any of you could give me a clue about what is going on.

Kind regards,

Bart Horré



Attachment(s):
dump.txt.zip
6 comments

I already tried to invalidate the caches btw


0

Implicit parameters names printing is fixed. Fix will be available in next plugin version.
As for crash it's hard to say what's going on. As I can see from threaddump you have very big for comprehensions in your code, and probably we have exponent in our analyzer around such for comprehensions. So it would be great to investigate problem with problematic sources (minimized example?).

Best regards,
Alexander Podkhalyuzin.

0

I'm assuming it has something to do with this piece of code, if this would seem insufficient I can put the whole project on github or something

  val file = Source.fromFile("conf/searchforms.conf").mkString
    val json = Json.parse(file)

    val configs = for (value <- json.as[JsObject].values.toList
      ;name = (value \\ "name")
      ;optionKeys = (value \\ "optionKeys")
      ;optionValues = (value \\ "optionValues")
      ;initialQueryKey = (value \\ "initialQueryKey")
      ;initialQueryValue = (value \\ "initialQueryValue")
      ;fileRoot = (value \\ "fileRoot")
      ;options = (Json.fromJson[List[String]](optionKeys(0)).get, Json.fromJson[List[String]](optionValues(0)).get).zipped.toList
      ;initialQuery = (Json.fromJson[String](initialQueryKey(0)).get, Json.fromJson[String](initialQueryValue(0)).get)
      ;mapping = Json.parse(esService.getMapping(Json.fromJson[String](name(0)).get)).as[JsObject]
      ;properties = (mapping \\ "properties"); fields = properties.head.as[JsObject].keys.toList
      ;documentTypeConfig = new DocumentTypeConfig(Json.fromJson[String](name(0)).get, options, initialQuery, fields, Json.fromJson[String](fileRoot(0)).get)
    ) yield documentTypeConfig

and the json file looks like this:

{
    "documentType" : {
        "name" : "zendnota",
        "optionKeys" : ["date", "klantnr", "ritnr", "drop"],
        "optionValues" : ["Datum", "Klant", "Rit", "Drop"],
        "initialQueryKey" : "date",
        "initialQueryValue" : "yyyy-mm-dd",
        "fileRoot": "/home/ZENDNOTA/"
    },
    "documentType" : {
        "name" : "factuur",
        "optionKeys" : ["date", "klantnr", "factuurnr", "barnr", "factuurtype"],
        "optionValues" : ["Datum", "Klant", "Factuur", "Bar", "Type"],
        "initialQueryKey" : "date",
        "initialQueryValue" : "yyyy-mm-dd",
        "fileRoot": "/home/FACTUUR/"
    },
    "documentType" : {
         "name" : "test",
         "optionKeys" : ["test", "test", "test", "test", "test"],
         "optionValues" : ["Test", "Test", "Test", "Test", "Test"],
         "initialQueryKey" : "test",
         "initialQueryValue" : "Test",
         "fileRoot": "/home/TEST"
    }
}

0

Thanks!
I'm looking forward to the update

0

Try nightly http://confluence.jetbrains.com/display/SCA/Scala+Plugin+Nightly+Builds+for+Cardea. Next official update will not be very soon.

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.