Skip to content

https://github.com/Bersier/physical requires sbt clean compile - fails to compile without the clean. #15724

Closed
@dwalend

Description

@dwalend

Compiler version

3.1.3

Minimized code

It's four files and a build.sbt - not very minimized, but several of us have been able to reproduce it. (If you can wait two weeks when I get a bit of free time I'd be happy to see if I can bracket the behavior. I think reporting this early is best.)

Start with https://github.com/Bersier/physical

Output (click arrow to expand)

sbt compile will finish in maybe 10 seconds, works great, everything compiles. Successive sbt clean compile calls work fine.

Make any change - maybe rename something - to Dimensions.scala .(Another person on Scala Users reported problems when adding just a blank line.)

sbt compile now takes so long that it seems like an infinite loop. It finishes after perhaps 10 minutes, failing to compile with a lot of excuses despite no interesting changes to the code.

I don't believe the problem is the opaque type in Dimensions because I replaced it with a value class and got the same effect.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions