You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 2, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 2, 2026. It is now read-only.
"Folder ... contains more Java files then configured in Bazel" when file is used in a java_library package. #116
I'm getting this error when running the extension on bazel itself:
Folder '/home/yusuke.tsutsumi/workspace/bazel/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/javac' contains more Java files then configured in Bazel. This is a scenario which is challenging to support in IDEs! Consider re-structuring your source code into separate folder hierarchies and Bazel packages.
- javac/JavacOptions.java
- javac/WerrorCustomOption.java
Although I think the error is still correct in that the package structure is difficult for parse properly - it is still a technically correct usage of bazel.
At minimum maybe this should be a warning and not an error?
changed the title [-]Folder ... contains more Java files then configured in Bazel when file is used in a java_library package.[/-][+]"Folder ... contains more Java files then configured in Bazel" when file is used in a java_library package.[/+]on Apr 17, 2024
Activity
[-]Folder ... contains more Java files then configured in Bazel when file is used in a java_library package.[/-][+]"Folder ... contains more Java files then configured in Bazel" when file is used in a java_library package.[/+]guw commentedon Apr 17, 2024
Are you using the
project-per-packagestrategy?toumorokoshi commentedon Apr 17, 2024
I don't believe so - is there a way I can confirm that?
guw commentedon Apr 17, 2024
If you haven't set it then it's defaulting to
project-per-targetand the error is indeed a bug. It should be a warning level in this setup.