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

FWIW: Request for a scripting-style compilation option

3 replies
Kenneth McDonald
Joined: 2009-01-11,
User offline. Last seen 42 years 45 weeks ago.

Here's a request for the Scala team; put an option into scalac/fsc
that will recursively recompile dependencies, in the same way that
Python and Ruby automatically recompile source file dependencies (when
the source file is available, of course).

I have a personal reason for asking this; neither the NetBeans nor
Eclipse plugins function properly on my system (don't ask me why), so
I don't have an automated build/run system. I do my builds and runs on
the command line. More generally, I think such an option would give
people the ability to use their editor of choice (TextMate, Emacs,
etc.) without also worrying about the build system.

IMHO, scripting languages have succeeded so well because they made
things easier, and at least allowing for an automatic recursive build
process, without the need for build files, would only be a plus for
Scala.

Cheers,
Ken

Ricky Clarkson
Joined: 2008-12-19,
User offline. Last seen 3 years 2 weeks ago.
Re: FWIW: Request for a scripting-style compilation option
Try maven or ant or:

find src -name \*.scala | xargs scalac -d build &&
scala -classpath build mcdonald.kenneth.Main

Stick that in a build.sh, and set makeprg in vim to it, or compile-command in emacs.

If you want TextMate instructions, send me a Mac.

donald [at] sbcglobal [dot] net>
Here's a request for the Scala team; put an option into scalac/fsc that will recursively recompile dependencies, in the same way that Python and Ruby automatically recompile source file dependencies (when the source file is available, of course).

I have a personal reason for asking this; neither the NetBeans nor Eclipse plugins function properly on my system (don't ask me why), so I don't have an automated build/run system. I do my builds and runs on the command line. More generally, I think such an option would give people the ability to use their editor of choice (TextMate, Emacs, etc.) without also worrying about the build system.

IMHO, scripting languages have succeeded so well because they made things easier, and at least allowing for an automatic recursive build process, without the need for build files, would only be a plus for Scala.

Cheers,
Ken

DRMacIver
Joined: 2008-09-02,
User offline. Last seen 42 years 45 weeks ago.
Re: FWIW: Request for a scripting-style compilation option
Josh Suereth has a compiler plugin (originally based on some code I wrote for one of my many projects that didn't go anywhere :-) ) that might do what you want.

http://github.com/jsuereth/scalac-dependency-plugin/tree

There's also http://code.google.com/p/simple-build-tool/ which offers a slightly more comprehensive range of build related tasks.

On Sat, Jan 24, 2009 at 3:03 AM, Kenneth McDonald <kenneth [dot] m [dot] mcdonald [at] sbcglobal [dot] net> wrote:
Here's a request for the Scala team; put an option into scalac/fsc that will recursively recompile dependencies, in the same way that Python and Ruby automatically recompile source file dependencies (when the source file is available, of course).

I have a personal reason for asking this; neither the NetBeans nor Eclipse plugins function properly on my system (don't ask me why), so I don't have an automated build/run system. I do my builds and runs on the command line. More generally, I think such an option would give people the ability to use their editor of choice (TextMate, Emacs, etc.) without also worrying about the build system.

IMHO, scripting languages have succeeded so well because they made things easier, and at least allowing for an automatic recursive build process, without the need for build files, would only be a plus for Scala.

Cheers,
Ken

andreas s.
Joined: 2009-01-15,
User offline. Last seen 42 years 45 weeks ago.
Re: FWIW: Request for a scripting-style compilation option

Hello ken!
I've read about your problems. I got myself a macbook(intel) and scala runs
fine on eclipse and even better on netbeans. So this is my offer to you for
solving your problems.
Please give some details like: what OS version do you use. Is your hardware
PPC or x86?

I think we can work it out :)

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