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

Importing an existing repository shows no relevant files #6423

Open
jfirebaugh opened this issue May 7, 2024 · 6 comments
Open

Importing an existing repository shows no relevant files #6423

jfirebaugh opened this issue May 7, 2024 · 6 comments
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: IntelliJ IntelliJ plugin

Comments

@jfirebaugh
Copy link

Description of the issue. Please be specific.

I tried to open https://github.com/aspect-build/aspect-cli. The project doesn't show any of the files in this repository.

What's the simplest set of steps to reproduce this issue? Please provide an example project, if possible.

  1. Clone https://github.com/aspect-build/aspect-cli.
  2. File -> Open...
  3. Select the aspect-cli directory

Expected result:
Project view shows all of the files in the directory.

Actual result:
Project view shows only the .ijwb directory, nothing else.

Version information

IdeaUltimate: 2024.1
Platform: Mac OS X 14.4.1
Bazel for IntelliJ plugin: 2024.03.26.0.1-api-version-241
Bazel: 7.0.2

@satyanandak satyanandak added product: IntelliJ IntelliJ plugin awaiting-maintainer Awaiting review from Bazel team on issues labels May 8, 2024
@tpasternak
Copy link
Contributor

@jfirebaugh When you import the project with the "Open" button, by default you end up with an empty import. Please edit the projectview file and sync.

@jfirebaugh
Copy link
Author

That's a pretty confusing behavior... I think the average user, like me, is just going to think the plugin is broken. Could the default be to include everything, instead of excluding everything? Or could the "Open" button just use the default IntelliJ behavior for generating a project?

@tpasternak
Copy link
Contributor

tpasternak commented May 10, 2024

Excluding everything is a safer option. Many Bazel projects are so large that it's not even possible to import them in their entirety. Moreover, importing an empty project happens instantly, allowing users to immediately start populating the project view file after opening. I recommend:

  1. Using the wizard (File -> Import Bazel Project).
  2. Committing the default project view file to this exact path in your repository: tools/intellij/.managed.bazelproject.

We are also open to suggestions on how to make this process more explicit and user-friendly.

@mai93 mai93 assigned tpasternak and unassigned mai93 May 21, 2024
@ujohnny
Copy link
Collaborator

ujohnny commented Oct 18, 2024

I assume this is resolved as of #6596, @tpasternak wdyt?

@tpasternak
Copy link
Contributor

Yeah, I think so

@Krechals
Copy link

I'm still experiencing the issue in:

IdeaUltimate: 2024.3.1
Platform: Ubuntu 20.04
Bazel for IntelliJ plugin: v2024.11.19-rc-1
Bazel: 6.5

@mai93 mai93 reopened this Jan 13, 2025
@mai93 mai93 assigned ujohnny and LeFrosch and unassigned tpasternak Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: IntelliJ IntelliJ plugin
Projects
None yet
Development

No branches or pull requests

8 participants