-
Notifications
You must be signed in to change notification settings - Fork 305
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
Do not suggest to add .ijwb
and others to project view.
#5168
Do not suggest to add .ijwb
and others to project view.
#5168
Conversation
if (alreadyBuilt && inProjectDirectories) { | ||
// We do not want to add `/.ijwb` to the project view since it has no BUILD files | ||
// This helps to avoid `ERROR: Skipping '//.ijwb/...:all': no targets found beneath '.ijwb'` | ||
if (context.file.getPath().contains(String.format("/%s/", BlazeDataStorage.PROJECT_DATA_SUBDIRECTORY)) |
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.
We could use BlazeDataStorage.getAllProjectSubdirectories()
to account for .clwb
and .aswb
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.
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.
It does, but it will only exclude the one in the IDE you're using. Say someone has some Java and some C++ in the project. They may have to open both with IntelliJ and CLion at the same time, so we have to ignore all of them from every IDE.
I have opened a PR to this PR updating the code to expose an ALL_PROJECT_SUBDIRECTORIES
constant. Feel free to review it and merge it if useful: dkashyn-sfdc#1
@blorente could you please help with the review? |
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.
Thanks for the reply! I've left a follow-up comment.
fix(base): Add ignore for other jetbrains directories on bazel sync
@blorente updated according to your recommendations, could you please check? |
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.
Thanks for the changes! LGTM.
Checklist
Please note that the maintainers will not be reviewing this change until all checkboxes are ticked. See
the Contributions section in the README for more
details.
Discussion thread for this change
The following suggestion doesn't make much sense
since it results in
Issue number:
<please reference the issue number or url here>
Description of this change
Condition added to not render the suggestion to add a file to the project if the file is located somewhere in
.ijwb
or in a similar folder for other products.