guchenbo / simple-build-tool

Automatically exported from code.google.com/p/simple-build-tool
Other
0 stars 0 forks source link

Console broken with scala 2.9.0 #167

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
"Failed to created JLineReader: java.lang.NoClassDefFoundError: 
scala/tools/jline/console/completer/Completer Falling back to SimpleReader."

What steps will reproduce the problem (please be specific)?
Open an sbt project that uses scala 2.9.0 and execute the `console` action.

What is the expected behavior? What do you see instead?
Stuff I type into the console should appear on the screen; instead, no text 
appears, but the console still receives input.  Above error message is printed. 
 Example:
{{{
Failed to created JLineReader: java.lang.NoClassDefFoundError: 
scala/tools/jline/console/completer/Completer
Falling back to SimpleReader.
Welcome to Scala version 2.9.0.final (Java HotSpot(TM) 64-Bit Server VM, Java 
1.6.0_20).
Type in expressions to have them evaluated.
Type :help for more information.

scala> <console>:8: error: not found: value sdfsdf
       sdfsdf
       ^

scala> <console>:8: error: not found: value asdf
       asdf
       ^

}}}

What versions of the following are you using?

Java: 1.6.0_20
Scala: 2.9.0
sbt: 0.7.7
Operating system: Mac OS X 10.6.6

Please provide any additional information below.

Original issue reported on code.google.com by HLKlaper...@gmail.com on 17 May 2011 at 5:39

GoogleCodeExporter commented 9 years ago
I thought that the braces were needed for appropriate code formatting, as is 
the case with Trac, but I guess they're not.

Original comment by HLKlaper...@gmail.com on 17 May 2011 at 5:40

GoogleCodeExporter commented 9 years ago
No problem on the braces- it is annoying that you can't preview reports.

As for the report, this works for me.  Perhaps the download was interrupted, in 
which case I suggest removing
 project/boot
and
 ~/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.9.0.jar
and
 ~/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-library-2.9.0.jar

Otherwise, we can troubleshoot on the mailing list and reopen if necessary.

Original comment by dmhar...@gmail.com on 17 May 2011 at 5:55

GoogleCodeExporter commented 9 years ago
Thanks for the quick response!  I've been able to reproduce this problem on a 
second machine (same Mac OS version, scala version, java version), and have 
found this post on the scala-user mailing list from a windows user with a 
similar issue: 
http://groups.google.com/group/scala-user/browse_thread/thread/c31745e394b8fce0/
518fc887c88d1966 (archive: 
http://permalink.gmane.org/gmane.comp.lang.scala.user/39752).  Deleting the 
directories did not fix the problem.  I've found a thread on this issue on the 
mailing list, so I'll post there.

Original comment by HLKlaper...@gmail.com on 18 May 2011 at 5:24

GoogleCodeExporter commented 9 years ago
Just in case anyone else has this problem and finds their way here via google, 
the suggestion in the following thread solved this issue for me:

http://groups.google.com/group/simple-build-tool/browse_thread/thread/a92276ac6e
a4e9b8

Original comment by otherp...@gmail.com on 19 May 2011 at 3:11

GoogleCodeExporter commented 9 years ago
FWIW the procedure that worked for me was to explicitly and in this order:

update the sbt-launcher to 0.7.7 (and the sbt version in your project)

rm -r ~/.ivy2/*
cd {projectdir}
rm -r project/boot/*
sbt update

doing only a couple of these or not in the above order wasn't working.

Original comment by jed.wesl...@gmail.com on 20 May 2011 at 4:29

GoogleCodeExporter commented 9 years ago
Yep I had the same problem on Mac OSX and the comment 5 above did the trick - 
thanks!

Original comment by malcolm....@gmail.com on 30 May 2011 at 8:47

GoogleCodeExporter commented 9 years ago
I can confirm that comment #5 fixes everything as well.

Original comment by millst...@gmail.com on 2 Jun 2011 at 12:03

GoogleCodeExporter commented 9 years ago
Doesn't work for me. I deleted my .ivy2, my .m2/repositories, my project/boot, 
updated, and the problem still happens with me. Using Scala 2.9.0-1.

Original comment by dcsob...@gmail.com on 2 Jun 2011 at 5:09

GoogleCodeExporter commented 9 years ago
I can also confirm that the steps given in comment #5 work.

Original comment by os...@renalias.net on 18 Jun 2011 at 5:51