Hello everyone, I tried to post this on the minecraft forums but did not get any responses. I don't think there are many coders there
Specs
Both computers Win 7 x64
JDK 9
JRE 9 (also tried 1.8.0.144)
Eclipse Oxygen (it opens just fine)
Forge 1.12.1-14.22.1.2485
Added path to enviornment vars
Minecraft 1.12.2
My son and I are long time Minecrafters, we are no slouch with tech stuff having done some Unity development together as well as Robox. We are trying to create a MOD and running into the following error:
Execution failed for task ':fixMcSources'.
> com.cloudbees.diff.PatchException: Cannot find hunk target
edit: The forge command we are using is:
gradlew setupDecompWorkspace eclipse
We have scoured the internet for other forum posts about this error and tried various solutions, no progress. I did however find this thread post right here:
It says that Forge doesn't support JDK 9.0, is this true? Thanks for any help you can throw our way!
Here is the log:
This mapping 'snapshot_20170624' was designed for MC 1.12! Use at your own peril.This mapping 'snapshot_20170624' was designed for MC 1.12! Use at your own peril.
#################################################
ForgeGradle 2.3-SNAPSHOT-unknown
https://github.com/MinecraftForge/ForgeGradle
#################################################
Powered by MCP unknown
http://modcoderpack.com
by: Searge, ProfMobius, Fesh0r,
R4wk, ZeuX, IngisKahn, bspkrs
#################################################
:deobfCompileDummyTask
:deobfProvidedDummyTask
:getVersionJson
:extractUserdev UP-TO-DATE
:extractDependencyATs SKIPPED
:extractMcpData SKIPPED
:extractMcpMappings SKIPPED
:genSrgs SKIPPED
:downloadClient SKIPPED
:downloadServer SKIPPED
:splitServerJar SKIPPED
:mergeJars SKIPPED
:deobfMcSRG SKIPPED
:decompileMc SKIPPED
:fixMcSourcesPatching failed: minecraft\net\minecraft\client\util\SearchTree.java
Hunk 1 failed! Cannot find hunk target
.....
public void func_192749_b() {
Map map = Maps.newHashMap();
for(Entry entry : this.field_192758_f.entrySet()) {
AdvancementProgress advancementprogress = (AdvancementProgress)entry.getValue();
if (advancementprogress.func_192108_b()) {
map.put(((Advancement)entry.getKey()).func_192067_g(), advancementprogress);
}
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':fixMcSources'.
> 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: 1 mins 8.596 secs