Skip to content
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

Add support for Vim9 script code coverage #102

Open
yegappan opened this issue Jan 22, 2022 · 1 comment
Open

Add support for Vim9 script code coverage #102

yegappan opened this issue Jan 22, 2022 · 1 comment

Comments

@yegappan
Copy link

I am trying to use covimerage to collect the code coverage information for the Vim9 LSP plugin.
Currently the script fails: https://github.com/yegappan/lsp/runs/4907890136?check_suite_focus=true.
Can covimerage be enhanced to support Vim9 scripts?

@blueyed
Copy link
Member

blueyed commented Jan 23, 2022

I haven't tested it myself, but apparently it needs adjustments, and/or shows incompatibilities with Vim's profiling output that is used.

Some output from your CI job:

Script line does not match function line, ignoring: '  return lnums->sort((a, b) => a - b)' != 'return v->str2nr()'.
Script line does not match function line, ignoring: 'enddef' != 'return a - b'.
Script line does not match function line, ignoring: '      autocmd CursorMoved <buffer> call lsp#docHighlightClear()' != '      autocmd CursorMoved <buffer> call lsp#docHighlightClear() | call lsp#docHighlight()'.
Script line does not match function line, ignoring: '  return lnums->sort((a, b) => a - b)' != 'return v->str2nr()'.
Script line does not match function line, ignoring: 'enddef' != 'return a - b'.
Script line does not match function line, ignoring: '      autocmd CursorMoved <buffer> call lsp#docHighlightClear()' != '      autocmd CursorMoved <buffer> call lsp#docHighlightClear() | call lsp#docHighlight()'.
Script line does not match function line, ignoring: 'enddef' != 'return a - b'.
Script line does not match function line, ignoring: '  return lnums->sort((a, b) => a - b)' != 'return v->str2nr()'.
Script line does not match function line, ignoring: 'enddef' != 'return a - b'.
Script line does not match function line, ignoring: '  return lnums->sort((a, b) => a - b)' != 'return v->str2nr()'.
Script line does not match function line, ignoring: 'enddef' != 'return a - b'.
Script line does not match function line, ignoring: '      autocmd CursorMoved <buffer> call lsp#docHighlightClear()' != '      autocmd CursorMoved <buffer> call lsp#docHighlightClear() | call lsp#docHighlight()'.
Script line does not match function line, ignoring: 'enddef' != 'return a - b'.
Script line does not match function line, ignoring: '      autocmd CursorMoved <buffer> call lsp#docHighlightClear()' != '      autocmd CursorMoved <buffer> call lsp#docHighlightClear() | call lsp#docHighlight()'.
Script line does not match function line, ignoring: '  return lnums->sort((a, b) => a - b)' != 'return v->str2nr()'.
Script line does not match function line, ignoring: 'enddef' != 'return a - b'.
Script line does not match function line, ignoring: '      autocmd CursorMoved <buffer> call lsp#docHighlightClear()' != '      autocmd CursorMoved <buffer> call lsp#docHighlightClear() | call lsp#docHighlight()'.
Script line does not match function line, ignoring: '  return lnums->sort((a, b) => a - b)' != 'return v->str2nr()'.
Script line does not match function line, ignoring: 'enddef' != 'return a - b'.
Could not find source for function: <SNR>14_processInitializeReply
Could not find source for function: <lambda>1
Could not find source for function: <lambda>2
Writing coverage file .coverage_covimerage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants