StoreReporter

class StoreReporter(outer: Reporter) extends Reporter

This class implements a Reporter that stores all messages

Beware that this reporter can leak memory, and force messages in two scenarios:

  • During debugging config.Printers.typr is set from noPrinter to new Printer, which forces the message
  • The reporter is not flushed and the message containers capture a Context (about 4MB)
class Reporter
trait ReporterResult
class Object
trait Matchable
class Any

Value members

Concrete methods

def doReport(dia: Diagnostic)(using Context): Unit
override def errorsReported: Boolean
Definition Classes
override def hasStickyErrors: Boolean
Definition Classes
Definition Classes
override def pendingMessages(using Context): List[Diagnostic]
Definition Classes
Definition Classes

Inherited methods

All errors reported by this reporter (ignoring outer reporters)

All errors reported by this reporter (ignoring outer reporters)

Inherited from
Reporter

The number of errors reported by this reporter (ignoring outer reporters)

The number of errors reported by this reporter (ignoring outer reporters)

Inherited from
Reporter
def flush(using Context): Unit

Issue all error messages in this reporter to next outer one, or make sure they are written.

Issue all error messages in this reporter to next outer one, or make sure they are written.

Inherited from
Reporter

Have errors been reported by this reporter (ignoring outer reporters)?

Have errors been reported by this reporter (ignoring outer reporters)?

Inherited from
Reporter

Have warnings been reported by this reporter (ignoring outer reporters)?

Have warnings been reported by this reporter (ignoring outer reporters)?

Inherited from
Reporter
def incomplete(dia: Diagnostic)(using Context): Unit
Inherited from
Reporter
def isHidden(dia: Diagnostic)(using Context): Boolean

Should this diagnostic not be reported at all?

Should this diagnostic not be reported at all?

Inherited from
Reporter
Inherited from
Reporter

Print the summary of warnings and errors

Print the summary of warnings and errors

Inherited from
Reporter
def report(dia: Diagnostic)(using Context): Unit
Inherited from
Reporter
def reportNewFeatureUseSite(featureTrait: Symbol): Unit
Inherited from
Reporter

Run op and return true if errors were reported by this reporter.

Run op and return true if errors were reported by this reporter.

Inherited from
Reporter

Summary of warnings and errors

Summary of warnings and errors

Inherited from
Reporter
Inherited from
Reporter

The number of warnings reported by this reporter (ignoring outer reporters)

The number of warnings reported by this reporter (ignoring outer reporters)

Inherited from
Reporter
def withIncompleteHandler[T](handler: ErrorHandler)(op: => T): T
Inherited from
Reporter
def withoutTruncating[T](body: => T): T
Inherited from
Reporter

Inherited fields