Skip to content
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

Don't bomb if -Ypickle-java isn't present #836

Closed
wants to merge 1 commit into from

Conversation

dwijnand
Copy link
Member

No description provided.

Comment on lines 103 to 108
val scalacOpts = config.currentSetup.options.scalacOptions
val pickleJava = {
if (isPickleJava && !scalacOpts.contains("-Ypickle-java"))
List("-Ypickle-java")
else Nil
}
Copy link
Member

Choose a reason for hiding this comment

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

I don't know if adding -Y flag forcefully would still make it a good default..

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm... Yeah. Just drop the assert, then? WDYT?

Copy link
Member

Choose a reason for hiding this comment

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

This would mess up pipelining. I think the solution is to actually solve the mixed Scala/Java compilation, and let the build tools configure the flags.

Copy link
Member Author

Choose a reason for hiding this comment

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

Why and how would it mess it up? It's an assertion, so removing it can't actively mess anything up.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't disagree with eventually finding a solution for pipelining in mixed projects, but we can drop as it breaks your example.

Copy link
Member

Choose a reason for hiding this comment

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

When a build tool (currently scripted) correctly hooks up the pipelined tasks, not passing -Ypickle-java would create mysterious error saying the symbols (defined in upstream Java subproject) are not found.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, but it's not an outlier: there's about a billion ways you can set up pipelining wrong.

@dwijnand dwijnand changed the title pipelining ==> -Ypickle-java, don't bomb Don't bomb if -Ypickle-java isn't present Jul 14, 2020
@dwijnand
Copy link
Member Author

#843 disables pipelining but tests everything with it, which works for me.

@dwijnand dwijnand closed this Jul 17, 2020
@dwijnand dwijnand deleted the Ypickle-java-yourself branch July 17, 2020 14:39
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.

2 participants