build failed

45 views
Skip to first unread message

Valeria Lucchesi

unread,
Jan 19, 2022, 9:56:22 AM1/19/22
to error-prone-discuss
Hi! 
I'm trying to run some test from UnnecessaryTypeArgumentTest but i'm getting build errors. 
First i cloned the repo and then i did mvn package and everything worked as expected but when i want to run the tests from Intellij i''m getting a lot of errors. For example i got: 
class UnnecessaryLambdaParen is public, should be declared in a file named UnnecessaryLambdaParen.java
i'm using mvn 3.8.2 and Java version: 11.0.2

Do you know what could be happening?
Thanks in advance,

Vale

Liam Miller-Cushon

unread,
Jan 19, 2022, 11:34:38 AM1/19/22
to error-pro...@googlegroups.com
I mainly use IntelliJ to develop Error Prone, and I have exclusions defined for the 'testdata' directories to prevent it from trying to compile them:

$ find . -name '*.iml' | xargs grep testdata
./core/error_prone_core.iml:      <excludeFolder url="file://$MODULE_DIR$/src/test/java/com/google/errorprone/bugpatterns/android/testdata" />
./core/error_prone_core.iml:      <excludeFolder url="file://$MODULE_DIR$/src/test/java/com/google/errorprone/bugpatterns/flogger/testdata" />
./core/error_prone_core.iml:      <excludeFolder url="file://$MODULE_DIR$/src/test/java/com/google/errorprone/bugpatterns/inject/testdata" />
./core/error_prone_core.iml:      <excludeFolder url="file://$MODULE_DIR$/src/test/java/com/google/errorprone/bugpatterns/testdata" />
./core/error_prone_core.iml:      <excludeFolder url="file://$MODULE_DIR$/src/test/java/com/google/errorprone/refaster/testdata" />
./core/error_prone_core.iml:      <excludeFolder url="file://$MODULE_DIR$/src/test/java/com/google/errorprone/suppress/testdata" />

Possibly we should be checking those .iml files into version control so they're shared.

--
Googlers: This an external list. Please be careful when posting.
---
You received this message because you are subscribed to the Google Groups "error-prone-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to error-prone-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/error-prone-discuss/f1f81b31-c4de-4436-b4ec-32ce208147d9n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages