Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Ignoring Javadoc errors in dependencies
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 0
Choonster

Ignoring Javadoc errors in dependencies

By Choonster, October 19, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

Choonster    1651

Choonster

Choonster    1651

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1651
  • 5097 posts
Posted October 19, 2020

My mod depends on HWYLA, which has an API JAR containing both compiled classes and their source code. Unfortunately there seem to be some Javadoc errors in this code, which is preventing the generation of Javadoc for my own code.

 

The Gradle output looks like this (from this CI run):

> Task :processResources
> Task :classes
> Task :makeLibraryMetas UP-TO-DATE
> Task :jar
> Task :downloadMcpConfig
> Task :extractSrg
> Task :createMcpToSrg
> Task :reobfJar
/home/runner/.gradle/caches/forge_gradle/deobf_dependencies/mcp/mobius/waila/Hwyla/1.10.11-B78_1.16.2_mapped_snapshot_20200916-1.16.2/Hwyla-1.10.11-B78_1.16.2_mapped_snapshot_20200916-1.16.2-api.jar(mcp/mobius/waila/api/IComponentProvider.java):56: error: invalid end tag: </br>

     * Callback used to add lines to one of the three sections of the tooltip (Head, Body, Tail).</br>
                                                                                                 ^
/home/runner/.gradle/caches/forge_gradle/deobf_dependencies/mcp/mobius/waila/Hwyla/1.10.11-B78_1.16.2_mapped_snapshot_20200916-1.16.2/Hwyla-1.10.11-B78_1.16.2_mapped_snapshot_20200916-1.16.2-api.jar(mcp/mobius/waila/api/IComponentProvider.java):57: error: invalid end tag: </br>
     * Will only be called if the implementing class is registered via {@link IRegistrar#registerComponentProvider(IComponentProvider, TooltipPosition, Class)}.</br>
> Task :javadoc
                                                                                                                                                                ^
/home/runner/.gradle/caches/forge_gradle/deobf_dependencies/mcp/mobius/waila/Hwyla/1.10.11-B78_1.16.2_mapped_snapshot_20200916-1.16.2/Hwyla-1.10.11-B78_1.16.2_mapped_snapshot_20200916-1.16.2-api.jar(mcp/mobius/waila/api/IComponentProvider.java):58: error: invalid end tag: </br>
     * You are supposed to always return the modified input tooltip.</br>
                                                                    ^
/home/runner/.gradle/caches/forge_gradle/deobf_dependencies/mcp/mobius/waila/Hwyla/1.10.11-B78_1.16.2_mapped_snapshot_20200916-1.16.2/Hwyla-1.10.11-B78_1.16.2_mapped_snapshot_20200916-1.16.2-api.jar(mcp/mobius/waila/api/RenderableTextComponent.java):5: error: package mcp.mobius.waila.api.impl does not exist
import mcp.mobius.waila.api.impl.WailaRegistrar;
                                ^
4 errors

> Task :javadoc FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':javadoc'.
> Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): '/home/runner/work/TestMod3/TestMod3/build/tmp/javadoc/javadoc.options'

 

How can I tell Gradle/Javadoc to ignore these errors and just generate the documentation for my own code? I could probably turn off doclint, but I'd rather avoid doing that.

 

I've tried inspecting the tasks.javadoc.source property and adding an exclude filter to the task; but these only contain the paths of my own code, not the HWYLA JAR or source files.

  • Quote

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Share this post


Link to post
Share on other sites

Serilum    0

Serilum

Serilum    0

  • Tree Puncher
  • Serilum
  • Members
  • 0
  • 2 posts
Posted October 19, 2020

Does using the '--continue' flag in the gradlew command work?

  • Quote

Share this post


Link to post
Share on other sites

Choonster    1651

Choonster

Choonster    1651

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1651
  • 5097 posts
Posted October 19, 2020
1 hour ago, Serilum said:

Does using the '--continue' flag in the gradlew command work?

 

That lets it continue to other tasks after javadoc, but the Javadoc generation still fails.

  • Quote

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Share this post


Link to post
Share on other sites

Choonster    1651

Choonster

Choonster    1651

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1651
  • 5097 posts
Posted October 31, 2020

I've cross-posted this to StackOverflow here, hopefully someone over there will have an answer.

  • Quote

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Share this post


Link to post
Share on other sites

Choonster    1651

Choonster

Choonster    1651

  • Reality Controller
  • Choonster
  • Forge Modder
  • 1651
  • 5097 posts
Posted October 31, 2020

I've reported this to Hwyla here.

  • Quote

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 0
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • Ironhead_
      Failure message: Missing License Information in file Mod File

      By Ironhead_ · Posted 6 minutes ago

      I'm playing on 1.14.4 and am only using the create mod, however I'm having to resort to adding JEI to see some recipes I'm stuck on. it doesn't let me use JEI without a licence
    • diesieben07
      (1.16.2) How do I use onPlayerTick?

      By diesieben07 · Posted 15 minutes ago

      This will immediately crash the game, there are not just server side entities. The fact that it doesn't mean your event handler is not even running. It is not running, because @EventBusSubscriber only works with static event handler methods.
    • diesieben07
      7 FPS with a GT 1030 + i5-4690 (1.16.3)

      By diesieben07 · Posted 17 minutes ago

      "Forge fix your terrible performance! this is horrible!" "Oh, I was using a mod that hugely increases render and world simulation load. sorry!"   Gotta love it how people jump to conclusions that with "just" 90 mods installed it must surely be Forge at fault.
    • XenoPyax
      I can't find any guide or wiki docs

      By XenoPyax · Posted 19 minutes ago

      Ah okay thanks
    • diesieben07
      [1.15.2] Change player name in Tab List (Player List)

      By diesieben07 · Posted 19 minutes ago

      No, it exists in 1.16.4 and also 1.15.2.   Make those Field fields static. You need to create the packet first and store it in a variable, so you can work with it. Don't immediately send it. You need to then get the list of AddPlayerData instances from the packet. For this you get the "players" field, using the reflection Field you have already. Then for those AddPlayerData instances you need to set their displayName field, again using reflection. You need to set it, because Minecraft never sends any custom display name to the client - even though it has the network infrastructure to do so (SPlayerListItemPacket). It always just sends null for the display name, even if a custom display name is set.
  • Topics

    • arkeN
      48
      Failure message: Missing License Information in file Mod File

      By arkeN
      Started October 11, 2020

    • e2rifia
      1
      (1.16.2) How do I use onPlayerTick?

      By e2rifia
      Started 30 minutes ago

    • PotatoEz1
      4
      7 FPS with a GT 1030 + i5-4690 (1.16.3)

      By PotatoEz1
      Started 2 hours ago

    • XenoPyax
      2
      I can't find any guide or wiki docs

      By XenoPyax
      Started 1 hour ago

    • Babatunde
      14
      [1.15.2] Change player name in Tab List (Player List)

      By Babatunde
      Started Thursday at 12:42 AM

  • Who's Online (See full list)

    • Ironhead_
    • XenoPyax
    • JoppeGames3
    • diesieben07
    • TheOrangeInd
    • Sr_endi
    • BentiGorlich
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Ignoring Javadoc errors in dependencies
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community