question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when g:Lf_WindowPosition = 'popup'

See original GitHub issue
  • vim or neovim?
    • vim 8.2.12
    • neovim
  • Output of :echo g:Lf_Debug_Cmd: rg --no-messages --files -g "!node_modules" -g "!*.sw?" -g "!~$*" -g "!*.bak" -g "!*.exe" -g "!*.o" -g "!*.so" -g "!*.py[co]" "C:\Users\fatjing\Programs\Vim\vim82"
  • Output of :echo g:Lf_FilesFromCache: 1
  • Operating system:
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Configurations related to LeaderF in vimrc: let g:Lf_WindowPosition = 'popup' I’ve tested with only this line written in vimrc, if this line is removed everything works fine

Describe your question, feature request, or bug.

Steps to reproduce

Start gvim from C:\Users\fatjing\Programs\Vim\vim82 Run :Leaderf file

Actual behaviour

Got error:

Messages maintainer: Bram Moolenaar <Bram@vim.org>
Error detected while processing function leaderf#Any#start[4]..leaderf#LfPy:
line    1:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\fatjing\Programs\Vim\vimfiles\pack\bundle\start\LeaderF\autoload\leaderf\python\leaderf\anyExpl.py", line 780, in start
    the_args.start(arguments, *args, **kwargs)
  File "C:\Users\fatjing\Programs\Vim\vimfiles\pack\bundle\start\LeaderF\autoload\leaderf\python\leaderf\anyExpl.py", line 712, in _default_action
    manager.startExplorer(win_pos[2:], *args, **kwargs)
  File "C:\Users\fatjing\Programs\Vim\vimfiles\pack\bundle\start\LeaderF\autoload\leaderf\python\leaderf\fileExpl.py", line 729, in startExplorer
    super(FileExplManager, self).startExplorer(win_pos, *args, **kwargs)
  File "C:\Users\fatjing\Programs\Vim\vimfiles\pack\bundle\start\LeaderF\autoload\leaderf\python\leaderf\manager.py", line 2001, in startExplorer
    self._getInstance().enterBuffer(win_pos, not isinstance(content, list))
  File "C:\Users\fatjing\Programs\Vim\vimfiles\pack\bundle\start\LeaderF\autoload\leaderf\python\leaderf\instance.py", line 902, in enterBuffer
    self._createPopupWindow(clear)
  File "C:\Users\fatjing\Programs\Vim\vimfiles\pack\bundle\start\LeaderF\autoload\leaderf\python\leaderf\instance.py", line 487, in _createPopupWindow
    lfCmd("call win_execute(%d, 'setlocal filetype=leaderf')" % self._popup_winid)
vim.error: Vim(redir):E930: Cannot use :redir inside execute()
Error detected while processing function leaderf#Any#start:
line    4:
E171: Missing :endif

Expected behaviour

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Yggdrootcommented, Dec 21, 2019

更新了最新还是有同样的问题,详情 #444

it is a different issue, this issue is e930 and yours is e344.

1reaction
Yggdrootcommented, Dec 20, 2019

fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Window/monitor issues + crash #1106 - glfw/glfw - GitHub
Task bar may not always pop up, I found there is more chance for it to pop up after being restored after being...
Read more >
Window reference - GLFW
This is the function pointer type for window position callbacks. A window position callback function has the following signature:.
Read more >
Simplest way to pop up error message box on windows, nix ...
Show activity on this post. I'm writing a fairly minimal cross-platform program that uses OpenGL for display and GLFW for the cross-platform window...
Read more >
Error in popup window position on screen - Microsoft Community
Pop up windows in applications are appearing at the top left of the screen instead of their usual places. This applies to some...
Read more >
Development environment - Vulkan Tutorial
GLFW. GLM. Setting up Visual Studio. Linux. Vulkan Packages. GLFW ... and run the project and you should see a command prompt and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found