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
This is some text @examplecitation2021. This is more text (text in parenthesis).
Then I get the following error when using omnicompletion within the parrenthesis:
Error detected while processing function CompleteR[20]..RmdNonRCompletion[25]..pandoc#completion#Complete[12]..pandoc#bibliographies#GetSuggestions[2]..provider#python3#Call:
line 18:
Error invoking 'python_eval' on channel 3 (python3-script-host):
error caught in request handler 'python_eval ['vim_pandoc.bib.vim_completer.VimCompleter().get_suggestions(vim.eval("a:partkey"))']':
Traceback (most recent call last):
File "/home/cmd/.local/lib/python3.9/site-packages/pynvim/plugin/script_host.py", line 167, in python_eval
return eval(expr, self.module.__dict__)
File "<string>", line 1, in <module>
File "/home/cmd/.vim/plugged/vim-pandoc/python3/vim_pandoc/bib/vim_completer.py", line 53, in get_suggestions
return collator.collate()
File "/home/cmd/.vim/plugged/vim-pandoc/python3/vim_pandoc/bib/fallback.py", line 161, in collate
ids = get_bibtex_suggestions(text, self.query)
File "/home/cmd/.vim/plugged/vim-pandoc/python3/vim_pandoc/bib/fallback.py", line 44, in get_bibtex_suggestions
bibtex_id_search = re.compile(".*{\s*(?P<id>" + query + ".*),")
File "/usr/lib/python3.9/re.py", line 252, in compile
return _compile(pattern, flags)
File "/usr/lib/python3.9/re.py", line 304, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python3.9/sre_compile.py", line 764, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib/python3.9/sre_parse.py", line 948, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
File "/usr/lib/python3.9/sre_parse.py", line 443, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "/usr/lib/python3.9/sre_parse.py", line 836, in _parse
raise source.error("missing ), unterminated subpattern",
re.error: missing ), unterminated subpattern at position 6
Note that this only happens if there is a citation key on the same line. If a line looks like this, instead:
This is some text without a citation. This is more text (text in parenthesis).
Then autocompletion within the parenthesis works fine.
I'm using Neovim nightly (with Nvim-R to edit RMarkdown files):
If a line looks like this:
Then I get the following error when using omnicompletion within the parrenthesis:
Note that this only happens if there is a citation key on the same line. If a line looks like this, instead:
Then autocompletion within the parenthesis works fine.
I'm using Neovim nightly (with Nvim-R to edit RMarkdown files):
The text was updated successfully, but these errors were encountered: