earldouglas/sbt-frege

Classes from dependent modules are not found when compiling Frege

Closed this issue · 6 comments

LGLO commented

In project with two subprojects:

lazy val plainJava = project
lazy val fregeCallsJava = project dependsOn plainJava

Error occurs when compiling fregeCallsJava because class from plainJava is not found.

Shoud I provide minimal project tgz with this issue?

Thanks for reporting this. I think I know why this is failing, so no need to provide a tgz for now.

Ok, I found the issue. We're currently only including managedClasspath in Compile in our call to fregec. We need to also include dependencyClasspath in Compile. I'll get this fixed tonight.

@LGLO Can you check the test project in java-from-frege and confirm that it looks like your use case?

LGLO commented

Yes, it does.
Thank you very much!

Cool, give version 1.1.0 of sbt-frege a try, and let me know if you still run into this issue.

LGLO commented

1.1.0 has fixed my problem.