Setting up my workspace, following tutorial on Youtube (suggested by the sponge docs)


#1

Hi, so i went throu the documentation and i cam to a part where it tells me
Quote from the doc’s:

"A tutorial by Mumfrey showing the setup of a Sponge workspace in Eclipse, using the new features in Buildship and ForgeGradle, can be viewed Here

I followed every single step like in the video. When it comes to the part where i should select the gradle task “setupDecompWorkspace” i get the error

Summary

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:SpongeCommon:SpongeAPI:genEventImpl’.

java.lang.NullPointerException (no error message)

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

Console output from eclipse at this point

Summary

Working Directory: F:\EclipseProjects\PluginWorkspace\SpongeForge
Gradle User Home: C:\Users\DropB.gradle
Gradle Distribution: Gradle wrapper from target build
Gradle Version: 3.3
Java Home: C:\Program Files\Java\jdk1.8.0_162
JVM Arguments: -Xmx2G
Program Arguments: None
Build Scans Enabled: false
Offline Mode Enabled: false
Gradle Tasks: setupDecompWorkspace

This mapping ‘snapshot_20171007’ was designed for MC 1.12! Use at your own peril.
#################################################
ForgeGradle 2.3-SNAPSHOT-unknown
https://github.com/MinecraftForge/ForgeGradle
#################################################
Powered by MCP
http://modcoderpack.com
by: Searge, ProfMobius, R4wk, ZeuX
Fesh0r, IngisKahn, bspkrs, LexManos
#################################################
Found AccessTransformer: common_at.cfg
This mapping ‘snapshot_20171007’ was designed for MC 1.12! Use at your own peril.
Found AccessTransformer: common_at.cfg
:deobfCompileDummyTask
:deobfProvidedDummyTask
:getVersionJson
:extractUserdev
:extractDependencyATs SKIPPED
:extractMcpData SKIPPED
:extractMcpMappings SKIPPED
:genSrgs SKIPPED
:downloadClient SKIPPED
:downloadServer SKIPPED
:splitServerJar SKIPPED
:mergeJars SKIPPED
:deobfMcSRG
Applying SpecialSource…
INFO: merging AccessMap net/minecraft/advancements/CriteriaTriggers/func_192118_a (Lnet/minecraft/advancements/ICriterionTrigger;)Lnet/minecraft/advancements/ICriterionTrigger; from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/block/BlockFire/func_176532_c (Lnet/minecraft/block/Block;)I from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/block/state/BlockStateContainer$StateImplementation from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/entity/EntityTrackerEntry/field_73134_o from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/entity/ai/EntityAITasks$EntityAITaskEntry from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/entity/passive/EntityVillager$EmeraldForItems from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/entity/passive/EntityVillager$ITradeList from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/entity/passive/EntityVillager$ItemAndEmeraldToItem from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/entity/passive/EntityVillager$ListEnchantedBookForEmeralds from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/entity/passive/EntityVillager$ListEnchantedItemForEmeralds from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/entity/passive/EntityVillager$ListItemForEmeralds from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/entity/passive/EntityVillager$PriceInfo from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/item/Item/func_77656_e (I)Lnet/minecraft/item/Item; from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/item/crafting/Ingredient/ ([Lnet/minecraft/item/ItemStack;)V from AccessChange(clear=0, set=0, vis=4) with AccessChange(clear=0, set=0, vis=4)
INFO: merging AccessMap net/minecraft/network/play/server/SPacketBlockChange/field_148883_d from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/tileentity/TileEntityHopper/func_145896_c (I)V from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/util/WeightedRandom$Item/field_76292_a from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/util/datafix/DataFixer/field_188262_d from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/world/World/func_175701_a (Lnet/minecraft/util/math/BlockPos;)Z from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/world/World/func_189509_E (Lnet/minecraft/util/math/BlockPos;)Z from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/world/WorldType/field_77139_a from AccessChange(clear=16, set=0, vis=1) with AccessChange(clear=16, set=0, vis=1)
INFO: merging AccessMap net/minecraft/world/gen/ChunkProviderServer/field_73244_f from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/world/gen/ChunkProviderServer/field_73247_e from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/world/gen/ChunkProviderServer/field_73251_h from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=0, set=0, vis=1)
INFO: merging AccessMap net/minecraft/world/gen/ChunkProviderServer/field_186029_c from AccessChange(clear=0, set=0, vis=1) with AccessChange(clear=16, set=0, vis=1)
Applying Exceptor…
:decompileMc
:fixMcSources
:applySourcePatches
:remapMcSources
:recompileMc
:extractNatives SKIPPED
:getAssetIndex UP-TO-DATE
:getAssets
Current status: 475/1283 37%
Current status: 924/1283 72%
:makeStart
:setupDecompWorkspace
:SpongeCommon:deobfCompileDummyTask
:SpongeCommon:deobfProvidedDummyTask
:SpongeCommon:getVersionJson
:SpongeCommon:extractDependencyATs SKIPPED
:SpongeCommon:extractMcpData SKIPPED
:SpongeCommon:extractMcpMappings SKIPPED
:SpongeCommon:genSrgs SKIPPED
:SpongeCommon:downloadServer SKIPPED
:SpongeCommon:splitServerJar SKIPPED
:SpongeCommon:deobfMcSRG
Applying SpecialSource…
Applying Exceptor…
:SpongeCommon:decompileMc
:SpongeCommon:fixMcSources
:SpongeCommon:remapMcSources
:SpongeCommon:recompileMc
:SpongeCommon:makeStart SKIPPED
:SpongeCommon:setupDecompWorkspace
:SpongeCommon:SpongeAPI:genEventImpl FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:SpongeCommon:SpongeAPI:genEventImpl’.

java.lang.NullPointerException (no error message)

  • 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: 6 mins 23.557 secs

I tried this now couple times to make sure i didnt made a mistake and i am sure i didn’t.
Maybe something is missing in the video what i dont know about and havent done.

Any help on this?
Thanks


#2

I had the same experience. Any suggestions?


#3

Can you please report the error with the stackatrace commands in a gist?


#4

Sadly, the video by @mumfrey is two years old and a little outdated. Whilst there are more recent ones for IntelliJ-Idea, not as many folks use Eclipse for Sponge development. If anyone can provide an updated setup tutorial we’ll consider adding that to the docs instead.


#5

OK I will just switch to IntelliJ. I started using Eclipse with some training I took, but more recent training uses IntelliJ. Plus, Eclipse hasn’t been the best experience. Thanks!


#6

Al right, i will swap to intelliJ then as well, before i look and get a “bad” video tutorial on the HowTo, any suggestions or something in mind what i should watch to get started? Thanks for the reply. I would post a stacktrace if i would know how. I think you mean when i run the “gradlew setupDecompWorkspace --stacktrace” is that right? Where do i find the log file then?


#7

Yes, you would run it with that argument. It should just show up in the console.


#8

OK, i will do that then later, i am very busy with another project in the moment but looking forward to get the sponge env. working