Skip to content

Fix #3515: Do not save tasty in .class with -YemitTasty #3517

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

Merged
merged 3 commits into from
Nov 23, 2017

Conversation

nicolasstucki
Copy link
Contributor

Only emit .tasty file

@nicolasstucki
Copy link
Contributor Author

nicolasstucki commented Nov 21, 2017

We are currently not loading tasty from the .tasty files. Will need to add this functionality in this PR. Done.

if (attrLen == 0) {
// A tasty attribute implies the existence of the .tasty file
val tastyFilePath =
classfile.jpath.resolveSibling(classfile.jpath.getFileName.toString.dropRight("class".length) + "tasty")
Copy link
Contributor

@allanrenucci allanrenucci Nov 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

io.File(classfile.jpath).changeExtension("tasty")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Copy link
Member

@smarter smarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should have at least one test to confirm separate compilation works with this.

@nicolasstucki
Copy link
Contributor Author

We have them in the idempotency tests, that is why ed61847 failed the tests.

@nicolasstucki
Copy link
Contributor Author

nicolasstucki commented Nov 22, 2017

I will create one test that will execute in local tests. Idempotency tests only run on the CI.

@nicolasstucki nicolasstucki merged commit da25dcd into scala:master Nov 23, 2017
@allanrenucci allanrenucci deleted the fix-#3515 branch December 14, 2017 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants