Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Execution failed for task ':applySourcePatches' (1.10.2-12.18.1.2011)

Featured Replies

Posted

This error shows up when I run gradlew setupDecompWorkspace

 

Here is the full log from the command prompt

This mapping 'snapshot_20160518' was designed for MC 1.9.4! Use at your own peril.
#################################################
         ForgeGradle 2.2-SNAPSHOT-c438b06
  https://github.com/MinecraftForge/ForgeGradle
#################################################
               Powered by MCP unknown
             http://modcoderpack.com
         by: Searge, ProfMobius, Fesh0r,
         R4wk, ZeuX, IngisKahn, bspkrs
#################################################
:deobfCompileDummyTask
:deobfProvidedDummyTask
:getVersionJson
:extractUserdev
:extractDependencyATs SKIPPED
:extractMcpData SKIPPED
:extractMcpMappings SKIPPED
:genSrgs SKIPPED
:downloadClient SKIPPED
:downloadServer SKIPPED
:splitServerJar SKIPPED
:mergeJars SKIPPED
:deobfMcSRG SKIPPED
:decompileMc SKIPPED
:fixMcSources
:applySourcePatches
Patching failed: net/minecraft/client/gui/GuiMainMenu.java Cannot find hunk target
  6: Cannot find hunk target @ 0
  1/7 failed
Patching failed: net/minecraft/client/gui/achievement/GuiAchievements.java Cannot find hunk target
  3: Cannot find hunk target @ 0
  4: Cannot find hunk target @ 0
  2/10 failed
Patching failed: net/minecraft/client/gui/inventory/GuiContainer.java Cannot find hunk target
  3: Cannot find hunk target @ 0
  10: Cannot find hunk target @ 0
  2/13 failed
Patching failed: net/minecraft/client/gui/inventory/GuiContainerCreative.java Cannot find hunk target
  3: Cannot find hunk target @ 0
  1/16 failed
:applySourcePatches FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':applySourcePatches'.
> com.cloudbees.diff.PatchException: Cannot find hunk target

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 27.196 secs

clean your cache and try again

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

  • 3 years later...

Well WHAT did he mean?

 

I know this was 3 years ago but it's the only instance of this issue I found, and since you seems like you made it work, I'd rather just ask here than make a new question

Edit: Made it work by running "gradlew clean cleanCache setupDevWorkspace --refresh-dependencies" first

Edited by ThatOneCodingBoi

  • Guest locked this topic
Guest
This topic is now closed to further replies.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.