-
Notifications
You must be signed in to change notification settings - Fork 1
Bazel Eclipse doesn't recognize filegroup #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| if ((segments.length > (i + 1)) && "resources".equals(segments[i + 1])) { | ||
| path = path.append(segments[i + 1]); | ||
| } | ||
| return path; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change seems unrelated to filegroup support. Please remove it. The java/resources structure is something that we did not intend to support automatically because it's uncommon and IntelliJ does not support it either. We should change the examples instead to not use this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The java/resources structure is something that we did not intend to support automatically because it's uncommon and IntelliJ does not support it either. We should change the examples instead to not use this.
I have tested the project that you created - module1/BUILD
The large contains 241 the java/resources folders.
This change seems unrelated to filegroup support. Please remove it.
If I remove that change the resources source folder in https://github.com/salesforce/bazel-ls-demo-project/blob/40a1357b6f0816fb46780710aa742b088e66b6fc/small/module1/BUILD#L8 won't be added. Bazel Eclipse shows the following error:
"Cannot nest 'module1/java/src' inside 'module1/java'. To enable the nesting exclude 'src/' from 'module1/java'"
I have removed the change and updated the small project - small
| return toJavaSourceFileOrLabelEntry(src); | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of supporting filegroup within the same package. This should be doable. But we need to make it proper and figure out a way to add all possible sources that way. Just one might not be sufficient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have any example of such a source?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When the filegroup is a glob matching to multiple .java files. Bazel should give multiple entries as input in response.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
94bf2bb to
0384f0c
Compare
|
@guw I have updated the PR. |
Fixes #14
cc @guw