Problème Compilation



  • Bonjour, j'ai un soucis quand j'essaye de compiler mon mod

    Voici le message d'erreur:

    C:\Users\Julian\Desktop\Nouveau dossier (2)>gradlew clean
    ****************************
     Powered By MCP:
     http://modcoderpack.com/
     Searge, ProfMobius, Fesh0r,
     R4wk, ZeuX, IngisKahn, bspkrs
     MCP Data version : unknown
    ****************************
    :clean
    
    BUILD SUCCESSFUL
    
    Total time: 7.913 secs
    C:\Users\Julian\Desktop\Nouveau dossier (2)>gradlew build
    ****************************
     Powered By MCP:
     http://modcoderpack.com/
     Searge, ProfMobius, Fesh0r,
     R4wk, ZeuX, IngisKahn, bspkrs
     MCP Data version : unknown
    ****************************
    :downloadClient SKIPPED
    :downloadServer SKIPPED
    :getVersionJson
    :extractUserDev UP-TO-DATE
    :mergeJars SKIPPED
    :applyBinPatches SKIPPED
    :downloadMcpTools SKIPPED
    :extractMcpData UP-TO-DATE
    :genSrgs SKIPPED
    :deobfBinJar SKIPPED
    :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
    Note: C:\Users\Julian\Desktop\Nouveau dossier (2)\build\sources\java\com\mod\tuto\proxy\GuiCustomMainMenu.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 warning
    :processResources
    :classes
    :jar
    :compileTestJava UP-TO-DATE
    :processTestResources UP-TO-DATE
    :testClasses UP-TO-DATE
    :test UP-TO-DATE
    :reobf FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':reobf'.
    > MALFORMED
    
    * 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: 16.183 secs
    
    C:\Users\Julian\Desktop\Nouveau dossier (2)>
    

    Je vous remercie d'avance



  • Bizarre… Lances gradlew build --stackstrace pour avoir plus de détails sur l'erreur.



  • C:\Users\Julian\Desktop\Nouveau dossier (2)>gradlew build
    ****************************
    Powered By MCP:
    http://modcoderpack.com/
    Searge, ProfMobius, Fesh0r,
    R4wk, ZeuX, IngisKahn, bspkrs
    MCP Data version : unknown
    ****************************
    :downloadClient SKIPPED
    :downloadServer SKIPPED
    :getVersionJson
    :extractUserDev UP-TO-DATE
    :mergeJars SKIPPED
    :applyBinPatches SKIPPED
    :downloadMcpTools SKIPPED
    :extractMcpData UP-TO-DATE
    :genSrgs SKIPPED
    :deobfBinJar SKIPPED
    :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
    Note: C:\Users\Julian\Desktop\Nouveau dossier (2)\build\sources\java\com\mod\tuto\proxy\GuiCustomMainMenu.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 warning
    :processResources
    :classes
    :jar
    :compileTestJava UP-TO-DATE
    :processTestResources UP-TO-DATE
    :testClasses UP-TO-DATE
    :test UP-TO-DATE
    :reobf FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':reobf'.
    > MALFORMED
    
    * 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: 18.289 secs
    
    C:\Users\Julian\Desktop\Nouveau dossier (2)>gradlew build --stackstrace
    ****************************
    Powered By MCP:
    http://modcoderpack.com/
    Searge, ProfMobius, Fesh0r,
    R4wk, ZeuX, IngisKahn, bspkrs
    MCP Data version : unknown
    ****************************
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Problem configuring task :build from command line.
    > Unknown command-line option '--stackstrace'.
    
    * Try:
    Run gradlew help --task :build to get task usage details. 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.881 secs
    
    C:\Users\Julian\Desktop\Nouveau dossier (2)>
    


  • Ah j'ai mis un "s" en trop dsl, c'est "–stacktrace", pas "--stackstrace".



  • je pense que tu a une éreur dans ta class [font=Ubuntu, sans-serifGuiCustomMainMenu.java]



  • Et puis pense à mettre tes logs dans une balise code.

    EDIT = NeykoZzHD, cette erreur :
    Note: C:\Users\Julian\Desktop\Nouveau dossier (2)\build\sources\java\com\mod\tuto\proxy\GuiCustomMainMenu.java uses unchecked or unsafe operations.

    Indique juste qu'il utilise des collections sans spécifier le type, genre List list = new ArrayList(); alors qu'il devrait plutôt procéder ainsi si sa liste doit enregistrer des String, List <string>list = new ArrayList<string>();
    Je pense qu'après ça génère sûrement un Warning dans eclipse, donc il peut ajouter ceci au-dessus de sa variable : @SuppressWarnings("unchecked"), si il souhaite virer le message lors du gradlew build, et au passage le build dans l'IDE =)</string></string>



  • Oui il y a un "Warning" (une erreur qui fait pas planter), mais c'est pas ça le problème.



  • Voila , j'ai enlever le s du stacktrace:

    C:\Users\Julian\Desktop\Nouveau dossier (2)>gradlew build
    ****************************
    Powered By MCP:
    http://modcoderpack.com/
    Searge, ProfMobius, Fesh0r,
    R4wk, ZeuX, IngisKahn, bspkrs
    MCP Data version : unknown
    ****************************
    :downloadClient SKIPPED
    :downloadServer SKIPPED
    :getVersionJson
    :extractUserDev UP-TO-DATE
    :mergeJars SKIPPED
    :applyBinPatches SKIPPED
    :downloadMcpTools SKIPPED
    :extractMcpData UP-TO-DATE
    :genSrgs SKIPPED
    :deobfBinJar SKIPPED
    :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
    Note: C:\Users\Julian\Desktop\Nouveau dossier (2)\build\sources\java\com\mod\tuto\proxy\GuiCustomMainMenu.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 warning
    :processResources
    :classes
    :jar
    :compileTestJava UP-TO-DATE
    :processTestResources UP-TO-DATE
    :testClasses UP-TO-DATE
    :test UP-TO-DATE
    :reobf FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':reobf'.
    > MALFORMED
    
    * 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: 18.289 secs
    
    C:\Users\Julian\Desktop\Nouveau dossier (2)>gradlew build --stackstrace
    ****************************
    Powered By MCP:
    http://modcoderpack.com/
    Searge, ProfMobius, Fesh0r,
    R4wk, ZeuX, IngisKahn, bspkrs
    MCP Data version : unknown
    ****************************
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Problem configuring task :build from command line.
    > Unknown command-line option '--stackstrace'.
    
    * Try:
    Run gradlew help --task :build to get task usage details. 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.881 secs
    
    C:\Users\Julian\Desktop\Nouveau dossier (2)>
    


  • Aymeric t'as demandé de run avec –stacktrace en +. Donc ne te contente pas juste d'un gradlew build, mais fais plutôt gradlew build --stacktrace



  • Excusez moi ^^'

    C:\Users\Julian\Desktop\Nouveau dossier (2)>gradlew build –stacktrace
    ****************************
    Powered By MCP:
    http://modcoderpack.com/
    Searge, ProfMobius, Fesh0r,
    R4wk, ZeuX, IngisKahn, bspkrs
    MCP Data version : unknown
    ****************************
    :downloadClient SKIPPED
    :downloadServer SKIPPED
    :getVersionJson
    :extractUserDev UP-TO-DATE
    :mergeJars SKIPPED
    :applyBinPatches SKIPPED
    :downloadMcpTools SKIPPED
    :extractMcpData UP-TO-DATE
    :genSrgs SKIPPED
    :deobfBinJar SKIPPED
    :compileApiJava UP-TO-DATE
    :processApiResources UP-TO-DATE
    :apiClasses UP-TO-DATE
    :sourceMainJava UP-TO-DATE
    :compileJava UP-TO-DATE
    :processResources UP-TO-DATE
    :classes UP-TO-DATE
    :jar UP-TO-DATE
    :compileTestJava UP-TO-DATE
    :processTestResources UP-TO-DATE
    :testClasses UP-TO-DATE
    :test UP-TO-DATE
    :reobf FAILED
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':reobf'.
    > MALFORMED
    
    * Try:
    Run with --info or --debug option to get more log output.
    
    * Exception is:
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':reobf'.
           at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
           at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
           at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
           at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
           at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
           at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
           at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
           at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
           at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
           at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:296)
           at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
           at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
           at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
           at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)
           at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:86)
           at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29)
           at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
           at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)
           at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:67)
           at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
           at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61)
           at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54)
           at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:148)
           at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:105)
           at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:85)
           at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:81)
           at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33)
           at org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24)
           at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:39)
           at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:29)
           at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50)
           at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:171)
           at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:237)
           at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:210)
           at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
           at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
           at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)
           at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
           at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
           at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
           at org.gradle.launcher.Main.doAction(Main.java:33)
           at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
           at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)
           at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)
           at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
           at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
           at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)
           at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:56)
    Caused by: java.lang.IllegalArgumentException: MALFORMED
           at net.md_5.specialsource.Jar.collectJarFiles(Jar.java:169)
           at net.md_5.specialsource.Jar.init(Jar.java:229)
           at net.md_5.specialsource.Jar.init(Jar.java:206)
           at net.minecraftforge.gradle.tasks.user.reobf.ObfArtifact.applySpecialSource(ObfArtifact.java:387)
           at net.minecraftforge.gradle.tasks.user.reobf.ObfArtifact.generate(ObfArtifact.java:350)
           at net.minecraftforge.gradle.tasks.user.reobf.ReobfTask.doTask(ReobfTask.java:317)
           at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)
           at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218)
           at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211)
           at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)
           at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:570)
           at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:553)
           at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
           at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
           ... 47 more
    
    BUILD FAILED
    
    Total time: 16.491 secs
    
    C:\Users\Julian\Desktop\Nouveau dossier (2)>
    

  • Administrateurs

    MALFORMED = archive mal-formé, en général causé par l'utilisation d'accents dans le nom d'un dossier ou d'un fichier.



  • C:\Users\Julian\Desktop\Nouveau dossier (2)>

    x) Mon dieu on dirait les gens qui n'arrivent pas à télécharger quelque chose et il le télécharge 35 fois et au final ça ne fonctionne pas et leur bureau est plein de leurs téléchargements, "Téléchargement.format (1-35)" 😂

    Non sérieusement programmer dans un dossier appeler comme ceci: Nouveau dossier (2)

    EST TRES FORTEMENT DECONSEILLE,

    En programmation, il faut privilégié l'anglais et la simplicité du monde informatique, c'est-à-dire: pas de caractères spéciaux (espace, accents, parenthèse, nombre et compagnie) Donc créer un nouveau WorkSpace plutôt appelé: "NomDeTonProjetSansEspaceOuParenthèsesEtc"


  • Administrateurs

    Le problème ne vient pas du dossier où se trouve la workspace mais des fichiers du mod. (ceux dans src ou dans resources)


Log in to reply