Aladdin - Scala Bugtracking
[#885] project: compiler priority: medium category: bug
submitter assigned to status date submitted
Lex Stephane fixed 2007-01-11 23:13:06.0
subject Steven Harris cannot start compile server
code
From: "Steven E. Harris" <seh@panix.com>
Subject: Re: Java closures vs. Scala closures
Newsgroups: gmane.comp.lang.scala
Date: Wed, 10 Jan 2007 10:40:49 -0800
Organization: SEH Labs

Lex Spoon <lex@cc.gatech.edu> writes:

> // save this as okbutton.scash, and then
> // type "scala okbutton.scash"

,----
| $ scala okbutton.scalash
| cannot start server.
| tried command: scala.bat scala.tools.nsc.CompileServer
`----

Is there some necessary preparation I missed?

-- 
Steven E. Harris
what happened
what expected
[back to overview]
Changes of this bug report
Lex  edited on  2007-01-11 23:14:00.0
I don't know what is happening; I have emailed him to try and get more information.
Lex  edited on  2007-01-12 12:50:01.0
Here's what he sent me about his setup: > But regarding the bug, can you tell me a little about your setup? > What OS are you running? Microsoft Windows XP, running Scala from within an almost up-to-date Cygwin system. My JDK is fresh too -- if that's even being used by Scala: ,---- | $ java -version | java version "1.6.0" | Java(TM) SE Runtime Environment (build 1.6.0-b105) | Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing) `---- > Can you email me what "sbaz installed" tells you? ,---- | $ sbaz installed | base/1.9 | sbaz/1.18 | sbaz-setup/1.0 | scala/2.3.1 | scala-devel/2.3.1 | scala-documentation/2.3.1 | scala-library/2.3.1 | scala-tool-support/2.3.1 | scalap/2.3.1 | 9 packages installed `---- > If you are a Unix, what does "uname -a" say ? Cygwin is sort of a Unix: ,---- | $ uname -a | CYGWIN_NT-5.1 torus 1.5.23(0.156/4/2) 2006-12-19 10:52 i686 Cygwin `----
Lex  edited on  2007-01-12 12:51:01.0
Lex  edited on  2007-01-12 12:51:16.0
For what it's worth, this stuff works fine for me on Cygwin on XP, albeit using Java 1.5 instead of 1.6.
Lex  edited on  2007-01-12 14:14:40.0
And now I have tried with 1.6. At this point, I have a very similar setup to Steven's but still cannot replicate the error.
Lex  edited on  2007-01-15 14:30:23.0
The situation is that Steven installed the Unix distribution. This one does not include .bat files, even in share\scala which is otherwise just like an sbaz working directory. I propose that we include the .bat files under share\scala\bin in the Unix distros. This fixes the immediate problem, plus makes share\scala be the same as if it were installed via sbaz.
Stephane  edited on  2007-02-15 14:16:54.0
directory bin/ now also contains batch files