This page is no longer maintained — Please continue to the home page at www.scala-lang.org

BUG: 2.7.2 final, "scala -i file" loads the file twice.

2 replies
Dean Wampler
Joined: 2008-12-26,
User offline. Last seen 42 years 45 weeks ago.

Suppose "file" is "toss.scala", containing, e.g.,
println("hello world!")

Invoking scala v2.7.2.final yields the following:

$ scala -i toss.scala
Loading /Users/deanwampler/tmp/toss.scala...
Hello World!

Loading /Users/deanwampler/tmp/toss.scala...
Hello World!

Welcome to Scala version 2.7.2.final (Java HotSpot(TM) Client VM, Java
1.5.0_16).
Type in expressions to have them evaluated.
Type :help for more information.

scala>

While, using scala v.2.7.1.final yields:

$ .../scala-2.7.1.final/bin/scala -i ~/tmp/toss.scala
Loading /Users/deanwampler/tmp/toss.scala...
Hello World!

Welcome to Scala version 2.7.1.final (Java HotSpot(TM) Client VM, Java
1.5.0_16).
Type in expressions to have them evaluated.
Type :help for more information.

scala>

I'm on a Mac, running JDK 1.5.

dean

Ricky Clarkson
Joined: 2008-12-19,
User offline. Last seen 3 years 2 weeks ago.
Re: BUG: 2.7.2 final, "scala -i file" loads the file twice.
I'd suggest filing this on Scala's bugtracker - http://lampsvn.epfl.ch/trac/scala

2008/12/26 Dean Wampler <deanwampler [at] gmail [dot] com>
Suppose "file" is "toss.scala", containing, e.g.,
println("hello world!")

Invoking scala v2.7.2.final yields the following:

$ scala -i toss.scala
Loading /Users/deanwampler/tmp/toss.scala...
Hello World!

Loading /Users/deanwampler/tmp/toss.scala...
Hello World!

Welcome to Scala version 2.7.2.final (Java HotSpot(TM) Client VM, Java
1.5.0_16).
Type in expressions to have them evaluated.
Type :help for more information.

scala>

While, using scala v.2.7.1.final yields:

$ .../scala-2.7.1.final/bin/scala -i ~/tmp/toss.scala
Loading /Users/deanwampler/tmp/toss.scala...
Hello World!

Welcome to Scala version 2.7.1.final (Java HotSpot(TM) Client VM, Java
1.5.0_16).
Type in expressions to have them evaluated.
Type :help for more information.

scala>

I'm on a Mac, running JDK 1.5.

dean
--
Dean Wampler
http://www.objectmentor.com
http://www.polyglotprogramming.com
http://www.aspectprogramming.com
http://aquarium.rubyforge.org
http://www.contract4j.org

Ricky Clarkson
Joined: 2008-12-19,
User offline. Last seen 3 years 2 weeks ago.
Re: BUG: 2.7.2 final, "scala -i file" loads the file twice.
Dean,

I've submitted a bug report with the smallest patch I've ever created, to correct the manpage: https://lampsvn.epfl.ch/trac/scala/ticket/1603

By the way, these mailing lists stupidly have the reply-to address set incorrectly, so you'll need to remember to click reply all.  You can make that the default in gmail, I think.

Cheers,
Ricky.

2008/12/26 Dean Wampler <deanwampler [at] gmail [dot] com>
Thanks. I'll do that. I followed the instructions for the online man
pages to send reports here.
dean

On Fri, Dec 26, 2008 at 10:20 AM, Ricky Clarkson
<ricky [dot] clarkson [at] gmail [dot] com> wrote:
> I'd suggest filing this on Scala's bugtracker -
> http://lampsvn.epfl.ch/trac/scala
>
> 2008/12/26 Dean Wampler <deanwampler [at] gmail [dot] com>
>>
>> Suppose "file" is "toss.scala", containing, e.g.,
>> println("hello world!")
>>
>> Invoking scala v2.7.2.final yields the following:
>>
>> $ scala -i toss.scala
>> Loading /Users/deanwampler/tmp/toss.scala...
>> Hello World!
>>
>> Loading /Users/deanwampler/tmp/toss.scala...
>> Hello World!
>>
>> Welcome to Scala version 2.7.2.final (Java HotSpot(TM) Client VM, Java
>> 1.5.0_16).
>> Type in expressions to have them evaluated.
>> Type :help for more information.
>>
>> scala>
>>
>> While, using scala v.2.7.1.final yields:
>>
>> $ .../scala-2.7.1.final/bin/scala -i ~/tmp/toss.scala
>> Loading /Users/deanwampler/tmp/toss.scala...
>> Hello World!
>>
>> Welcome to Scala version 2.7.1.final (Java HotSpot(TM) Client VM, Java
>> 1.5.0_16).
>> Type in expressions to have them evaluated.
>> Type :help for more information.
>>
>> scala>
>>
>> I'm on a Mac, running JDK 1.5.
>>
>> dean
>> --
>> Dean Wampler
>> http://www.objectmentor.com
>> http://www.polyglotprogramming.com
>> http://www.aspectprogramming.com
>> http://aquarium.rubyforge.org
>> http://www.contract4j.org
>
>



--
Dean Wampler
http://www.objectmentor.com
http://www.polyglotprogramming.com
http://www.aspectprogramming.com
http://aquarium.rubyforge.org
http://www.contract4j.org

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland