-
Notifications
You must be signed in to change notification settings - Fork 36
Check for query_file when running queries #814
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
Conversation
IntelliJ IDE uses a query with no arguments which seems to cause havoc when this is run via aspect. I added support to check for `--tool_tag` and not prompt the user for a query selection to better handle this usecase. fixes aspect-build#813
|
feedback from @alexeagle that its from query_file not tool_tag
@alexeagle changed to |
thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, @jbedard can sync this into our internal monorepo which is the SoT
Nice! |
Synced from #814 by fzakaria: IntelliJ IDE uses a query with no arguments which seems to cause havoc when this is run via aspect. I added support to check for `--tool_tag` and not prompt the user for a query selection to better handle this usecase. Fixes #813 ### Changes are visible to end-users: yes - Searched for relevant documentation and updated as needed: yes - Breaking change (forces users to change their own code or config): no - Suggested release notes appear below: yes Support running queries via `--query_file` ### Test plan ``` > /Users/fzakaria/code/github.com/aspect-build/aspect-cli/bazel-bin/cmd/aspect/aspect_/aspect query --tool_tag=ijwb:IDEA:ultimate "--override_repository=intellij_aspect=/Users/fzakaria/Library/Application Support/JetBrains/IntelliJIdea2024.1/plugins/ijwb/aspect" --override_repository=intellij_aspect_template=/Users/fzakaria/code/github.com/confluentinc/ce-kafka/.ijwb/aspect --output=label_kind --keep_going --query_file=/Users/fzakaria/code/github.com/confluentinc/ce-kafka/.ijwb/queries/query-13438905584701813446 > echo $? 2 ``` Closes #814 Co-authored-by: Farid Zakaria <fzakaria@confluent.io> GitOrigin-RevId: bf38a5b5e7d9ace6eb7d7719887cde69fc125783
Synced from #814 by fzakaria: IntelliJ IDE uses a query with no arguments which seems to cause havoc when this is run via aspect. I added support to check for `--tool_tag` and not prompt the user for a query selection to better handle this usecase. Fixes #813 ### Changes are visible to end-users: yes - Searched for relevant documentation and updated as needed: yes - Breaking change (forces users to change their own code or config): no - Suggested release notes appear below: yes Support running queries via `--query_file` ### Test plan ``` > /Users/fzakaria/code/github.com/aspect-build/aspect-cli/bazel-bin/cmd/aspect/aspect_/aspect query --tool_tag=ijwb:IDEA:ultimate "--override_repository=intellij_aspect=/Users/fzakaria/Library/Application Support/JetBrains/IntelliJIdea2024.1/plugins/ijwb/aspect" --override_repository=intellij_aspect_template=/Users/fzakaria/code/github.com/confluentinc/ce-kafka/.ijwb/aspect --output=label_kind --keep_going --query_file=/Users/fzakaria/code/github.com/confluentinc/ce-kafka/.ijwb/queries/query-13438905584701813446 > echo $? 2 ``` Closes #814 Co-authored-by: Farid Zakaria <fzakaria@confluent.io> GitOrigin-RevId: bf38a5b5e7d9ace6eb7d7719887cde69fc125783
Synced from #814 by fzakaria: IntelliJ IDE uses a query with no arguments which seems to cause havoc when this is run via aspect. I added support to check for `--tool_tag` and not prompt the user for a query selection to better handle this usecase. Fixes #813 ### Changes are visible to end-users: yes - Searched for relevant documentation and updated as needed: yes - Breaking change (forces users to change their own code or config): no - Suggested release notes appear below: yes Support running queries via `--query_file` ### Test plan ``` > /Users/fzakaria/code/github.com/aspect-build/aspect-cli/bazel-bin/cmd/aspect/aspect_/aspect query --tool_tag=ijwb:IDEA:ultimate "--override_repository=intellij_aspect=/Users/fzakaria/Library/Application Support/JetBrains/IntelliJIdea2024.1/plugins/ijwb/aspect" --override_repository=intellij_aspect_template=/Users/fzakaria/code/github.com/confluentinc/ce-kafka/.ijwb/aspect --output=label_kind --keep_going --query_file=/Users/fzakaria/code/github.com/confluentinc/ce-kafka/.ijwb/queries/query-13438905584701813446 > echo $? 2 ``` Closes #814 Co-authored-by: Farid Zakaria <fzakaria@confluent.io> GitOrigin-RevId: bf38a5b5e7d9ace6eb7d7719887cde69fc125783
Synced from #814 by fzakaria: IntelliJ IDE uses a query with no arguments which seems to cause havoc when this is run via aspect. I added support to check for `--tool_tag` and not prompt the user for a query selection to better handle this usecase. Fixes #813 ### Changes are visible to end-users: yes - Searched for relevant documentation and updated as needed: yes - Breaking change (forces users to change their own code or config): no - Suggested release notes appear below: yes Support running queries via `--query_file` ### Test plan ``` > /Users/fzakaria/code/github.com/aspect-build/aspect-cli/bazel-bin/cmd/aspect/aspect_/aspect query --tool_tag=ijwb:IDEA:ultimate "--override_repository=intellij_aspect=/Users/fzakaria/Library/Application Support/JetBrains/IntelliJIdea2024.1/plugins/ijwb/aspect" --override_repository=intellij_aspect_template=/Users/fzakaria/code/github.com/confluentinc/ce-kafka/.ijwb/aspect --output=label_kind --keep_going --query_file=/Users/fzakaria/code/github.com/confluentinc/ce-kafka/.ijwb/queries/query-13438905584701813446 > echo $? 2 ``` Closes #814 Co-authored-by: Farid Zakaria <fzakaria@confluent.io> GitOrigin-RevId: bf38a5b5e7d9ace6eb7d7719887cde69fc125783
IntelliJ IDE uses a query with no arguments which seems to cause havoc when this is run via aspect.
I added support to check for
--tool_tag
and not prompt the user for a query selection to better handle this usecase.fixes #813
Test plan