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

Detecting Problems in CompilationUnits

1 reply
Mirko Stocker
Joined: 2009-09-10,
User offline. Last seen 45 weeks 6 days ago.

Hi,

I wonder if there's a way to get errors from a compilation unit,
without being part of the usual Reporter that gets the errors. I found
the problems array in RichCompilationUnit, but that never seems to
contain any errors (is that even used?).

Cheers,

Mirko

extempore
Joined: 2008-12-17,
User offline. Last seen 35 weeks 3 days ago.
Re: Detecting Problems in CompilationUnits

On 5/27/11 9:21 AM, Mirko Stocker wrote:
> I wonder if there's a way to get errors from a compilation unit,
> without being part of the usual Reporter that gets the errors. I found
> the problems array in RichCompilationUnit, but that never seems to
> contain any errors (is that even used?).

It is used from InteractiveReporter. Which is never used.

I found a dead commit (that is, contained in no existing branch) in
scala-ide where PresentationReporter extended InteractiveReporter, and
that's it.

git log f0e402a615b71dcc9130ac052dd4ce650c4865f9

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