jaredly / jaredly/vim-debug

[NvimError: String cannot contain newlines]

Open
#37 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
284
Forks
27
PR merge metrics
No merged PRs in 30d

Description

When I start debugging with :dbg, an error occurred. Following is the detail:
Error detected while processing function provider#python#Call:
line 18:
Traceback (most recent call last):

File "", line 1, in

File "/Users/ke/.local/share/nvim/plugged/vim-debug/vim_debug/commands.py", line 19, in debugger_cmd
return start(*shlex.split(plain))

File "/Users/ke/.local/share/nvim/plugged/vim-debug/vim_debug/commands.py", line 88, in start
debugger.start_py(fname)

File "/Users/ke/.local/share/nvim/plugged/vim-debug/vim_debug/new_debugger.py", line 114, in start_py
return self.start()

File "/Users/ke/.local/share/nvim/plugged/vim-debug/vim_debug/new_debugger.py", line 144, in start
self.ui.startup()

File "/Users/ke/.local/share/nvim/plugged/vim-debug/vim_debug/ui.py", line 47, in startup
self.create()

File "/Users/ke/.local/share/nvim/plugged/vim-debug/vim_debug/ui.py", line 84, in create
self.windows['output'].create('vertical belowright new')

File "/Users/ke/.local/share/nvim/plugged/vim-debug/vim_debug/window.py", line 53, in create
self.buffer[:] = [self.dtext]

File "/Users/ke/Library/Python/2.7/lib/python/site-packages/neovim/api/buffer.py", line 65, in __setitem__
return self.request('nvim_buf_set_lines', start, end, False, lines)

File "/Users/ke/Library/Python/2.7/lib/python/site-packages/neovim/api/common.py", line 44, in request
return self._session.request(name, self, *args, **kwargs)

File "/Users/ke/Library/Python/2.7/lib/python/site-packages/neovim/api/nvim.py", line 170, in request
res = self._session.request(name, *args, **kwargs)

File "/Users/ke/Library/Python/2.7/lib/python/site-packages/neovim/msgpack_rpc/session.py", line 100, in request
raise self.error_wrapper(err)

NvimError: String cannot contain newlines

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with vim_debug/window.py at line 53, where the output buffer is assigned, and reproduce the failure by starting a debugging session with :dbg. Trace the value assigned to self.buffer and compare it with the Neovim buffer API error. Done means :dbg opens the output window without the “String cannot contain newlines” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
neovim, python
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.