bazelbuild / intellij

IntelliJ plugin for Bazel projects
https://ij.bazel.build/
Apache License 2.0
763 stars 305 forks source link

How to check IntelliJ project into version control? #3326

Open dhalperi opened 2 years ago

dhalperi commented 2 years ago

For our open source project https://github.com/batfish/batfish, we would like to check in project configuration like shared scopes, run configurations, format settings, required plugins, etc. But I can't figure out how to get this to work.

(Draft: https://github.com/batfish/batfish/compare/master...dhalperi:idea , which also deletes the old Maven .idea project)

Following the IntelliJ instructions for directory-based projects, I checked in the recommended XML and IML files.

However, when we

  1. Open the project in IntelliJ it recognizes .ijwb/.idea (and I trusted it)

    Screen Shot 2022-03-10 at 1 17 18 PM

    but does not turn on Bazel mode

    Screen Shot 2022-03-10 at 1 17 32 PM
  2. Import the project as a new Bazel project, but of course it fails at import

    Screen Shot 2022-03-08 at 12 06 20 PM

I see hints that this is expected to work

Has anyone made this work / what are we missing?

sgowroji commented 2 years ago

Hello @dhalperi, Could you please reply if you still looking support for this issue with new Intellij release. Mostly the issue vanishes by restarting the IDE. Thanks!

dhalperi commented 2 years ago

Hi @sgowroji - the behavior here does not seem to have changed whatsoever.

Can you clone the repo and branch above, and give me step-by-step instructions for what you're doing?

github-actions[bot] commented 10 months ago

Thank you for contributing to the IntelliJ repository! This issue has been marked as stale since it has not had any activity in the last 6 months. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-maintainer". Please reach out to the triage team (@bazelbuild/triage) if you think this issue is still relevant or you are interested in getting the issue resolved.

dhalperi commented 10 months ago

Should be listed as awaiting maintainer

On Thu, Jan 4, 2024 at 17:55 github-actions[bot] @.***> wrote:

Thank you for contributing to the IntelliJ repository! This issue has been marked as stale since it has not had any activity in the last 6 months. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-maintainer". Please reach out to the triage team @.***/triage) if you think this issue is still relevant or you are interested in getting the issue resolved.

— Reply to this email directly, view it on GitHub https://github.com/bazelbuild/intellij/issues/3326#issuecomment-1878004237, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEAQT5A4NGA63D55RRTDBTYM5MPZAVCNFSM5QN2HATKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBXHAYDANBSGM3Q . You are receiving this because you were mentioned.Message ID: @.***>

dhalperi commented 10 months ago

@bazelbuild/triage can you take the needed action if any?

dhalperi commented 8 months ago

Curious if the team has any update here?

github-actions[bot] commented 1 month ago

Thank you for contributing to the IntelliJ repository! This issue has been marked as stale since it has not had any activity in the last 6 months. It will be closed in the next 14 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale.

dhalperi commented 1 month ago

Definitely still needed. Who from the bazelbuild org will be looking at this? The bot being the only commenter is not useful nor a good customer experience.

dhalperi commented 1 month ago

@mai93 do you know how to set this correctly as awaiting the team?

tpasternak commented 1 month ago

@dhalperi I never seen the article from 2019 you shared above and didn't know this is an option at all. I can't promise we will fix that, but you could experiment by checking-in the .ijwb directory, and then using just File -> open -> .ijwb instead of Import bazel project.

Sorry for this answer but my load is too high to try/work on it now