Jump to content

[1.7.10] Build error (InteliJ)


Xour21

Recommended Posts

Okay so I recently encountered a new error when I tried to build my mod, I've not had a problem with building before this time so I'm a bit confused by the error, here's a preview.

 

2:47:49 PM: Executing external task 'build'...

 

FAILURE: Build failed with an exception.

 

* Where:

Build file 'C:\Users\$Username$\Desktop\Minecraft\Teutons\build.gradle' line: 18

 

* What went wrong:

A problem occurred evaluating root project 'Teutons'.

> java.io.EOFException: End of input at line 5092 column 3

 

* 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: 35.878 secs

End of input at line 5092 column 3

2:48:26 PM: External task execution finished 'build'.

 

 

I've run in "Debug" but that didn't reveal anything and when I run it in client mode I have no errors and everything works fine, it references to line 5092 column 3 but I'm unsure where that is, I'm also unsure how to run a stacktrace command or whether that will actually help.

 

Any help with this problem would be appreciated.

Cheers

Xour

Link to comment
Share on other sites

build.gradle

 

buildscript {

    repositories {

        mavenCentral()

        maven {

            name = "forge"

            url = "http://files.minecraftforge.net/maven"

        }

        maven {

            name = "sonatype"

            url = "https://oss.sonatype.org/content/repositories/snapshots/"

        }

    }

    dependencies {

        classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'

    }

}

 

apply plugin: 'forge'

 

version = "1.0"

group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html

archivesBaseName = "modid"

 

minecraft {

    version = "1.7.10-10.13.4.1472-1.7.10"

    runDir = "eclipse"

}

 

dependencies {

    // you may put jars on which you depend on in ./libs

    // or you may define them like so..

    //compile "some.group:artifact:version:classifier"

    //compile "some.group:artifact:version"

     

    // real examples

    //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev'  // adds buildcraft to the dev env

    //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env

 

    // for more info...

    // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html

    // http://www.gradle.org/docs/current/userguide/dependency_management.html

 

}

 

processResources

{

    // this will ensure that this task is redone when the versions change.

    inputs.property "version", project.version

    inputs.property "mcversion", project.minecraft.version

 

    // replace stuff in mcmod.info, nothing else

    from(sourceSets.main.resources.srcDirs) {

        include 'mcmod.info'

               

        // replace version and mcversion

        expand 'version':project.version, 'mcversion':project.minecraft.version

    }

       

    // copy everything else, thats not the mcmod.info

    from(sourceSets.main.resources.srcDirs) {

        exclude 'mcmod.info'

    }

}

 

 

Link to comment
Share on other sites

Okay, so to run the build all I'm currently doing is running the build command, I have never needed to use anything to do with a stack trace, I simply launch the build command, it builds my mod and my mod appears as a .jar file in my build\libs folder. until recently running build worked normally however I now receive the error seen in my original post.

Link to comment
Share on other sites

Not sure if this is important or not but this line shows up in the build.gradle as the referenced error line

 

apply plugin: 'forge'

 

Not sure what it's talking about though, I've not changed anything to do with my forge setup or anything in at all for that fact except some lines of code for my mod.

Link to comment
Share on other sites

Okay I'm going to explain again, please keep in mind that I have just barely started modding so a lot of the things you say mean nothing to me. So to build my mod here's what I do, remember I'm using InteliJ community edition 13.

 

I go into InteliJ

I go to help and then I search for the command Build

A list of commands appears on the left side, note that none of them say stacktrace

I double click the Build command, from the panel on the left

The mod builds

Usually that would be it but now it comes up with the error that I am currently seeing

Link to comment
Share on other sites

Okay sorry about the long silence Was away for a while. I ran the --stacktrace command and the build became succsesful, this is what came up in the command window

 

 

C:\Users\$USERNAME$\Desktop\Minecraft\Teutons>grable build --stacktrace

'grable' is not recognized as an internal or external command,

operable program or batch file.

 

C:\Users\$USERNAME$\Desktop\Minecraft\Teutons>gradlew build --stacktrace

****************************

Powered By MCP:

http://modcoderpack.com/

Searge, ProfMobius, Fesh0r,

R4wk, ZeuX, IngisKahn, bspkrs

MCP Data version : unknown

****************************

:compileApiJava UP-TO-DATE

:processApiResources UP-TO-DATE

:apiClasses UP-TO-DATE

:sourceMainJava

:compileJava

warning: [options] bootstrap class path not set in conjunction with -source 1.6

1 warning

:processResources UP-TO-DATE

:classes

:jar

:compileTestJava UP-TO-DATE

:processTestResources UP-TO-DATE

:testClasses UP-TO-DATE

:test UP-TO-DATE

:extractMcpData UP-TO-DATE

:getVersionJson

:extractUserDev UP-TO-DATE

:genSrgs SKIPPED

:reobf

:assemble

:check UP-TO-DATE

:build

 

BUILD SUCCESSFUL

 

Total time: 3 mins 50.778 secs

C:\Users\$USERNAME$\Desktop\Minecraft\Teutons>

 

 

If you need any other pieces then let me know

Cheers

Xour

Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

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