Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in parser in forScaladoc mode #7143

Closed
scabug opened this issue Feb 18, 2013 · 2 comments
Closed

NPE in parser in forScaladoc mode #7143

scabug opened this issue Feb 18, 2013 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

@scabug scabug commented Feb 18, 2013

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)

@scabug
Copy link
Author

@scabug scabug commented Feb 18, 2013

@scabug
Copy link
Author

@scabug scabug commented Feb 19, 2013

@scabug scabug closed this Feb 19, 2013
@scabug scabug added this to the 2.10.2-RC1 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants