Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Failure with doxygen 1.8.12 #6

Closed
333fred opened this issue Dec 15, 2016 · 8 comments
Closed

Failure with doxygen 1.8.12 #6

333fred opened this issue Dec 15, 2016 · 8 comments
Milestone

Comments

@333fred
Copy link

333fred commented Dec 15, 2016

I'm seeing doxygen failures with doxygen v1.8.12. It works fine with 1.8.11 and prior. My doxygen config (assume that the file locations are all fine):

    doxygen {
        def halLocation = '../hal'
        source new File("${project.shared}/src")
        source new File("${project.shared}/include")
        source new File("${project.athena}/src")
        source new File("${project.athena}/include")
        source new File("$ntSourceDir/src")
        source new File("$ntSourceDir/include")
        source new File("$halLocation/shared")
        source new File("$halLocation/athena")
        source new File("$halLocation/include")
        // template file('cpp.doxy')
        exclude 'nivision.h'
        extension_mapping 'inc=C++'
        project_name 'WPILibC++'
        javadoc_autobrief true
        recursive true
        quiet true
        warnings false
        warn_if_doc_error false
        warn_no_paramdoc false
        warn_format false
        warn_logfile false
        warn_if_undocumented false
        generate_latex false
        html_timestamp true
        generate_treeview true
        outputDir new File("$buildDir/docs")
    }

My gradle version is 3.2.1.

@ysb33r
Copy link
Owner

ysb33r commented Dec 28, 2016

@333fred what is the actual error you are seeing?

@333fred
Copy link
Author

333fred commented Dec 28, 2016

Here's the relevant part of the output of ./gradlew doxygen --info --stacktrace:

:wpilibc:doxygen (Thread[Daemon worker,5,main]) started.
:wpilibc:doxygen
Putting task artifact state for task ':wpilibc:doxygen' into context took 0.0 secs.
Task :wpilibc:doxygen class loader hash: 407216bdee1cf38df7f595b27025be57
Task :wpilibc:doxygen actions class loader hash: 4b669b4b604d53fb2ea05057c248e335
Executing task ':wpilibc:doxygen' (up-to-date check took 0.016 secs) due to:
  No history is available.
Starting process 'command 'doxygen''. Working directory: /home/fred/tmp/allwpilib/wpilibc Command: doxygen -g /home/fred/tmp/allwpilib/wpilibc/build/tmp/wpilibc.doxyfile
Successfully started process 'command 'doxygen''


Configuration file `/home/fred/tmp/allwpilib/wpilibc/build/tmp/wpilibc.doxyfile' created.

Now edit the configuration file and enter

  doxygen /home/fred/tmp/allwpilib/wpilibc/build/tmp/wpilibc.doxyfile

to generate the documentation for your project

:wpilibc:doxygen FAILED
:wpilibc:doxygen (Thread[Daemon worker,5,main]) completed. Took 0.206 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':wpilibc:doxygen'.
> org.ysb33r.gradle.doxygen.DoxygenException: Doxyfile parsing error /home/fred/tmp/allwpilib/wpilibc/build/tmp/wpilibc.doxyfile:122

* Try:
Run with --debug option to get more log output.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':wpilibc:doxygen'.
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:84)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:55)
        at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:61)
        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
        at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:45)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
        at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:233)
        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:215)
        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:74)
        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:55)
        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:32)
        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:113)
        at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
        at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
        at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
        at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
        at org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:197)
        at org.gradle.internal.Factories$1.create(Factories.java:25)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:53)
        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:194)
        at org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:36)
        at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:118)
        at org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:112)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:63)
        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:112)
        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:98)
        at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:66)
        at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
        at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)
        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
        at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)
        at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)
        at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44)
        at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29)
        at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
        at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
        at org.gradle.util.Swapper.swap(Swapper.java:38)
        at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
        at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
        at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
        at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
        at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:293)
        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
        at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
Caused by: org.gradle.internal.UncheckedException: org.ysb33r.gradle.doxygen.DoxygenException: Doxyfile parsing error /home/fred/tmp/allwpilib/wpilibc/build/tmp/wpilibc.doxyfile:122
        at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:45)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:76)
        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.doExecute(DefaultTaskClassInfoStore.java:141)
        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
        at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:123)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:624)
        at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:607)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:95)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:76)
        ... 69 more
Caused by: org.ysb33r.gradle.doxygen.DoxygenException: Doxyfile parsing error /home/fred/tmp/allwpilib/wpilibc/build/tmp/wpilibc.doxyfile:122
        at org.ysb33r.gradle.doxygen.impl.DoxyfileEditor$_readProperties_closure3.doCall(DoxyfileEditor.groovy:62)
        at org.ysb33r.gradle.doxygen.impl.DoxyfileEditor.readProperties(DoxyfileEditor.groovy:57)
        at org.ysb33r.gradle.doxygen.impl.DoxyfileEditor.this$2$readProperties(DoxyfileEditor.groovy)
        at org.ysb33r.gradle.doxygen.impl.DoxyfileEditor.update(DoxyfileEditor.groovy:33)
        at org.ysb33r.gradle.doxygen.impl.DoxyfileEditor$update.call(Unknown Source)
        at org.ysb33r.gradle.doxygen.Doxygen.editDoxyfile(Doxygen.groovy:256)
        at org.ysb33r.gradle.doxygen.Doxygen.this$6$editDoxyfile(Doxygen.groovy)
        at org.ysb33r.gradle.doxygen.Doxygen.exec(Doxygen.groovy:154)
        at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
        ... 76 more


BUILD FAILED

Total time: 4.398 secs

@ysb33r ysb33r modified the milestone: 0.3 Dec 29, 2016
@ysb33r
Copy link
Owner

ysb33r commented Jan 2, 2017

Caused by: org.gradle.internal.UncheckedException: org.ysb33r.gradle.doxygen.DoxygenException: Doxyfile parsing error /home/fred/tmp/allwpilib/wpilibc/build/tmp/wpilibc.doxyfile:122

@333fred Are there any backslash continuations in your template file? If there are they will cause a failure. (This has been addressed in #5 and will be in the next release).

Maybe you want to gist a copy or the doxyfile after generation. You can find it in ${buildDIr}/tmp/NAME.doxyfile. JUst remember to remove any sensitive information.

@333fred
Copy link
Author

333fred commented Jan 2, 2017

There is no template file. Our doxygen config is in the original post.

@ysb33r
Copy link
Owner

ysb33r commented Jan 2, 2017 via email

ysb33r added a commit that referenced this issue Jan 2, 2017
Unfortunatley this does not reproduce the problem at present, but it can
be due to a number of things already having been fixed for 0.3.
@ysb33r
Copy link
Owner

ysb33r commented Jan 2, 2017

I have added d07e4fb on the gradle30 branch for now, but I cannot reproduce the problem as yet.

It could be that something has already been fixed prior to looking at this issue.

@ysb33r ysb33r modified the milestones: 0.4, 0.3 Jan 2, 2017
@ysb33r
Copy link
Owner

ysb33r commented Jan 2, 2017

I've released 0.3 so long. See if the problem exists in your environment and I can take it from there again.

@333fred
Copy link
Author

333fred commented Jan 2, 2017

It fixes the issue. Thanks so much.

@333fred 333fred closed this as completed Jan 2, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants