Importing an existing repository shows no relevant files
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.
- Clone https://github.com/aspect-build/aspect-cli.
- File -> Open...
- 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
@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.
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?
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:
- Using the wizard (File -> Import Bazel Project).
- 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.
I assume this is resolved as of #6596, @tpasternak wdyt?
Yeah, I think so
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