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

issue: Failed to run config for telescope-fzf-native.nvim #2464

Closed
3 tasks done
DaphneOdera17 opened this issue Jan 30, 2024 · 12 comments · Fixed by #3147
Closed
3 tasks done

issue: Failed to run config for telescope-fzf-native.nvim #2464

DaphneOdera17 opened this issue Jan 30, 2024 · 12 comments · Fixed by #3147
Labels
bug Something isn't working

Comments

@DaphneOdera17
Copy link

Did you check docs and existing issues?

  • I have read all the LazyVim docs
  • I have searched the existing issues of LazyVim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

NVIM v0.9.4

Operating system/version

Windows

Describe the bug

Failed to run config for telescope-fzf-native.nvim

...a/lazy/telescope.nvim/lua/telescope/_extensions/init.lua:10: 'fzf' extension doesn't exist or isn't installed: ...nvim-data/lazy/telescope-fzf-native.nvim/lua/fzf_lib.lua:11: cannot load module 'C:/Users/Birdy/AppData/Local/nvim-data/lazy/telescope-fzf-native.nvim/lua/../build/libfzf.dll': %1 不是有效的 Win32 应用程序。

stacktrace:

  • telescope.nvim\lua\telescope_extensions\init.lua:10 in load_extension
  • telescope.nvim\lua\telescope_extensions\init.lua:62 in load_extension
  • LazyVim\lua\lazyvim\plugins\editor.lua:132 in fn
  • LazyVim\lua\lazyvim\util\init.lua:132 in on_load
  • LazyVim\lua\lazyvim\plugins\editor.lua:131 in config
  • LazyVim\lua\lazyvim\util\telescope.lua:49
  • lua:1
  • vim_editor.lua:341 in cmd
  • dashboard-nvim\lua\dashboard\theme\doom.lua:23
    image

Steps To Reproduce

I tried rebuild it but useless

Expected Behavior

I just want to solve this problem

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  "folke/LazyVim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here
@DaphneOdera17 DaphneOdera17 added the bug Something isn't working label Jan 30, 2024
@DaphneOdera17 DaphneOdera17 changed the title bug: Failed to run config for telescope-fzf-native.nvim issue: Failed to run config for telescope-fzf-native.nvim Jan 30, 2024
@dpetka2001
Copy link
Contributor

From the plugin's docs it seems that you need to have MingW on Windows to build it. Otherwise, just disable the plugin in your personal configuration. I don't believe this is a bug with LazyVim.

@DaphneOdera17
Copy link
Author

From the plugin's docs it seems that you need to have MingW on Windows to build it. Otherwise, just disable the plugin in your personal configuration. I don't believe this is a bug with LazyVim.从插件的文档来看,您似乎需要在 Windows 上安装 MingW 才能构建它。否则,只需在您的个人配置中禁用该插件即可。我不认为这是 LazyVim 的错误。

But I have already installed MingGW64
image

@dpetka2001
Copy link
Contributor

I don't use Windows, so I don't know. But it's definitely a problem with your OS. On Linux it works just fine.

The screenshot that you showed in your first post is the error from loading the config. Can you show the error when you try to rebuild it? Maybe it will have some more info.

I found a similar issue at the plugin's repo with the same error like in your screenshot from the first post. It's not a LazyVim bug, so you have to read through the issue that I linked. Towards the end of that issue, there seems to be a solution.

@axsk
Copy link

axsk commented Feb 19, 2024

I get the exact same error on Linux

@DaphneOdera17
Copy link
Author

I get the exact same error on Linux

I run it successfully on linux with no such error. It only happens on win11.

@dpetka2001
Copy link
Contributor

Try to install make via chocolatey and try to rebuild the plugin.

@new001code
Copy link

I get the exact same error on Linux

I run it successfully on linux with no such error. It only happens on win11.

I also recreated it on ubuntu22.04.

@jigfox
Copy link

jigfox commented Mar 7, 2024

I have the same error on macOS Sonoma on a fresh install of LazyVim

@Coien-rr
Copy link

i fix it by deleting telescope-fzf-native.nvim and reinstall it (rebuild may also works)

@Joselay
Copy link

Joselay commented Apr 20, 2024

make sure you have installed Make and to make sure u can check "make -v" in terminal.
uninstall the telescope-fzf-native.nvim and load the LazyVim again it will automatically install then u're good to go.
I just fixed it by doing that

@folke folke closed this as completed in 39901c1 May 13, 2024
@folke
Copy link
Collaborator

folke commented May 13, 2024

I just pushed a change where we try to rebuild fzf-native when the extension cuold not be loaded and the lib doesnt exist

@binarad
Copy link

binarad commented May 20, 2024

image
Can someone help to fix this im newbie in nvim?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants