kingToolbox / kingToolbox/WindTerm

windterm使用ssh连接linux,然后使用vim的leaderf功能,出现粘贴卡死的现象

Open
#2,909 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
32.3k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

Error detected while processing function leaderf#Any#start[4]..leaderf#LfPy:
line 1:
Traceback (most recent call last):
File "", line 1, in
File "/home/test-1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/anyExpl.py", line 815, in start
the_args.start(arguments, *args, **kwargs)
File "/home/test-1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/anyExpl.py", line 747, in _default_action
manager.startExplorer(win_pos[2:], *args, **kwargs)
File "/home/test-1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/rgExpl.py", line 863, in startExplorer
super(RgExplManager, self).startExplorer(win_pos, *args, **kwargs)
File "/home/test-1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 2433, in startExplorer
self.input()
File "/home/test-1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 62, in deco
func(self, *args, **kwargs)
File "/home/test-1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 2659, in input
self._search(cur_content)
File "/home/test-1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 1187, in _search
self._regexSearch(content, is_continue, step)
File "/home/test-1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/manager.py", line 1866, in _regexSearch
self._getInstance().setBuffer(self._result_content[:self._initial_count])
File "/home/test-1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/instance.py", line 1267, in setBuffer
self.refreshPopupStatusline()
File "/home/test-1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/instance.py", line 1279, in refreshPopupStatusline
min(self._popup_maxheight, self._actualLength(self._buffer_object[:self._popup_maxheight]))))
File "/home/test-1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/instance.py", line 1185, in _actualLength
columns = self._window_object.width - int(lfEval("&numberwidth")) - int(lfEval("&foldcolumn"))
File "/home/test-1/.vim/plugged/LeaderF/autoload/leaderf/python/leaderf/instance.py", line 137, in width
return int(popup_pos["width"])
KeyError: 'width'

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue by connecting to Linux over SSH in WindTerm, opening Vim with LeaderF, and pasting. Start with the traceback locations in autoload/leaderf/python/leaderf/instance.py and manager.py, especially the popup width access that raises KeyError: 'width'. Done means the paste no longer hangs and the reported error is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, python, vim
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.