Hi Everyone,
I posted to the Scalatest mailing list as I am currentl yhaving an issue with getting tests to run correctly.
I get a weird java error - and I am not a java develoepr so have no idea.
Most of my issues are because I am not a Java developer, first - so things a java dev would inherently know to check - I am practically clueless!
So -
I'll try and give you all the details...
iMac - Used by the whole family on and off - despite everyone else having a laptop of their own, too)
(so I can't just do a reinstall and start all over again - which I would normally do - on my own machine)
Mac OSX : 10.10.5 - no updates available.
I have java 1.7 JDK installed.
Did an update to thje latest (got a pop-up to tell me there was an update - so I did as asked! and now have build 1.7.0_45-b18 )
Now the java update could well be completely unrelated - but I thought I would mention it just in case.
Also - because I am convalescing at the moment - I am not permanently on the machine - and because it is shared - I can't give any definite details like;
* it was working...
* did XXX - then it didn't work.
So what I did was;
Downloaded the latest (full) version of activator 1.3.5
Deleted the version I had installed (1.2.something )
placed the contents of 1.3.5 where 1.2 resided.
I can successfully compile and run my application that I using to try and learn Scala / Akka / Play against.
But when I run activator test, I get an error message - which I will add at the bottom of this message.
(I have already posted to the scalatest mailing test - but am not getting any help there - I completely understand that the issue might not be resolvable)
Anyway : so what I wanted to do was completely uninstall everything that was Scala related and start all over again.
I deleted the following folders;
* Where Scala was copied to (/Library/Scala/Activator)
* ~/.ivy2/
* ~/.sbt/
* ~/.scala_history
Then I reinstalled Scala, compiled the app (went through the painful experience of having to "resolve" dependencies)
activator compile run (works all fine and dandy )
activator test still throws the same error.
(I have restarted the machine a few times - too - just to rule out temporary gremlins)
I just wanted to check if there was anything I missed in the uninstall / directory deleting - so that I can try again, please.
As always - Thanks - and the error I get when testing is below!
The error actually reads like a DNS error - but everything "seems" to be working network-wise.
I can browse sites on the internet / ping etc... so I really am lost...
ava.net.UnknownHostException: iMac.local: iMac.local: nodename nor servname provided, or not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1473)
at sbt.JUnitXmlTestsListener.<init>(JUnitXmlTestsListener.scala:18)
at sbt.plugins.JUnitXmlReportPlugin$$anonfun$projectSettings$1.apply(JUnitXmlReportPlugin.scala:27)
at sbt.plugins.JUnitXmlReportPlugin$$anonfun$projectSettings$1.apply(JUnitXmlReportPlugin.scala:27)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
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)
Caused by: java.net.UnknownHostException: iMac.local: nodename nor servname provided, or not known
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:901)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1293)
at java.net.InetAddress.getLocalHost(InetAddress.java:1469)
at sbt.JUnitXmlTestsListener.<init>(JUnitXmlTestsListener.scala:18)
at sbt.plugins.JUnitXmlReportPlugin$$anonfun$projectSettings$1.apply(JUnitXmlReportPlugin.scala:27)
at sbt.plugins.JUnitXmlReportPlugin$$anonfun$projectSettings$1.apply(JUnitXmlReportPlugin.scala:27)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
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] (*:testListeners) java.net.UnknownHostException: iMac.local: iMac.local: nodename nor servname provided, or not known