Skip to content
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

Project Status API integration with bazel for CLion #6585

Merged
merged 1 commit into from
Aug 5, 2024

Conversation

TomatorCZ
Copy link
Contributor

@TomatorCZ TomatorCZ commented Jul 22, 2024

Description of this change

Currently(>=242), CLion shows dedicated widget/yellow banner for all collected problems regarding project settings and offers their fixes in a fix menu. Since the plugin already has a project notification which allows to import bazel project (See BazelCNotificationProvider), we want to use the API to stay align with CLion UX. The following changes were made:

  1. Moving BazelCNotificationProvider to clwb/sdkcompat
  2. Modifying BazelCNotificationProvider to use Project Status API in clwb/sdkcompat/v242
  3. Moving CMakeNotificationFilter to clwb/sdkcompat
  4. Disabling default BazelNotificationProvider for CLion

@github-actions github-actions bot added product: CLion CLion plugin product: IntelliJ IntelliJ plugin product: GoLand GoLand plugin awaiting-review Awaiting review from Bazel team on PRs labels Jul 22, 2024
@LeFrosch
Copy link
Collaborator

Other than that, looks good to me and seems to be working as expected.

@ujohnny ujohnny self-requested a review July 22, 2024 18:31
Copy link
Collaborator

@ujohnny ujohnny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's move CMakeNotificationFilter to sdkcompat

clwb/sdkcompat/BUILD Outdated Show resolved Hide resolved
@ujohnny
Copy link
Collaborator

ujohnny commented Jul 24, 2024

@TomatorCZ could you please update the PR title and description to make it more detailed regarding the scope of the change?

Copy link
Collaborator

@ujohnny ujohnny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also rebase once #6500 is merged

@TomatorCZ TomatorCZ changed the title Use PSW API in bazel for CLion Project Status Widget API integration with bazel for CLion Jul 29, 2024
@TomatorCZ TomatorCZ changed the title Project Status Widget API integration with bazel for CLion Project Status API integration with bazel for CLion Jul 29, 2024
Copy link
Collaborator

@LeFrosch LeFrosch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Tested it with 241 and 242.

Comment on lines +25 to +28
/**
* Provide notification for C-family files temporarily until moving to new CLion project status
* api.
*/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can drop this comment, no longer temporarily.

@LeFrosch LeFrosch merged commit 0ea607f into bazelbuild:master Aug 5, 2024
6 checks passed
@github-actions github-actions bot removed the awaiting-review Awaiting review from Bazel team on PRs label Aug 5, 2024
kitbuilder587 added a commit to kitbuilder587/intellij that referenced this pull request Aug 15, 2024
Project Status API integration with bazel for CLion (bazelbuild#6585)

Integration with the new Project Status Widget that is added in CLion 242.

Implement py imports handling (bazelbuild#6606)

Some `py_...` rules allow for an `imports` attribute. The attribute
allows control over how the Python files are vended in terms of
modules. This change will mean that the use of the `imports`
attribute in Bazel targets is reflected in how the modules are
auto-completed and recognized in the IDE.

Update CompileCorrespondingBuildFilesAction.java

button name change

Update CompileCorrespondingBuildFilesAction.java

Added build folder action

Update BlazeBuildService.java

review remarks fix
tpasternak pushed a commit that referenced this pull request Aug 16, 2024
* Added build folder action

You can't build folder, you can only sync it. Building could be much faster. For example in our project sync of entire folder takes x2 time more than build. I've already added this feature to my local Bazel plugin. I've added button to compile directory below the partial sync. It would be great if we can contribute it

* Update CompileCorrespondingBuildFilesAction.java

* Update CompileCorrespondingBuildFilesAction.java

* button name change

* Update CompileCorrespondingBuildFilesAction.java

* Added build folder action

* Update BlazeBuildService.java

* review remarks fix

* Update CompileCorrespondingBuildFilesAction.java

Project Status API integration with bazel for CLion (#6585)

Integration with the new Project Status Widget that is added in CLion 242.

Implement py imports handling (#6606)

Some `py_...` rules allow for an `imports` attribute. The attribute
allows control over how the Python files are vended in terms of
modules. This change will mean that the use of the `imports`
attribute in Bazel targets is reflected in how the modules are
auto-completed and recognized in the IDE.

Update CompileCorrespondingBuildFilesAction.java

button name change

Update CompileCorrespondingBuildFilesAction.java

Added build folder action

Update BlazeBuildService.java

review remarks fix

* SERIAL_NOT_EXPAND deleted

* Update BlazeBuildTargetSharder.java

* serial not expand

* revert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product: CLion CLion plugin product: GoLand GoLand plugin product: IntelliJ IntelliJ plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants