Skip to content
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

failed on :recompForge #80

Closed
fedorareis opened this issue Mar 25, 2014 · 7 comments
Closed

failed on :recompForge #80

fedorareis opened this issue Mar 25, 2014 · 7 comments

Comments

@fedorareis
Copy link

So I looked around and didn't see an issue matching this anywhere on here so hopefully I didn't just miss it but anyway when running the setup I get an error that :recompForge failed. Here is the log:

****************************
 Powered By MCP:            
 http://mcp.ocean-labs.de/  
 Searge, ProfMobius, Fesh0r,
 R4wk, ZeuX, IngisKahn      
 MCP Data version : unknown
****************************
:extractUserDev
:getAssetsIndex
:getAssets
:copyAssets
:extractNatives
:genSrgs UP-TO-DATE
:downloadMcpTools UP-TO-DATE
:downloadClient SKIPPED
:downloadServer SKIPPED
:mergeJars SKIPPED
:deobfuscateJar UP-TO-DATE
:decompile SKIPPED
:doFmlPatches SKIPPED
:addFmlSources SKIPPED
:remapJar SKIPPED
:doForgePatches SKIPPED
:addForgeJavadoc SKIPPED
:extractForgeSrc
:recompForgewarning: [options] bootstrap class path not set in conjunction with -source 1.6
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/net/minecraft/entity/player/EntityPlayer.java:208: error: cannot find symbol
        this.eyeHeight = this.getDefaultEyeHeight();
            ^
  symbol: variable eyeHeight
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/net/minecraft/entity/player/EntityPlayer.java:208: error: cannot find symbol
        this.eyeHeight = this.getDefaultEyeHeight();
                             ^
  symbol: method getDefaultEyeHeight()
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/net/minecraft/entity/player/EntityPlayer.java:1116: error: cannot find symbol
        return eyeHeight;
               ^
  symbol:   variable eyeHeight
  location: class EntityPlayer
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/net/minecraft/entity/player/EntityPlayer.java:1806: error: method getBedLocation in class EntityPlayer cannot be applied to given types;
        return getBedLocation(this.dimension);
               ^
  required: no arguments
  found: int
  reason: actual and formal argument lists differ in length
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/net/minecraft/entity/player/EntityPlayer.java:1812: error: method isSpawnForced in class EntityPlayer cannot be applied to given types;
        return isSpawnForced(this.dimension);
               ^
  required: no arguments
  found: int
  reason: actual and formal argument lists differ in length
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/net/minecraft/entity/player/EntityPlayer.java:1822: error: method setSpawnChunk in class EntityPlayer cannot be applied to given types;
            setSpawnChunk(par1ChunkCoordinates, par2, this.dimension);
            ^
  required: ChunkCoordinates,boolean
  found: ChunkCoordinates,boolean,int
  reason: actual and formal argument lists differ in length
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/net/minecraft/entity/player/EntityPlayer.java:2442: error: cannot find symbol
        ChatComponentText chatcomponenttext = new ChatComponentText(ScorePlayerTeam.formatPlayerName(this.getTeam(), this.getDisplayName()));
                                                                                                                         ^
  symbol: method getDisplayName()
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/net/minecraft/item/Item.java:790: error: cannot find symbol
        double d1 = par2EntityPlayer.prevPosY + (par2EntityPlayer.posY - par2EntityPlayer.prevPosY) * (double)f + (double)(par1World.isRemote ? par2EntityPlayer.getEyeHeight() - par2EntityPlayer.getDefaultEyeHeight() : par2EntityPlayer.getEyeHeight()); // isRemote check to revert changes to ray trace position due to adding the eye height clientside and player yOffset differences
                                                                                                                                                                                                  ^
  symbol:   method getDefaultEyeHeight()
  location: variable par2EntityPlayer of type EntityPlayer
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/net/minecraft/world/gen/structure/StructureVillagePieces.java:1942: error: cannot find symbol
                BiomeEvent.GetVillageBlockID event = new BiomeEvent.GetVillageBlockID(startPiece == null ? null : startPiece.biome, p_151558_1_, p_151558_2_);
                                                                                                                            ^
  symbol:   variable biome
  location: variable startPiece of type Start
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/net/minecraft/world/gen/structure/StructureVillagePieces.java:1983: error: cannot find symbol
                BiomeEvent.GetVillageBlockMeta event = new BiomeEvent.GetVillageBlockMeta(startPiece == null ? null : startPiece.biome, p_151557_1_, p_151557_2_);
                                                                                                                                ^
  symbol:   variable biome
  location: variable startPiece of type Start
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/net/minecraft/server/management/ServerConfigurationManager.java:435: error: method getBedLocation in class EntityPlayer cannot be applied to given types;
        ChunkCoordinates chunkcoordinates = par1EntityPlayerMP.getBedLocation(par2);
                                                              ^
  required: no arguments
  found: int
  reason: actual and formal argument lists differ in length
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/net/minecraft/server/management/ServerConfigurationManager.java:436: error: method isSpawnForced in class EntityPlayer cannot be applied to given types;
        boolean flag1 = par1EntityPlayerMP.isSpawnForced(par2);
                                          ^
  required: no arguments
  found: int
  reason: actual and formal argument lists differ in length
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/net/minecraft/entity/player/EntityPlayerMP.java:1176: error: method does not override or implement a method from a supertype
    @Override
    ^
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/cpw/mods/fml/common/network/internal/OpenGuiHandler.java:16: error: cannot find symbol
        player.openGui(msg.modId, msg.modGuiId, player.worldObj, msg.x, msg.y, msg.z);
              ^
  symbol:   method openGui(String,int,World,int,int,int)
  location: variable player of type EntityPlayer
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/net/minecraft/client/entity/EntityOtherPlayerMP.java:174: error: method does not override or implement a method from a supertype
    @Override
    ^
/Users/kylereis/Documents/minecraft_mod/forge-1.7.2-10.12.0.1024-src/build/tmp/recompSrc/net/minecraftforge/common/util/FakePlayer.java:33: error: method does not override or implement a method from a supertype
    @Override public void openGui(Object mod, int modGuiId, World world, int x, int y, int z){}
    ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
16 errors
1 warning
 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':recompForge'.
> Compilation failed; see the compiler error output for details.

* 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 24.602 secs

It seems like a compiler issue, but I don't get why Java would be having issues compiling any of it or why there are compiler errors occurring in the first place.

@wgaylord
Copy link

Isspawnforced takes not args your passing it an int.

@Cazzar
Copy link

Cazzar commented Mar 25, 2014

Try gradle clean cleanCache and then gradle setupDecompWorkspace
--refresh-dependencies

@LexManos
Copy link
Member

Either use java 7 or use setpDevWorkspace instead of setupDecompWorkspace

@fedorareis
Copy link
Author

So using setupDevWorkspace seemed to solve the problem. Does anyone know why using setupDecompWorkspace didn't work? I even tried doing it with Java 7 and doing it after running gradle clean cleanCache and in both cases it still didn't work.

@AbrarSyed
Copy link
Member

@fedorareis gradlew clean cleanCache setupDecompWorkspace if that doesnt work.. I dunno what will.

@fedorareis
Copy link
Author

so I did get it working using AbrarSyed's solution. Thanks for the help

@LexManos
Copy link
Member

https://github.com/LexManos/FernFlowerFixer Should potential fix JVM specific decompile issues, Pushed in Forge 1048. Reopen if still and issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants