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
scala 2.10.2 fails first try on Mac OS/X #7882
Comments
Imported From: https://issues.scala-lang.org/browse/SI-7882?orig=1 |
@paulp said: |
Charlie Martin (chasrmartin) said: Script started on Sat Sep 28 19:12:52 2013 scala> [init] error: error while loading , error in opening zip file Failed to initialize compiler: object scala.runtime in compiler mirror not found.
Failed to initialize the REPL due to an unexpected error. Script done on Sat Sep 28 19:14:59 2013 |
Charlie Martin (chasrmartin) said: |
Charlie Martin (chasrmartin) said: |
@paulp said: A small amount of googling turns up http://stackoverflow.com/questions/11371252/scala-repl-only-runs-as-root-user-gives-error-when-run-as-non-root where the last comment implicates http://lists.opensuse.org/opensuse-bugs/2012-07/msg00920.html . |
Charlie Martin (chasrmartin) said: Oh, and if I had a dollar for every time a baby programmer told me there couldn't possibly be a bug there in the last 45 years, I'd have retired to Monaco by now. Now, let's look at the nice bug report (OS/X 10.8.5) and this script, which was run as root, and either handle the bug or forward it to someone who can. Script started on Sat Sep 28 20:04:21 2013 scala> [init] error: error while loading , error in opening zip file Failed to initialize compiler: object scala.runtime in compiler mirror not found.
Failed to initialize the REPL due to an unexpected error. Script done on Sat Sep 28 20:05:36 2013 |
Charlie Martin (chasrmartin) said: |
@paulp said: |
Charlie Martin (chasrmartin) said: |
Mike Slinn (mslinn) said: |
Charlie Martin (chasrmartin) said: |
@SethTisue said (edited on Sep 29, 2013 7:21:53 PM UTC): A couple things you could try to narrow down the conditions under which this occurs:
I especially recommend the latter; Java 6 is now basically dead and unsupported on Mac OS X as well as other platforms. I'd add that Java 6's checkered history on Mac OS X in particular means that (blatantly or subtly) broken Java 6 installations on Macs are not uncommon. Whatever this problem is, it's quite rare; I've never seen it before, even though I've been helping newcomers with Scala (here, on IRC, and elsewhere) for half a decade now. I'm sorry this isn't working for you yet, but I can tell you that this isn't something first-time Scala users commonly hit. |
Charlie Martin (chasrmartin) said: |
Charlie Martin (chasrmartin) said: 507 $ sudo bash scala> [init] error: error while loading , error in opening zip file Failed to initialize compiler: object scala.runtime in compiler mirror not found.
Failed to initialize the REPL due to an unexpected error. |
@SethTisue said: |
@retronym said (edited on Sep 29, 2013 8:33:47 PM UTC): In the meantime, with 2.10.2, you could find out the last JAR opened by the process by tracing system calls with
|
@SethTisue said (edited on Sep 29, 2013 8:51:35 PM UTC): Looking at the output I get with |
Charlie Martin (chasrmartin) said: |
@SethTisue said:
with 2.11.0-M5, I get Jason's nicer error:
|
Charlie Martin (chasrmartin) said: 512 $ scala scala> scala> |
Charlie Martin (chasrmartin) said: |
Unpacked scala and try to run it. Fails, giving this output:
./scala
Welcome to Scala version 2.10.2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_51).
Type in expressions to have them evaluated.
Type :help for more information.
scala> [init] error: error while loading , error in opening zip file
Failed to initialize compiler: object scala.runtime in compiler mirror not found.
Failed to initialize the REPL due to an unexpected error.
This is a bug, please, report it along with the error diagnostics printed below.
java.lang.NullPointerException
at scala.tools.nsc.interpreter.ExprTyper$codeParser$.applyRule(ExprTyper.scala:24)
at scala.tools.nsc.interpreter.ExprTyper$codeParser$.stmts(ExprTyper.scala:35)
at scala.tools.nsc.interpreter.ExprTyper$$anonfun$parse$2.apply(ExprTyper.scala:43)
at scala.tools.nsc.interpreter.ExprTyper$$anonfun$parse$2.apply(ExprTyper.scala:42)
at scala.tools.nsc.reporters.Reporter.withIncompleteHandler(Reporter.scala:51)
at scala.tools.nsc.interpreter.ExprTyper$class.parse(ExprTyper.scala:42)
at scala.tools.nsc.interpreter.IMain$exprTyper$.parse(IMain.scala:1074)
at scala.tools.nsc.interpreter.IMain.parse(IMain.scala:1078)
at scala.tools.nsc.interpreter.IMain$$anonfun$showCodeIfDebugging$1.apply(IMain.scala:1168)
at scala.tools.nsc.interpreter.IMain$$anonfun$showCodeIfDebugging$1.apply(IMain.scala:1168)
at scala.tools.nsc.interpreter.IMain.beSilentDuring(IMain.scala:238)
at scala.tools.nsc.interpreter.IMain.showCodeIfDebugging(IMain.scala:1168)
at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.compileAndSaveRun(IMain.scala:800)
at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.compile(IMain.scala:761)
at scala.tools.nsc.interpreter.IMain.bind(IMain.scala:618)
at scala.tools.nsc.interpreter.IMain.bind(IMain.scala:661)
at scala.tools.nsc.interpreter.IMain$$anonfun$quietBind$1.apply(IMain.scala:660)
at scala.tools.nsc.interpreter.IMain$$anonfun$quietBind$1.apply(IMain.scala:660)
at scala.tools.nsc.interpreter.IMain.beQuietDuring(IMain.scala:232)
at scala.tools.nsc.interpreter.IMain.quietBind(IMain.scala:660)
at scala.tools.nsc.interpreter.ILoop$$anonfun$process$1$$anonfun$apply$mcZ$sp$2.apply$mcV$sp(ILoop.scala:838)
at scala.tools.nsc.interpreter.ILoopInit$class.runThunks(ILoopInit.scala:122)
at scala.tools.nsc.interpreter.ILoop.runThunks(ILoop.scala:42)
at scala.tools.nsc.interpreter.ILoopInit$class.postInitialization(ILoopInit.scala:95)
at scala.tools.nsc.interpreter.ILoop.postInitialization(ILoop.scala:42)
at scala.tools.nsc.interpreter.ILoopInit$$anonfun$createAsyncListener$1.apply$mcV$sp(ILoopInit.scala:63)
at scala.tools.nsc.interpreter.ILoopInit$$anonfun$createAsyncListener$1.apply(ILoopInit.scala:60)
at scala.tools.nsc.interpreter.ILoopInit$$anonfun$createAsyncListener$1.apply(ILoopInit.scala:60)
at scala.tools.nsc.io.package$$anon$3.call(package.scala:40)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:680)
.
The text was updated successfully, but these errors were encountered: