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

Error detected while processing function pandoc#command#Pandoc[4]..provider#python3#Call: #360

Closed
daviewales opened this issue Jan 30, 2020 · 2 comments
Assignees
Labels

Comments

@daviewales
Copy link

After updating vim-pandoc today (after not updating for perhaps six months), I encounter the following error, every time I run :Pandoc

Error detected while processing function pandoc#command#Pandoc[4]..provider#python3#Call:
line   18:
Error invoking 'python_execute' on channel 3 (python3-script-host):
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/dwales/.vim/vim_plug/vim-pandoc/python3/vim_pandoc/command.py", line 141, in __call__
    self.execute(should_open)
  File "/Users/dwales/.vim/vim_plug/vim-pandoc/python3/vim_pandoc/command.py", line 168, in execute
    vim.command("put='Running pandoc...\n'")
  File "/usr/local/lib/python3.7/site-packages/pynvim/api/nvim.py", line 287, in command
    return self.request('nvim_command', string, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pynvim/api/nvim.py", line 182, in request
    res = self._session.request(name, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pynvim/msgpack_rpc/session.py", line 104, in request
    raise self.error_wrapper(err)
pynvim.api.common.NvimError: Vim(put):E115: Missing quote: 'Running pandoc...

Pressing 'Enter' at this point yields the following error:

Error detected while processing function pandoc#command#JobHandler:
line    7:
E94: No matching buffer for pandoc-execute

This also occurs when running :Pandoc pdf and :Pandoc html.

@alerque alerque added the bug label Jan 31, 2020
@alerque alerque self-assigned this Jan 31, 2020
@alerque
Copy link
Member

alerque commented Jan 31, 2020

My apologies for the inconvenience @daviewales, I caused this regression by testing a PR is a weird environment that didn't trigger this. It plainly didn't work in the most basic configuration. I think I've fixed that now, if you update again you should be good to go again.

@daviewales
Copy link
Author

Thanks! It works!

Marfisc added a commit to Marfisc/vim-pandoc that referenced this issue Sep 5, 2020
`:put` does not accept a window number as count, but a line.
The newline character produced an error instead of inserting text into a
random buffer.

Related to issue vim-pandoc#360
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants