Error when using in goneovim v0.44
See original GitHub issue-
vim or neovim?
- vim
- [X ] neovim
-
Operating system:
- Linux
- [ X] Mac OS X
- Windows
- Etc.
-
Configurations related to LeaderF in vimrc: let g:Lf_ShowHidden = 1 let g:Lf_MaxCount =50000 let g:Lf_PreviewInPopup =1
python 3.7.0
Describe your question, feature request, or bug.
I keep getting this error. Only on goneovim v0.44 . It works fine on neovim-qt.
The problem is due to float_win_pos = lfEval(“nvim_win_get_position(%d)” % float_window.id)
I tried running it : echo nvim_win_get_position(win_getid(‘%’)) Got strange results. always [1,something]. But maybe that is not the way to go.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Users/eyalkarni/vimpy3/plugged/LeaderF/autoload/leaderf/python/leaderf/anyExpl.py", line 779, in start
the_args.start(arguments, *args, **kwargs)
File "/Users/eyalkarni/vimpy3/plugged/LeaderF/autoload/leaderf/python/leaderf/anyExpl.py", line 711, in _default_action
manager.startExplorer(win_pos[2:], *args, **kwargs)
File "/Users/eyalkarni/vimpy3/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 2005, in startExplorer
self.input()
File "/Users/eyalkarni/vimpy3/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 56, in deco
func(self, *args, **kwargs)
File "/Users/eyalkarni/vimpy3/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 2280, in input
self._search(cur_content)
File "/Users/eyalkarni/vimpy3/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 944, in _search
self._previewResult(False)
File "/Users/eyalkarni/vimpy3/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 367, in _previewResult
self._previewInPopup(line)
File "/Users/eyalkarni/vimpy3/plugged/LeaderF/autoload/leaderf/python/leaderf/lineExpl.py", line 140, in _previewInPopup
self._createPopupPreview(vim.buffers[int(buf_number)].name, buf_number, line_nr)
File "/Users/eyalkarni/vimpy3/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 573, in _createPopupPreview
self._createPopupModePreview(title, buf_number, line_nr, jump_cmd)
File "/Users/eyalkarni/vimpy3/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 462, in _createPopupModePreview
self._preview_winid = int(lfEval("nvim_open_win(%d, 0, %s)" % (buf_number, str(config))))
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pynvim/plugin/script_host.py", line 203, in eval
obj = self.request("vim_eval", expr)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pynvim/api/nvim.py", line 182, in request
res = self._session.request(name, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pynvim/msgpack_rpc/session.py", line 102, in request
raise self.error_wrapper(err)
pynvim.api.common.NvimError: Vim:E5555: API call: 'height' key must be a positive Integer
Steps to reproduce
type something in leaderf.
Actual behaviour
the messages appears. Leaderf is dead.
(it only happens when preview is on)
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
UI: nvim_win_get_position result on float window is incorrect if ...
nvim --version: NVIM v0.4.3 Steps to reproduce using nvim -u NORC ... Error when using in goneovim v0.44 Yggdroot/LeaderF#501.
Read more >editor - Go Packages
When a project reaches major version v1 it is considered stable. Learn more. Repository. github.com/akiyosi/goneovim. Links. Report a ...
Read more >goneovim-git - AUR (en) - Arch Linux
If you're getting this error: go: go.mod file not found in current directory or any parent directory; see 'go help modules'.
Read more >Scoop buckets by Github score
A searchable directory of buckets for the scoop package manager for Windows.
Read more >Import detection error with neovim-lsp and tsserver
I solved my problem, there was a conflict between tsserver and denols, I deactivated denols given that I am in a node project....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed.
This is because terminal neovim and neovim-qt based single-grid UI drawing. In single grid UI, there is only a single grid (main grid), so
nvim_win_get_position()
works effectively, but it does not work well in multi-grid based UI drawing that handles multiple grids.@bfredl If you have additional explanations or supplements, please.