Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

doc task failing on package objects. #269

harrah opened this Issue Jan 5, 2013 · 1 comment


None yet
1 participant

harrah commented Jan 5, 2013

Doc task is failing with the following error:

[error] error while loading package, Missing dependency 'class pkg.subpkg.package', required by ./target/broken/scala-2.9.1/classes/pkg/subpkg/package.class

This happens only if the project is compiled first, then doc is called. If the target directory is removed, and then doc is called, then the task will succeed.

The stragest thing is that the doc task is picking up on compilation units from other projects. In effect, when publishing large project, it's pretty much guranteed that there will be some package objects somewhere in the target dir, causing doc task to fail.

Stranger yet, adding a dummy dependency to a failing project via dependsOn(dummyProject) fixes the issue. Of course, this depenency becomes an ivy depenency and gets published, so it's not a viable workaround.

I will attempt to add a sample project as an attachment to the ticket. If it does not work, please contact me via email to get a copy of the sample project that replicates the bug (it's been reduced to a couple of files).


harrah commented Jan 5, 2013

IMPORTANT This project has moved to https://github.com/sbt/sbt. This issue still exists to avoid dead links, but GitHub limitations prevent the original issue from being correctly preserved here. Please see sbt/sbt#269 for the full issue and to comment.

@harrah harrah closed this Jan 5, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment