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

编辑 /etc/shadowsocks/local.json 出错 #361

Closed
2 of 6 tasks
yangxuanx opened this issue Sep 18, 2019 · 2 comments
Closed
2 of 6 tasks

编辑 /etc/shadowsocks/local.json 出错 #361

yangxuanx opened this issue Sep 18, 2019 · 2 comments
Labels

Comments

@yangxuanx
Copy link

  • vim or neovim?
    • vim
    • neovim
  • Output of vim --version or nvim --version: NVIM v0.4.2
  • Output of :echo has("python"): 1
  • Output of :echo has("python3"): 1
  • Output of :echo &pythondll(only vim, not neovim):
  • Output of :echo &pythonthreedll(only vim, not neovim):
  • Output of :py print(sys.version): 2.7.16 (default, Mar 11 2019, 18:59:25)
  • Output of :py3 print(sys.version): 3.7.4 (default, Jul 16 2019, 07:12:58)
  • Output of :echo g:Lf_Debug_Cmd:
  • Output of :echo g:Lf_FilesFromCache:
  • Operating system:
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Configurations related to LeaderF in vimrc:

nnoremap f :LeaderfFile
nnoremap fl :LeaderfLine
nnoremap ft :LeaderfBufTag
nnoremap fu :LeaderfFunction
nnoremap b :LeaderfBuffer

Describe your question, feature request, or bug.

编辑 /etc/shadowsocks/local.json 文件,保存文件时,出现如下错误信息:

Request from non-main thread.
Requests from different threads should be wrapped with nvim.async_call(cb, ...)
File "/usr/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "/home/ivan/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/gtagsExpl.py", line 57, in _processTask
task()
File "/home/ivan/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/gtagsExpl.py", line 435, in _update
lfCmd("let g:Lf_Debug_Gtags = '%s'" % escQuote(str((filename, root))))
File "/usr/lib/python3.7/site-packages/pynvim/api/nvim.py", line 287, in command
return self.request('nvim_command', string, **kwargs)

实际测试sudo nvim 编辑一个json文件,保存时没有错误输出,目前只有编辑上述文件出现错误。

Steps to reproduce

编辑 /etc/shadowsocks/local.json 保存时出现错误。

Actual behaviour

出现错误,回车确认,再次输出如下错误,一共三次,错误消失

Expected behaviour

成功保存,没有错误输出

@yangxuanx
Copy link
Author

image

Yggdroot added a commit that referenced this issue Sep 19, 2019
@Yggdroot
Copy link
Owner

Fix了。

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