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
I got hit by an error opening a file with sign marks
Error detected while processing function <SNR>89_callback_vim_close[9]..<SNR>89_handle_diff[32]..sy#sign#set_signs[20]..sy#sign#process_diff[5]..sy#sign#get_current_signs[4]..sy#util#get_signs:
line 10:
E684: List index out of range: 1
E116: Invalid arguments for function str2nr(tokens[1])
E15: Invalid expression: str2nr(tokens[1])
line 11:
E684: List index out of range: 2
E116: Invalid arguments for function str2nr(tokens[2])
E15: Invalid expression: str2nr(tokens[2])
line 12:
E684: List index out of range: 3
E15: Invalid expression: tokens[3]
line 13:
E684: List index out of range: 4
E116: Invalid arguments for function str2nr(tokens[4])
E15: Invalid expression: str2nr(tokens[4])
line 15:
E121: Undefined variable: line
E116: Invalid arguments for function add
Looks like priority is missing and that's why regex doesn't match.
If I change regex to '\v^\s+\S+\=(\d+)\s+\S+\=(\d+)\s+\S+\=(\w+)(\s+\S+\=(\d+))?$' and bump the index when assigning to priority variable (let priority = str2nr(tokens[5])) it works fine for me, but that's probably not an acceptable fix to the issue.
The text was updated successfully, but these errors were encountered:
jamessan
added a commit
to jamessan/vim-signify
that referenced
this issue
May 8, 2023
I got hit by an error opening a file with sign marks
script 89 is this one:
The issue seems to be with regex passed to
matchlist
here:vim-signify/autoload/sy/util.vim
Line 245 in 6a9499c
When I execute
sign place buffer=n
on a problematic file I getOn different machine that doesn't have this issue the result is different (it's for different file):
Looks like
priority
is missing and that's why regex doesn't match.If I change regex to
'\v^\s+\S+\=(\d+)\s+\S+\=(\d+)\s+\S+\=(\w+)(\s+\S+\=(\d+))?$'
and bump the index when assigning to priority variable (let priority = str2nr(tokens[5])
) it works fine for me, but that's probably not an acceptable fix to the issue.The text was updated successfully, but these errors were encountered: