1

我正在scala中开始一个新项目。我使用 emacs 作为编辑器。

到目前为止,它再简单不过了。这是 build.sbt

name := "Sampler"

version := "1.0"

scalaVersion := "2.11.8"

我已经在 sbt (0.13 版本) 中运行了 ensimeConfig 命令

当我在 Emacs (M-ensime) 上启动 ensime 时,出现以下错误:

13:34:52.511 ERROR None Server - There was a problem parsing /home/jeronimo/prog/coursera/progfun2/circuits/.ensime
java.lang.NoSuchMethodError: shapeless.DataT$.genTraversableDataT(Lshapeless/Lazy;Lscala/collection/generic/CanBuildFrom;)Lshapeless/DataT;
    at org.ensime.config.EnsimeConfigProtocol$anon$default$macro$337$1.inst$macro$320$lzycompute(EnsimeConfigProtocol.scala:61)
    at org.ensime.config.EnsimeConfigProtocol$anon$default$macro$337$1.inst$macro$320(EnsimeConfigProtocol.scala:61)
    at org.ensime.config.EnsimeConfigProtocol$anon$default$macro$337$1$$anonfun$inst$macro$319$1.apply(EnsimeConfigProtocol.scala:61)
    at org.ensime.config.EnsimeConfigProtocol$anon$default$macro$337$1$$anonfun$inst$macro$319$1.apply(EnsimeConfigProtocol.scala:61)
    at shapeless.Lazy$$anon$1.value$lzycompute(lazy.scala:121)
    at shapeless.Lazy$$anon$1.value(lazy.scala:121)
    at shapeless.EverywhereAux$$anonfun$default$2.apply(sybclass.scala:184)
    at shapeless.Cases$Case1$$anon$1$$anonfun$1.apply(cases.scala:40)
    at shapeless.Cases$Case1$$anon$1$$anonfun$1.apply(cases.scala:38)
    at shapeless.PolyDefns$Case.apply(poly.scala:37)
    at shapeless.DataT$$anon$12.gmapT(sybclass.scala:144)
    at shapeless.DataT$$anon$12.gmapT(sybclass.scala:142)
    at shapeless.DataT$$anon$12.gmapT(sybclass.scala:144)
    at shapeless.DataT$$anon$12.gmapT(sybclass.scala:142)
    at shapeless.DataT1$$anon$9.gmapT(sybclass.scala:116)
    at shapeless.EverywhereAux$$anonfun$default$2.apply(sybclass.scala:184)
    at shapeless.Cases$Case1$$anon$1$$anonfun$1.apply(cases.scala:40)
    at shapeless.Cases$Case1$$anon$1$$anonfun$1.apply(cases.scala:38)
    at shapeless.PolyDefns$Case.apply(poly.scala:39)
    at org.ensime.core.Canonised$.apply(Canon.scala:19)
    at org.ensime.config.EnsimeConfigProtocol$.validated(EnsimeConfigProtocol.scala:61)
    at org.ensime.config.EnsimeConfigProtocol$$anonfun$3.apply(EnsimeConfigProtocol.scala:44)
    at org.ensime.config.EnsimeConfigProtocol$$anonfun$3.apply(EnsimeConfigProtocol.scala:44)
    at scala.collection.immutable.List.map(List.scala:273)
    at org.ensime.config.EnsimeConfigProtocol$.validated(EnsimeConfigProtocol.scala:44)
    at org.ensime.config.EnsimeConfigProtocol$.parse(EnsimeConfigProtocol.scala:32)
    at org.ensime.server.Server$.main(Server.scala:120)
    at org.ensime.server.Server.main(Server.scala)
Exception in thread "main" java.lang.NoSuchMethodError: shapeless.DataT$.genTraversableDataT(Lshapeless/Lazy;Lscala/collection/generic/CanBuildFrom;)Lshapeless/DataT;
    at org.ensime.config.EnsimeConfigProtocol$anon$default$macro$337$1.inst$macro$320$lzycompute(EnsimeConfigProtocol.scala:61)
    at org.ensime.config.EnsimeConfigProtocol$anon$default$macro$337$1.inst$macro$320(EnsimeConfigProtocol.scala:61)
    at org.ensime.config.EnsimeConfigProtocol$anon$default$macro$337$1$$anonfun$inst$macro$319$1.apply(EnsimeConfigProtocol.scala:61)
    at org.ensime.config.EnsimeConfigProtocol$anon$default$macro$337$1$$anonfun$inst$macro$319$1.apply(EnsimeConfigProtocol.scala:61)
    at shapeless.Lazy$$anon$1.value$lzycompute(lazy.scala:121)
    at shapeless.Lazy$$anon$1.value(lazy.scala:121)
    at shapeless.EverywhereAux$$anonfun$default$2.apply(sybclass.scala:184)
    at shapeless.Cases$Case1$$anon$1$$anonfun$1.apply(cases.scala:40)
    at shapeless.Cases$Case1$$anon$1$$anonfun$1.apply(cases.scala:38)
    at shapeless.PolyDefns$Case.apply(poly.scala:37)
    at shapeless.DataT$$anon$12.gmapT(sybclass.scala:144)
    at shapeless.DataT$$anon$12.gmapT(sybclass.scala:142)
    at shapeless.DataT$$anon$12.gmapT(sybclass.scala:144)
    at shapeless.DataT$$anon$12.gmapT(sybclass.scala:142)
    at shapeless.DataT1$$anon$9.gmapT(sybclass.scala:116)
    at shapeless.EverywhereAux$$anonfun$default$2.apply(sybclass.scala:184)
    at shapeless.Cases$Case1$$anon$1$$anonfun$1.apply(cases.scala:40)
    at shapeless.Cases$Case1$$anon$1$$anonfun$1.apply(cases.scala:38)
    at shapeless.PolyDefns$Case.apply(poly.scala:39)
    at org.ensime.core.Canonised$.apply(Canon.scala:19)
    at org.ensime.config.EnsimeConfigProtocol$.validated(EnsimeConfigProtocol.scala:61)
    at org.ensime.config.EnsimeConfigProtocol$$anonfun$3.apply(EnsimeConfigProtocol.scala:44)
    at org.ensime.config.EnsimeConfigProtocol$$anonfun$3.apply(EnsimeConfigProtocol.scala:44)
    at scala.collection.immutable.List.map(List.scala:273)
    at org.ensime.config.EnsimeConfigProtocol$.validated(EnsimeConfigProtocol.scala:44)
    at org.ensime.config.EnsimeConfigProtocol$.parse(EnsimeConfigProtocol.scala:32)
    at org.ensime.server.Server$.main(Server.scala:120)
    at org.ensime.server.Server.main(Server.scala)

Process *inferior-ensime-server-circuits* exited abnormally with code 1
4

1 回答 1

0

在尝试删除 .ivy2 缓存但没有成功后,我修复了重新安装 EMACS ensime 插件的问题。

于 2016-05-29T12:57:46.550 回答