[NvimError: String cannot contain newlines]
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 284
- 派生
- 27
- PR 合并指标
- 30 天内没有已合并 PR
描述
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
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 vim_debug/window.py 第 53 行开始,那里分配了输出缓冲区,并通过使用 :dbg 启动调试会话来重现故障。跟踪分配给 self.buffer 的值,并将其与 Neovim buffer API 错误进行比较。当 :dbg 打开输出窗口且不出现“String cannot contain newlines”错误时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- neovim, python
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100