-
Notifications
You must be signed in to change notification settings - Fork 12
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
VIRA-252: ViraReport throws unhandled exception when issue not found #52
Comments
I think you did this one just to |
I do already have a function in I believe I even started to adjust this error message preemptively for out async tasks and then this cam up. It may not be the same on Sadly display is done but that was the only truly easy part. |
Current Idea:
|
function! vira#_select() "{{{2
let current_pos = getpos('.')
let value = vira#_getter()
if expand('%:t') == 'vira_report'
let issueTest = substitute(substitute(value,'(','','g'),')','','g')
let issueTest = substitute(substitute(issueTest,'[','','g'),']','','g')
let issueTest = substitute(substitute(issueTest,'{','','g'),'}','','g')
let issueTest = substitute(issueTest,'│','','g')
silent! if execute('python3 Vira.api.jira.search_issues("issue = ' . issueTest . '")') == ''
let g:vira_active_issue = issueTest
call vira#_menu('report')
else
call vira#_browse(expand('<cWORD>'))
endif
else
call vira#_filter_load()
if s:vira_highlight != '' && stridx(s:vira_highlight, '|' . value . '|') < 0
if s:vira_menu_type == 'assign_issue' || s:vira_menu_type == 'epic' || s:vira_menu_type == 'issuetype' || s:vira_menu_type == 'set_status' || s:vira_menu_type == 'priority' || s:vira_menu_type == 'epic' || s:vira_menu_type == 'issues' || s:vira_menu_type == 'servers'
let s:vira_highlight = '|' . value . '|'
else | let s:vira_highlight = s:vira_highlight . value . '|' | endif
elseif s:vira_highlight == ''
let s:vira_highlight = '|' . value . '|'
endif
call vira#_highlight()
call setpos('.', current_pos)
endif
endfunction |
Pretty sure I will need to start with that |
A note for myself and some feedback. Multiple servers may be possible to check. Start with the one you are in then go down the list. Then fail. The db has a note for this already in my private notes as we will be able to find where that issue is without changing servers. |
branch dev
steps to repro
if the JIRA ABC-1234 is not found in your server, it print a stacktrace to the current buffer.
It should just return an error message at the bottom.
The text was updated successfully, but these errors were encountered: