Skip to content

Tasty stdlib cannot be loaded by the doctool #10143

Closed
@abgruszecki

Description

@abgruszecki

When we try to load .tasty files generated by the stdlib-bootstrapped project in the doctool, we get a Tasty parse (!) exception:

https://github.com/lampepfl/dotty/runs/1341421259?check_suite_focus=true#step:10:970

scala.MatchError: 137 (of class java.lang.Integer)
	at dotty.tools.dotc.core.tasty.TastyClassName$TreeSectionUnpickler.readNames$1(TastyClassName.scala:46)
	at dotty.tools.dotc.core.tasty.TastyClassName$TreeSectionUnpickler.unpickle(TastyClassName.scala:57)
	at dotty.tools.dotc.core.tasty.TastyClassName$TreeSectionUnpickler.unpickle(TastyClassName.scala:26)
	at dotty.tools.dotc.core.tasty.TastyUnpickler.unpickle$$anonfun$1(TastyUnpickler.scala:96)
	at scala.Option.map(Option.scala:242)
	at dotty.tools.dotc.core.tasty.TastyUnpickler.unpickle(TastyUnpickler.scala:96)
	at dotty.tools.dotc.core.tasty.TastyClassName.readName(TastyClassName.scala:22)
	at dotty.tools.dotc.fromtasty.TastyFileUtil$.getClassName(TastyFileUtil.scala:29)
	at dotty.tools.dotc.Driver.$anonfun$1(Driver.scala:104)
	at scala.collection.immutable.List.flatMap(List.scala:293)
	at dotty.tools.dotc.Driver.fromTastySetup(Driver.scala:108)
	at dotty.tools.dotc.Driver.setup(Driver.scala:81)
	at dotty.tools.dotc.Driver.process(Driver.scala:193)
	at dotty.tools.dotc.Driver.process(Driver.scala:163)
	at dotty.tools.dotc.Driver.process(Driver.scala:175)
	at scala.tasty.inspector.TastyInspector.inspectFiles(TastyInspector.scala:95)
…

/cc @nicolasstucki

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions