You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In fish jira completion functions don't work when Jira token env var is not set:
jira __complete ''
The tool needs a Jira API token to function.
...snip...
Completion debug log:
========= checking if order preservation is required ==========
Starting __jira_perform_completion_once
Starting __jira_perform_completion
args: jira
last arg: ''
Calling JIRA_ACTIVE_HELP=0 jira __complete ''
Comps:
DirectiveLine:
flagPrefix:
No completions, probably due to a failure
Error determining if order preservation is required
========= checking if order preservation is required ==========
Starting __jira_perform_completion_once
Starting __jira_perform_completion
args: jira
last arg: ''
Calling JIRA_ACTIVE_HELP=0 jira __complete ''
Comps:
DirectiveLine:
flagPrefix:
No completions, probably due to a failure
Error determining if order preservation is required
========= starting completion logic ==========
Starting __jira_perform_completion_once
Starting __jira_perform_completion
args: jira
last arg: ''
Calling JIRA_ACTIVE_HELP=0 jira __complete ''
Comps:
DirectiveLine:
flagPrefix:
No completions, probably due to a failure
Completion results:
No completion, probably due to a failure
========= clearing previously set __jira_perform_completion_once_result variable ==========
Successfully erased the variable __jira_perform_completion_once_result
What operating system are you using? Also mention version. NixOS 24.11
What terminal are you using? Also mention version.
Kitty 0.37.0
To Reproduce
Steps to reproduce the behavior:
0. make sure JIRA_API_TOKEN is not set
jira completion fish | source
jira <tab>
list of files appears instead of options
Expected behavior
Completion should imho work even if JIRA_API_TOKEN is set.
Additional context
The problem is likely caused by the test run in the completion code where, at some point jira __completion '' is called in the __jira_perform_completion function (I'm not sure where this code is coming from exactly). Unfortunately the output of the command isn't completion but the "missing token" error above. I believe that __completion and related parts should not be in any way dependent on the application setup.
This also affects other completions (zsh didn't work for me either but bashdid work. Didn't look into the details why yet).
The text was updated successfully, but these errors were encountered:
Describe the bug
In fish
jira
completion functions don't work when Jira token env var is not set:Completion debug log:
Please provide following details
(Version="1.5.2", GitCommit="refs/tags/v1.5.2", CommitDate="1970-01-01T00:00:00+00:00", GoVersion="go1.23.5", Compiler="gc", Platform="linux/amd64")
(ignore CommitDate, it's a NixOS thing)
What operating system are you using? Also mention version.
NixOS 24.11
What terminal are you using? Also mention version.
Kitty 0.37.0
To Reproduce
Steps to reproduce the behavior:
0. make sure
JIRA_API_TOKEN
is not setjira completion fish | source
jira <tab>
Expected behavior
Completion should imho work even if
JIRA_API_TOKEN
is set.Additional context
The problem is likely caused by the test run in the completion code where, at some point
jira __completion ''
is called in the__jira_perform_completion
function (I'm not sure where this code is coming from exactly). Unfortunately the output of the command isn't completion but the "missing token" error above. I believe that__completion
and related parts should not be in any way dependent on the application setup.This also affects other completions (
zsh
didn't work for me either butbash
did work. Didn't look into the details why yet).The text was updated successfully, but these errors were encountered: