Skip to content

Tasty UUID file did not correspond the tasty UUID #7852

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

Closed
coryfklein opened this issue Dec 26, 2019 · 0 comments
Closed

Tasty UUID file did not correspond the tasty UUID #7852

coryfklein opened this issue Dec 26, 2019 · 0 comments

Comments

@coryfklein
Copy link

coryfklein commented Dec 26, 2019

minimized code

Reproducible code project attached: oids.zip

steps to reproduce:

  1. Unpack the archive above and cd into it
  2. sbt
  3. ~desktop/run
  4. Try writing a few changes to Oids.scala and/or Main.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.

nicolasstucki added a commit that referenced this issue Jan 8, 2020
Fix #7852: avoid reading stale .tasty files from jars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant