我正在scala中开始一个新项目。我使用emacs作为编辑器。
到目前为止,它不可能更简单。这是build.sbt
name := "Sampler"
version := "1.0"
scalaVersion := "2.11.8"
我在sbt(0.13版本)中运行了ensimeConfig命令
当我在Emacs(M-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
答案 0 :(得分:0)
在尝试删除.ivy2缓存但未成功后,我修复了重新安装EMACS ensime插件的问题。