Description
minimized code
Reproducible code project attached: oids.zip
steps to reproduce:
- Unpack the archive above and
cd
into it sbt
~desktop/run
- Try writing a few changes to
Oids.scala
and/orMain.scala
. Usually after 3-4 compilations I see the UUID error.
expectation
When I run sbt desktop/run
my application should run. Instead I get the following output:
sbt:all-platforms> desktop/run
[info] Compiling 1 Scala source to /Users/cory.klein/code/playground/oids/core/target/scala-0.20/classes ...
[info] Done compiling.
[info] Packaging /Users/cory.klein/code/playground/oids/core/target/scala-0.20/core_0.20-0.1.0.jar ...
[info] Done packaging.
[info] Compiling 1 Scala source to /Users/cory.klein/code/playground/oids/desktop/target/scala-0.20/classes ...
[error] Tasty UUID (00580745-b126-5400-0085-2577bf86b400) file did not correspond the tasty UUID (00de03e0-a506-9b00-00fa-46ff8b91a900) declared in the classfile /Users/cory.klein/code/playground/oids/core/target/scala-0.20/core_0.20-0.1.0.jar(com/coryfklein/oids/Oids.class).
[error] one error found
[error] (desktop / Compile / compileIncremental) Compilation failed
[error] Total time: 2 s, completed Dec 26, 2019 8:04:53 AM
The specific error I want to call out is Tasty UUID (00580745-b126-5400-0085-2577bf86b400) file did not correspond the tasty UUID (00de03e0-a506-9b00-00fa-46ff8b91a900) declared in the classfile /Users/cory.klein/code/playground/oids/core/target/scala-0.20/core_0.20-0.1.0.jar(com/coryfklein/oids/Oids.class)
This appears to happen intermittently, although once it starts it is difficult to get it to go away.
Is there anything I can try to help debug this or some reliable way to clear out the bad state?
EDIT: It appears to go away when I exit my sbt
console and open it again. Next time I'll try and see if reload
fixes the issue.
EDIT2: reload
does not fix the issue, but exiting sbt
and re-running it again still works.