Saturday, September 24, 2022

Re: Errors when running "ant test"

I found out what the problem was. There were a few small diffs compared to the master/main branch, and those provoked severity="error" issues in the checkstyle run. I was confused by various other "error" items that also occur on the master/main branch, but issues only seem to let the build fail if the severity is "error" (which it isn't for any of the "error" items on the master/main branch).

On Wednesday, September 21, 2022 at 1:07:13 PM UTC+2 Axel wrote:
I'm trying to build GWT locally from sources (c32238861c4d58bc559d303ab44f91ddd4e10685). https://www.gwtproject.org/makinggwtbetter.html#testing suggests to run "ant" and "ant test". When I do, I'm seeing error messages in the XML file produced, such as

<file name="/usr/local/src/gwt/trunk/user/super/com/google/gwt/emul/java/util/concurrent/TimeUnit.java">
<error line="21" column="35" severity="warning" message="&apos;{&apos; should have line break after." source="com.puppycrawl.tools.checkstyle.checks.blocks.LeftCurlyCheck"/>

or

<file name="/usr/local/src/gwt/trunk/user/super/com/google/gwt/emul/java/util/function/BinaryOperator.java">
<error line="20" severity="warning" message="Import statement is in the wrong order. Should be in the &apos;STATIC&apos; group." source="com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck"/>

or

<file name="/usr/local/src/gwt/trunk/user/super/com/google/gwt/emul/java/util/logging/Logger.java">
<error line="334" severity="warning" message="Line is longer than 100 characters (found 105)." source="com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck"/>

The ant command then fails as follows:

checkstyle-source:
[checkstyle] Running Checkstyle 6.0 on 6159 files

BUILD FAILED
/usr/local/src/gwt/trunk/build.xml:119: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/build.xml:27: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/build.xml:70: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/user/build.xml:209: The following error occurred while executing this line:
/usr/local/src/gwt/trunk/common.ant.xml:361: Checkstyle errors exist, and are reported at /usr/local/src/gwt/trunk/build/out/user/checkstyle_log.xml

Is this to be expected, or did I make some mistake during cloning or building? I haven't modified those files in which style errors are flagged.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/c3907929-cfbb-48f8-b4e2-c07a45bbff69n%40googlegroups.com.

No comments:

Post a Comment