Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Scala 2.10.2-RC1
    • Component/s: Misc Compiler
    • Labels:
      None

      Description

      When the IDE parses scala files in scaladoc mode. meaning the parser and the scanner account for docComment lexems, the following exception is thrown. Unfortunately I haven't been able to consolidate a test case from the test failures in the IDE.

      java.lang.NullPointerException
      hyperlinking at position 168 (Set)
      at scala.tools.nsc.ast.parser.Parsers$Parser$$anonfun$2.apply(Parsers.scala:668)
      at scala.tools.nsc.ast.parser.Parsers$Parser$$anonfun$2.apply(Parsers.scala:665)
      at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
      at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
      at scala.collection.immutable.List.foreach(List.scala:318)
      at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
      at scala.collection.AbstractTraversable.map(Traversable.scala:105)
      at scala.tools.nsc.ast.parser.Parsers$Parser.joinComment(Parsers.scala:664)
      at scala.tools.nsc.ast.parser.Parsers$Parser.topStatSeq(Parsers.scala:2937)
      at scala.tools.nsc.ast.parser.Parsers$Parser$$anonfun$compilationUnit$1.topstats$1(Parsers.scala:3132)
      at scala.tools.nsc.ast.parser.Parsers$Parser$$anonfun$compilationUnit$1.topstats$1(Parsers.scala:3124)
      at scala.tools.nsc.ast.parser.Parsers$Parser$$anonfun$compilationUnit$1.apply(Parsers.scala:3138)
      at scala.tools.nsc.ast.parser.Parsers$Parser$$anonfun$compilationUnit$1.apply(Parsers.scala:3102)
      at scala.tools.nsc.ast.parser.Parsers$Parser.checkNoEscapingPlaceholders(Parsers.scala:428)
      at scala.tools.nsc.ast.parser.Parsers$Parser.compilationUnit(Parsers.scala:3102)
      at scala.tools.nsc.ast.parser.Parsers$SourceFileParser$$anonfun$parseStartRule$1.apply(Parsers.scala:141)
      at scala.tools.nsc.ast.parser.Parsers$SourceFileParser$$anonfun$parseStartRule$1.apply(Parsers.scala:141)
      at scala.tools.nsc.ast.parser.Parsers$Parser.parse(Parsers.scala:313)
      at scala.tools.nsc.symtab.BrowsingLoaders.browseTopLevel(BrowsingLoaders.scala:104)
      at scala.tools.nsc.symtab.BrowsingLoaders.enterToplevelsFromSource(BrowsingLoaders.scala:119)
      at scala.tools.nsc.symtab.SymbolLoaders.initializeFromClassPath(SymbolLoaders.scala:136)
      at scala.tools.nsc.symtab.SymbolLoaders$PackageLoader$$anonfun$doComplete$3.apply(SymbolLoaders.scala:232)
      at scala.tools.nsc.symtab.SymbolLoaders$PackageLoader$$anonfun$doComplete$3.apply(SymbolLoaders.scala:231)
      at scala.collection.TraversableLike$WithFilter$$anonfun$foreach$1.apply(TraversableLike.scala:772)
      at scala.collection.Iterator$class.foreach(Iterator.scala:727)
      at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
      at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
      at scala.collection.TraversableLike$WithFilter.foreach(TraversableLike.scala:771)
      at scala.tools.nsc.symtab.SymbolLoaders$PackageLoader.doComplete(SymbolLoaders.scala:231)
      at scala.tools.nsc.symtab.SymbolLoaders$SymbolLoader.complete(SymbolLoaders.scala:187)
      at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1229)
      at scala.reflect.internal.Types$TypeRef.decls(Types.scala:2428)
      at scala.tools.nsc.typechecker.Namers$Namer.enterPackage(Namers.scala:630)
      at scala.tools.nsc.typechecker.Namers$Namer.dispatch$1(Namers.scala:233)
      at scala.tools.nsc.typechecker.Namers$Namer.liftedTree1$1(Namers.scala:248)
      at scala.tools.nsc.typechecker.Namers$Namer.enterSym(Namers.scala:248)
      at scala.tools.nsc.typechecker.Analyzer$namerFactory$$anon$1.apply(Analyzer.scala:43)
      at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:463)
      at scala.tools.nsc.Global$Run$$anonfun$compileLate$2$$anonfun$apply$1.apply$mcV$sp(Global.scala:1682)
      at scala.tools.nsc.Global$Run$$anonfun$compileLate$2$$anonfun$apply$1.apply(Global.scala:1682)
      at scala.tools.nsc.Global$Run$$anonfun$compileLate$2$$anonfun$apply$1.apply(Global.scala:1682)
      at scala.reflect.internal.SymbolTable.atPhase(SymbolTable.scala:208)
      at scala.tools.nsc.Global$Run$$anonfun$compileLate$2.apply(Global.scala:1682)
      at scala.tools.nsc.Global$Run$$anonfun$compileLate$2.apply(Global.scala:1681)
      at scala.collection.Iterator$class.foreach(Iterator.scala:727)
      at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
      at scala.tools.nsc.Global$Run.compileLate(Global.scala:1681)
      at scala.tools.nsc.interactive.Global.scala$tools$nsc$interactive$Global$$parseAndEnter(Global.scala:573)
      at scala.tools.nsc.interactive.Global$$anonfun$backgroundCompile$3$$anonfun$apply$6.apply(Global.scala:483)
      at scala.tools.nsc.interactive.Global$$anonfun$backgroundCompile$3$$anonfun$apply$6.apply(Global.scala:480)
      at scala.Option.foreach(Option.scala:236)
      at scala.tools.nsc.interactive.Global$$anonfun$backgroundCompile$3.apply(Global.scala:480)
      at scala.tools.nsc.interactive.Global$$anonfun$backgroundCompile$3.apply(Global.scala:480)
      at scala.collection.immutable.List.foreach(List.scala:318)
      at scala.tools.nsc.interactive.Global.backgroundCompile(Global.scala:480)
      at scala.tools.nsc.interactive.PresentationCompilerThread.run(PresentationCompilerThread.scala:25)

        Activity

        Show
        James Iry added a comment - https://github.com/scala/scala/pull/2136

          People

          • Assignee:
            Eugene Vigdorchik
            Reporter:
            Eugene Vigdorchik
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development