Skip to content

Can't bump major TASTY version #3211

Closed
Closed
@odersky

Description

@odersky

The bootstrap currently does not allow for a bumping of the TASTY major version because it mixes
different generation of TASTY files. Here's what I get if I change TastyFormat.majorVersion to 1:

info] ExtractAPISpecification
[info]
[info] Existential types in method signatures should
[warn] there were three unchecked warnings; re-run with -unchecked for details
[warn] one warning found
[warn] there were two unchecked warnings; re-run with -unchecked for details
[warn] three warnings found
[warn] Multiple main classes detected. Run 'show discoveredMainClasses' to see the list
[info] Compiling 14 Scala sources to /Users/odersky/workspace/dotty/doc-tool/target/scala-2.12/test-classes...
[info] Packaging /Users/odersky/workspace/dotty/compiler/target/scala-2.12/dotty-compiler_2.12-0.4.0-bin-SNAPSHOT-nonbootstrapped-tests.jar ...
[info] Done packaging.
exception caught when loading module class DottyPredef$: dotty.tools.dotc.core.tasty.TastyUnpickler$UnpickleException: TASTy signature has wrong version.
expected: 1.0
found : 0.5
[info]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions