[NvimError: String cannot contain newlines]
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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