Compile failed; see the compiler error output for details. But there's no error output.

Hi All,

Trying to build my project with ant in idea 10 and I get a compile error but I don't see the actual error.

How do I make ANT verbose?

All I see is:

javac
build.xml:303: Compile failed; see the compiler error output for details.
 at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1150)


etc....

My task looks like this:

        <javac includeantruntime="false" destdir="${webapp.classes.dir}" debug="true">
            <src path="${src.dir}"/>
            <classpath refid="project.classpath"/>
        </javac>


tia
0
6 comments

This seems like a bug as I do see the actual error message when I run ANT from the command line.

0
Avatar
Permanently deleted user

Dan, what build of IDEA are you using?
Some problems related to incomplete output from ANT have been fixed just recently

Eugene.

0

IntelliJ 10.5.4 OK I'll retest with 11

0

I am having the same issue with 11.1.2.  It fails but no output.  Is there a secret switch or something?

Lee

        <javac
            destdir="${c2.build.dir}/common-classes"
            source="1.6"
            failonerror="true"
            fork="yes"
            memoryInitialSize="512m"
            memoryMaximumSize="512m"
            classpathref="c2-jarpath"
            debug="true"
            verbose="true">
            <src path="${c2.top}/coreOverrides/src"/>
            <src path="${c2.top}/common/src"/>
            <src path="${c2.top}/plugin/src"/>
        </javac>

0

Dan,
   Are you still seeing this problem with 11?

0

Hi sorry for the delay.

In 11.1.2 I do see compiler errors for SOME types of errors but not others. Even when I do see them they are not links - they appear as plain text.

I'm compiling with 1.6.32.    I don't understand the difference yet. Some errors just show the build.xml line, others show the class but not as a link.

The only work-around is to run ant from the command line.

0

Please sign in to leave a comment.