diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-14 13:43:22 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-03-14 15:41:29 -0700 |
commit | b310d8c2e862d0a0db505eed8a29c15520fba845 (patch) | |
tree | 64637d3598a9441640fa7245c94fecf1654cddbe /test/files/neg/t5148.check | |
parent | efc0905f6b7a78bf3b454fbd9adb50aab5ffe20d (diff) | |
download | scala-b310d8c2e862d0a0db505eed8a29c15520fba845.tar.gz scala-b310d8c2e862d0a0db505eed8a29c15520fba845.tar.bz2 scala-b310d8c2e862d0a0db505eed8a29c15520fba845.zip |
SI-4492 More informative error when class not found on classpath
Position the error based on Select tree that failed to type check,
presumably due to an underlying MissingRequirementError, which has no position.
There are lots of other ways we could rewrap a MRE and supplement position info,
but that remains TODO. Jason's review comment is recorded in the code.
Also try to detect the case of a missing module and provide some advice,
as well as linking to the forthcoming 2.11 guide at
http://docs.scala-lang.org/overviews/core/scala-2.11.html.
Diffstat (limited to 'test/files/neg/t5148.check')
-rw-r--r-- | test/files/neg/t5148.check | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/neg/t5148.check b/test/files/neg/t5148.check index f426bd2010..8a667f4b88 100644 --- a/test/files/neg/t5148.check +++ b/test/files/neg/t5148.check @@ -1,5 +1,5 @@ -error: bad symbolic reference. A signature in Imports.class refers to type Request -in class scala.tools.nsc.interpreter.IMain which is not available. -It may be completely missing from the current classpath, or the version on -the classpath might be incompatible with the version used when compiling Imports.class. +error: bad symbolic reference to scala.tools.nsc.interpreter.IMain.Request encountered in class file 'Imports.class'. +Cannot access type Request in class scala.tools.nsc.interpreter.IMain. The current classpath may be +missing a definition for scala.tools.nsc.interpreter.IMain.Request, or Imports.class may have been compiled against a version that's +incompatible with the one found on the current classpath. one error found |