« Return to Thread: [scala-tools] Plugins
On Mon, Jun 8, 2009 at 12:46 PM, Anders Bach Nielsen <andersbach.nielsen@...> wrote:
Hi David
The code in the examples should work for 2.7.x and the code needed for
2.8 (trunk) is shown in comments in the examples.
What is the error ?I copied and pasted the code from http://www.scala-lang.org/node/140When I compiled:dpp@yak:~$ scalac Foo.scala
Foo.scala:24: error: not found: type StdPhase
private class DivByZeroPhase(prev: Phase) extends StdPhase(prev) {
^
Foo.scala:21: error: type mismatch;
found : DivByZero.this.DivByZeroPhase
required: scala.tools.nsc.Phase
def newPhase(prev: Phase) = new DivByZeroPhase(prev)
^
two errors found
dpp@yak:~$Thanks,David
/Anders
--
David Pollak wrote:
> Folks,
>
> I tried to run the plugin tutorial at http://www.scala-lang.org/node/140 on
> Scala 2.7.4 and 2.7.5 and got compilation errors.
>
> Is this code 2.8.0? If so, should I be running 2.8 against the nightlies or
> against some known stable snapshot?
>
> Thanks,
>
> David
>
> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Git some: http://github.com/dpp
Anders Bach Nielsen | http://www.cs.au.dk/~abachn/
University of Aarhus | abachn@...
-
The reward of a thing well done is to have done it. -- Emerson
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
« Return to Thread: [scala-tools] Plugins
| Free embeddable forum powered by Nabble | Forum Help |