monogon-dev / monogon

The Monogon Monorepo. May contain traces of peanuts and a ✨pure Go Linux userland✨. Work in progress!
https://monogon.tech
Apache License 2.0
378 stars 9 forks source link

Importing IntelliJ project fails #314

Open leoluk opened 4 months ago

leoluk commented 4 months ago
Command: git diff --name-status --no-renames f191804f361c6766a6eda8f9bf211219e37c13be
Running Bazel info...
Command: bazel info --tool_tag=ijwb:IDEA:ultimate --override_repository=intellij_aspect=/home/leopold/.local/share/JetBrains/IntelliJIdea2024.1/ijwb/aspect --curses=no --color=yes --progress_in_terminal_title=no --
Detected Nix based bazel installation and we are not in a nix-shell, overriding to nix-shell.
IntelliJ found at /home/leopold/.local/share/JetBrains/IntelliJIdea2024.1, aspect repository already patched.
WARNING: Sources found outside BUILD packages: /home/leopold/projects/monogon/.bazeldnf/sandbox/default/root/usr/share/bison/skeletons/lalr1.java
WARNING: Sources found outside BUILD packages: /home/leopold/projects/monogon/bazel-monogon/external/edk2/CryptoPkg/Library/OpensslLib/openssl/pyca-cryptography/docs/development/custom-vectors/rsa-oaep-sha2/VerifyRSAOAEPSHA2.java
[...]
WARNING: Sources found outside BUILD packages: /home/leopold/projects/monogon/.bazeldnf/sandbox/default/root/usr/share/bison/skeletons/lalr1.java
Command: bazel query --tool_tag=ijwb:IDEA:ultimate --override_repository=intellij_aspect=/home/leopold/.local/share/JetBrains/IntelliJIdea2024.1/ijwb/aspect --output=streamed_proto --relative_locations=true --keep_going "(///...:* - //bazel-monogon/...:*)" --
Detected Nix based bazel installation and we are not in a nix-shell, overriding to nix-shell.
IntelliJ found at /home/leopold/.local/share/JetBrains/IntelliJIdea2024.1, aspect repository already patched.
INFO: Options provided by the client:
  Inherited 'common' options: --isatty=0 --terminal_columns=80
INFO: Reading rc options for 'query' from /home/leopold/projects/monogon/third_party/bazelrc/aspect/convenience.bazelrc:
  Inherited 'common' options: --enable_platform_specific_config --heap_dump_on_oom
INFO: Reading rc options for 'query' from /home/leopold/projects/monogon/third_party/bazelrc/aspect/correctness.bazelrc:
  Inherited 'common' options: --incompatible_disallow_empty_glob
INFO: Reading rc options for 'query' from /home/leopold/projects/monogon/.bazelrc:
  Inherited 'common' options: --lockfile_mode=error --noincompatible_disallow_empty_glob
INFO: Reading rc options for 'query' from /home/leopold/projects/monogon/third_party/bazelrc/aspect/bazel7.bazelrc:
  'query' options: --noexperimental_check_external_repository_files
INFO: Reading rc options for 'query' from /home/leopold/projects/monogon/third_party/bazelrc/aspect/correctness.bazelrc:
  'query' options: --experimental_allow_tags_propagation
ERROR: - :: Invalid options syntax: -
Build command failed with 2.
Command: bazel query --tool_tag=ijwb:IDEA:ultimate --override_repository=intellij_aspect=/home/leopold/.local/share/JetBrains/IntelliJIdea2024.1/ijwb/aspect --output=streamed_proto --relative_locations=true --keep_going (///...:* - //bazel-monogon/...:*) --
q3k commented 3 months ago

--keep_going "(///...:* - //bazel-monogon/...:*)" -- seems to get converted to --keep_going (///...:* - //bazel-monogon/...:*) -- (mind the quotes) which is probably part of the issue?

q3k commented 3 months ago

@leoluk Could you post the version of IntelliJ and the Bazel plugin you're using?

leoluk commented 3 months ago

IntelliJ 2024.1.3 (current ws/ head), plugin release 2024.07.02.0.1-api-version-241. Basically, whatever our company workstation gives you by default.