You can't Import a Bazel Project when using IntelliJ IDEA Remote Development
See original GitHub issueJetBrains has announced a new “Remote Development” mode for IntelliJ IDEA. In this mode, you connect via SSH to a host running a headless copy of IntelliJ.
https://www.jetbrains.com/remote-development/ https://www.jetbrains.com/help/idea/remote-development-a.html https://www.jetbrains.com/help/idea/remote-development-overview.html https://www.jetbrains.com/help/idea/faq-about-remote-development.html
Under this mode of development, you can’t create a new IntelliJ project. The “remote development” connection dialog won’t allow you to submit it without specifying the location of an existing project.
As a result, in order to set up a Bazel project, I had to:
- VNC into my Ubuntu host
- Install a full copy of IntelliJ on the host
- “Import Bazel Project” on the host
- Back on the guest, connect remotely to the host and point to the generated
.ijwbfolder
That’s disappointing, especially since the best practice is not to check in the .ijwb folder, but only check in .bazelproject files and generate .ijwb from those.
At a minimum, https://ij.bazel.build/docs/bazel-plugin.html should be updated to document this painful workaround. Ideally, at some point, it should be possible to “Import Bazel Project” remotely, without VNCing into the host and doing it there.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:12
- Comments:11 (1 by maintainers)
Top Related StackOverflow Question
Another workaround may be to provide some documented way to generate the .ijwb folder from the command line, so at least we can just SSH in and avoid installing the full graphical desktop plus IntellIJ for a one-time setup task.
Perhaps the plugin could be used in the host IDE to generate a copy-pasteable command which can be run manually in the workspace (similar to the remote JVM debug args), just to bootstrap the IntellIJ project config so it can be imported as an existing IJ project rather than a Bazel project.
In that case this issue as well as https://github.com/bazelbuild/intellij/issues/3775 should be closed right?