Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REPL for Scala 2.11.6 and below crippled #497

Open
Jasper-M opened this issue Apr 21, 2017 · 7 comments
Open

REPL for Scala 2.11.6 and below crippled #497

Jasper-M opened this issue Apr 21, 2017 · 7 comments
Labels

Comments

@Jasper-M
Copy link
Contributor

Jasper-M commented Apr 21, 2017

When starting a REPL for a scala version below 2.11.7 I get

Failed to created JLineReader: java.lang.NoClassDefFoundError: jline/console/ConsoleReader
Falling back to SimpleReader.
@cvogt cvogt added the bug label Apr 24, 2017
@cvogt
Copy link
Owner

cvogt commented Apr 24, 2017

Hi, I can't reproduce this. Can you please re-open with instructions how to reproduce? Thx

@cvogt cvogt closed this as completed Apr 24, 2017
@Jasper-M
Copy link
Contributor Author

Jasper-M commented Apr 24, 2017

@cvogt I don't think I can reopen, but this reproduces it on my end:

On Ubuntu 14.04 LTS, with $PATH already configured:

$ git clone https://github.com/cvogt/cbt.git
$ cbt

And then either

$ cbt direct tools scala 2.11.6

or

$ mkdir cbttest
$ cd cbttest
$ cbt tools createBuild
$ cbt tools createMain
$ sed -i '4ioverride def defaultScalaVersion = "2.11.6"' build/build.scala
$ cbt direct repl

For every version below 2.11.7 I get Falling back to SimpleReader. which means that tab completion, scrolling through history etc doesn't work. Not a huge deal, but there is a chance you still have to support 2.10.6 in some projects.

Would be strange if this issue is only on my end. sbt "++2.11.6 consoleQuick" works fine by the way.

@cvogt cvogt reopened this Apr 24, 2017
@cvogt
Copy link
Owner

cvogt commented Apr 26, 2017

weird. I tried this exact sequence on circleci, which runs ubuntu and it works fine there.

Try deleting cbt's caches.

killall -KILL java # kill background process
cd <cbt-home>
rm -rf cache # maven and git repo cache
find . | grep target\$ | xargs rm -rf # remove target directories

@Jasper-M
Copy link
Contributor Author

Jasper-M commented Apr 26, 2017 via email

@cvogt
Copy link
Owner

cvogt commented Apr 26, 2017

If that's not it, I don't know.

I doubt killing nailgun would have made a difference. Just put it in there to be safe.

@Jasper-M
Copy link
Contributor Author

$ cbt direct tools scala 2.10.6
Failed to created JLineReader: java.lang.NoClassDefFoundError: scala/tools/jline/console/ConsoleReader
Falling back to SimpleReader.
Welcome to Scala version 2.10.6 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_131).
Type in expressions to have them evaluated.
Type :help for more information.

scala> 

Nope :/

@cvogt
Copy link
Owner

cvogt commented Apr 28, 2017

Ok, I could reproduce this now :). Will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants