-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-4543] Javadoc failure for network-common causes publish-local to fail #3405
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
Conversation
|
Can one of the admins verify this patch? |
|
No, that's really not a solution to put in a bunch of dummy TODOs. The Javadoc messages are just warnings. I do not see why just the network common module ends up showing them as errors in the SBT build. network/shuffle does not -- they're just warnings. There must be a simple config difference, although I don't see it. |
|
Maybe related to 293672c4? Although that should apply for all projects... |
|
Hm, I doubt it, but don't know 100%. That change should affect how Java code gets generated from Scala code for purposes of generating one big set of docs. The "errors" here are on non-generated Java source code. |
|
In sbt they are warnings, so I suppose the question is as you posed, what configuration is different. I have scoured through the directories/config files + search on github and can't find any diff that would be causing this. For the moment my temporary fix is TODO filler tags so i can continue working on my project, but I agree, that it is not the optimal/right way to fix this. |
|
We actually don't want these methods to be exposed in Javadoc right now, On Fri, Nov 21, 2014 at 3:00 PM, Pedro Rodriguez notifications@github.com
|
|
In theory yes, I think that would fix the issue. What change would be needed for that? |
|
No clue! On Fri, Nov 21, 2014 at 6:11 PM, Pedro Rodriguez notifications@github.com
|
|
I stared at the SBT config for a while here, and I don't understand how it works. I see some bits that seem to exclude these packages, but they're in the TestSettings section, not in the Unidoc section. Adding packages to them doesn't do anything. I don't see how to simply modify what packages are passed to javadoc. The javadoc settings seem to be in SBT expert is needed here. Here's one area where Maven is much easier to grok and control I think. Of course another 'workaround' is to actually try to fill in this javadoc meaningfully. |
|
Regarding filling in the javadoc, why do we have to add |
|
Yeah, I'm not clear why only this module is treating javadoc warnings as errors. Ideally we'd figure that out too. But strictly speaking it's just necessary to figure out how to not make javadoc for these classes now, but I don't know how yet. I don't think we should have to fill in all that javadoc in general; it's too much work. This shouldn't be required. But was just suggesting that it is a way to workaround this in the short term too! |
|
Agreed, requiring to fill in the javadoc is tedious (it was tedious just entering in TODOs, let alone real docs). Who might be someone good to ping that would know more about this? |
|
Hi, is this related to #3058? |
|
I don't think so in the sense that it only affects Java 8, and should turn off errors for missing javadoc. Here, the javadoc messages are indeed just warnings, but SBT shows them as errors. Just for one module. |
|
Hmm, I can't reproduce the situation that the javadoc messages are just warnings. |
|
@pwendell There's a slightly different mystery here -- even if javadoc warnings are generated, why are they an error in just this module? and why is javadoc run at all for this? the SBT build looks like it's trying not to. Successfully disabling doclint "missing" may just make it a moot point, and so 'fix' this, but it's a slightly different thing. |
|
@pwendell, I am building on Java 8. |
|
@EntilZha would you mind trying to build against the master branch and seeing if it works? |
|
Works for me for building against master branch. Close PR and close issue with reference to #3058? |
|
Yep - that's the best way to proceed. Close this PR, if you don't mind. I can update the JIRA. |
Pull request to accompany: https://issues.apache.org/jira/browse/SPARK-4543
Javadoc is missing from network-common causing publish-local to fail executing to completion, most importantly publishing the jar locally. This pull request adds placeholder TODO comments to allow the Javadoc to compile, thus allowing publish-local to complete successfully.