charleso / sbt2nix

Generate Nix build instructions from a SBT project
MIT License
38 stars 7 forks source link

sbteclipse plugin causes nix command to error #23

Open cessationoftime opened 8 years ago

cessationoftime commented 8 years ago

If my project includes the sbteclipse plugin then I get the following error when I run the 'nix' command. This happens if the sbteclipse plugin is in the global or project-specific plugins.sbt location.

java.lang.NoSuchMethodError: scalaz.Scalaz$.ToValidationV(Ljava/lang/Object;)Lscalaz/syntax/ValidationV;
    at sbt2nix.NixPlugin$.setting(NixPlugin.scala:174)
    at sbt2nix.NixPlugin$.baseDirectory(NixPlugin.scala:158)
    at sbt2nix.NixPlugin$$anonfun$nixCommand$2.apply(NixPlugin.scala:27)
    at sbt2nix.NixPlugin$$anonfun$nixCommand$2.apply(NixPlugin.scala:24)
    at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:59)
    at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:59)
    at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:61)
    at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:61)
    at sbt.Command$.process(Command.scala:93)
    at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
    at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
    at sbt.State$$anon$1.process(State.scala:184)
    at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
    at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
    at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
    at sbt.MainLoop$.next(MainLoop.scala:98)
    at sbt.MainLoop$.run(MainLoop.scala:91)
    at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:70)
    at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:65)
    at sbt.Using.apply(Using.scala:24)
    at sbt.MainLoop$.runWithNewLog(MainLoop.scala:65)
    at sbt.MainLoop$.runAndClearLast(MainLoop.scala:48)
    at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:32)
    at sbt.MainLoop$.runLogged(MainLoop.scala:24)
    at sbt.StandardMain$.runManaged(Main.scala:53)
    at sbt.xMain.run(Main.scala:28)
    at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
    at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
    at xsbt.boot.Launch$.run(Launch.scala:109)
    at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
    at xsbt.boot.Launch$.launch(Launch.scala:117)
    at xsbt.boot.Launch$.apply(Launch.scala:18)
    at xsbt.boot.Boot$.runImpl(Boot.scala:41)
    at xsbt.boot.Boot$.main(Boot.scala:17)
    at xsbt.boot.Boot.main(Boot.scala)
[error] java.lang.NoSuchMethodError: scalaz.Scalaz$.ToValidationV(Ljava/lang/Object;)Lscalaz/syntax/ValidationV;

seems related to: https://github.com/typesafehub/sbteclipse/issues/221

charleso commented 8 years ago

@cessationoftime Warning: I'm not likely to fix this issue any time soon. Someone pointed me to this recently, which might be a better place to start.

https://github.com/teozkr/Sbtix

benmccann commented 8 years ago

I just merged a fix for this in sbt eclipse: https://github.com/typesafehub/sbteclipse/commit/97cbdbfeff0b3e39cb2881d51b28eebbcc48576c