Unable to use locally built akka

130 views
Skip to first unread message

dhruve ashar

unread,
Mar 27, 2015, 6:45:31 PM3/27/15
to akka...@googlegroups.com, Aditya Rastogi
Hi,

We downloaded the source code of akka. Before starting to make any changes we tried to publish the modules to local ivy after successful compilation. 

The local-publish fails with the following error. (NOTE: Failure log attached) :

[info]  published ivy to /Users/dhruveashar/.ivy2/local/akka-sample-cluster-java/akka-sample-cluster-java/2.4-SNAPSHOT/ivys/ivy.xml
java.lang.RuntimeException: ScalaDoc diagrams not generated!
at scala.sys.package$.error(package.scala:27)
at akka.Unidoc$.scaladocVerifier(Unidoc.scala:77)
at akka.Unidoc$$anonfun$scaladocSettings$1.apply(Unidoc.scala:33)
at akka.Unidoc$$anonfun$scaladocSettings$1.apply(Unidoc.scala:33)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:235)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
java.lang.RuntimeException: ScalaDoc diagrams not generated!
.....
java.lang.RuntimeException: ScalaDoc diagrams not generated!
at scala.sys.package$.error(package.scala:27)
at akka.Unidoc$.scaladocVerifier(Unidoc.scala:77)
at akka.Unidoc$$anonfun$scaladocSettings$1.apply(Unidoc.scala:33)
at akka.Unidoc$$anonfun$scaladocSettings$1.apply(Unidoc.scala:33)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
at sbt.std.Transform$$anon$4.work(System.scala:63)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:226)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.Execute.work(Execute.scala:235)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:226)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
[error] (akka-remote/compile:doc) ScalaDoc diagrams not generated!
[error] (akka-camel/compile:doc) ScalaDoc diagrams not generated!
[error] (akka-persistence-experimental/compile:doc) ScalaDoc diagrams not generated!
[error] (akka-actor/compile:doc) ScalaDoc diagrams not generated!
[error] (akka-cluster-metrics/compile:doc) ScalaDoc diagrams not generated!
[error] (akka-multi-node-testkit/compile:doc) ScalaDoc diagrams not generated!
[error] (akka-osgi/compile:doc) ScalaDoc diagrams not generated!
[error] (akka-cluster/compile:doc) ScalaDoc diagrams not generated!
[error] (akka-testkit/compile:doc) ScalaDoc diagrams not generated!
[error] (akka-docs/sphinx:generateEpub) java.io.IOException: Cannot run program "sphinx-build" (in directory "/Users/dhruveashar/Desktop/akka/akka-source/akka/akka-docs/rst_preprocessed"): error=2, No such file or directory
[error] (akka-docs/sphinx:generatePdf) java.io.IOException: Cannot run program "sphinx-build" (in directory "/Users/dhruveashar/Desktop/akka/akka-source/akka/akka-docs/rst_preprocessed"): error=2, No such file or directory
[error] (akka-docs/sphinx:generateHtml) java.io.IOException: Cannot run program "sphinx-build" (in directory "/Users/dhruveashar/Desktop/akka/akka-source/akka/akka-docs/rst_preprocessed"): error=2, No such file or directory
[error] (akka-slf4j/compile:doc) ScalaDoc diagrams not generated!
[error] (akka-persistence-experimental-tck/compile:doc) ScalaDoc diagrams not generated!
[error] Total time: 110 s, completed Mar 27, 2015 5:20:40 PM


The idea behind this was to start adding simple log statements, rebuild the source and consume it using the SimpleClusterApp provided in the activator example templates. 

Since the publish-local failed, we tried to resolve the dependencies by adding the unmanaged jars in the lib folder under the project directory. But sbt is not picking up the dependency jars from the lib folder as well. 

Could you please tell us the best way to run an app against a locally modified build of akka ?

Thanks,
Dhruve



akka-publish-log.txt

Patrik Nordwall

unread,
Mar 28, 2015, 5:51:17 AM3/28/15
to akka...@googlegroups.com
For your purposes you can start sbt with -Dakka.scaladoc.diagrams=false

/Patrik

--
You received this message because you are subscribed to the Google Groups "Akka Developer List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Patrik Nordwall
Typesafe Reactive apps on the JVM
Twitter: @patriknw

Patrik Nordwall

unread,
Mar 28, 2015, 7:32:53 AM3/28/15
to akka...@googlegroups.com
However, its probably more productive to copy the SimpleClusterApp class to the modified akka-cluster project and run it from there with sbt runMain.

/Patrik

dhruve ashar

unread,
Mar 28, 2015, 12:46:37 PM3/28/15
to akka...@googlegroups.com
@Patrick. Thanks for the suggestion. I am able to log the modifications in the SimpleClusterApp. 

Regarding publish local, the command still fails with an IO error, Inspite of the directory being present. 

[error] (akka-docs/sphinx:generateEpub) java.io.IOException: Cannot run program "sphinx-build" (in directory "/Users/dhruveashar/Desktop/akka/akka-source/akka/akka-docs/rst_preprocessed"): error=2, No such file or directory
[error] (akka-docs/sphinx:generatePdf) java.io.IOException: Cannot run program "sphinx-build" (in directory "/Users/dhruveashar/Desktop/akka/akka-source/akka/akka-docs/rst_preprocessed"): error=2, No such file or directory
[error] (akka-docs/sphinx:generateHtml) java.io.IOException: Cannot run program "sphinx-build" (in directory "/Users/dhruveashar/Desktop/akka/akka-source/akka/akka-docs/rst_preprocessed"): error=2, No such file or directory
[error] Total time: 12 s, completed Mar 28, 2015 8:45:59 AM

Is there a way to turn this off as well?

-Dhruve

Patrik Nordwall

unread,
Mar 28, 2015, 4:22:22 PM3/28/15
to akka...@googlegroups.com

or build the used projects separately, i.e.
akka-actor/publishLocal
akka-remote/publishLocal
akka-cluster/publishLocal

/Patrik
Reply all
Reply to author
Forward
0 new messages