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

lazy.nvim: module 'catppuccin.groups.integrations.colorful_winsep' #714

Open
Std-Enigma opened this issue Jun 1, 2024 · 5 comments
Open
Labels
bug Something isn't working

Comments

@Std-Enigma
Copy link

Std-Enigma commented Jun 1, 2024

Description

I recently insalled colorful_winsep plugin and enabled it's integeration and i'm getting this error

Neovim version

NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1716656478

Terminal and multiplexer

kitty 0.35.0

Catppuccin version / branch / rev

catppuccin v1.7.0

Steps to reproduce

  1. set the colorscheme to catppuccin

Expected behavior

no error

Actual behavior

Failed to run config for catppuccin

...share/nvim/lazy/catppuccin/lua/catppuccin/lib/mapper.lua:52: module 'catppuccin.groups.integrations.colorful_winsep' not found:
^Ino field package.preload['catppuccin.groups.integrations.colorful_winsep']
cache_loader: module catppuccin.groups.integrations.colorful_winsep not found
cache_loader_lib: module catppuccin.groups.integrations.colorful_winsep not found
^Ino file './catppuccin/groups/integrations/colorful_winsep.lua'
^Ino file '/usr/share/luajit-2.1/catppuccin/groups/integrations/colorful_winsep.lua'
^Ino file '/usr/local/share/lua/5.1/catppuccin/groups/integrations/colorful_winsep.lua'
^Ino file '/usr/local/share/lua/5.1/catppuccin/groups/integrations/colorful_winsep/init.lua'
^Ino file '/usr/share/lua/5.1/catppuccin/groups/integrations/colorful_winsep.lua'
^Ino file '/usr/share/lua/5.1/catppuccin/groups/integrations/colorful_winsep/init.lua'
^Ino file './catppuccin/groups/integrations/colorful_winsep.so'
^Ino file '/usr/local/lib/lua/5.1/catppuccin/groups/integrations/colorful_winsep.so'
^Ino file '/usr/lib/lua/5.1/catppuccin/groups/integrations/colorful_winsep.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file './catppuccin.so'
^Ino file '/usr/local/lib/lua/5.1/catppuccin.so'
^Ino file '/usr/lib/lua/5.1/catppuccin.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'

stacktrace:

  • /catppuccin/lua/catppuccin/lib/mapper.lua:52 in apply
  • /catppuccin/lua/catppuccin/lib/compiler.lua:24 in compile
  • /catppuccin/lua/catppuccin/init.lua:113 in compile
  • /catppuccin/lua/catppuccin/init.lua:186 in setup
  • lua/config/bootstrap.lua:48
  • init.lua:4

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 = {
  {
    "catppuccin/nvim",
    name = "catppuccin",
    priority = 1000,
  },
  {
    {
      "nvim-zh/colorful-winsep.nvim",
      event = "WinNew",
      config = true,
    },
    {
      "catppuccin",
      optional = true,
      opts = {
	integrations = {
	  colorful_winsep = {
	    enabled = true,
	  },
	},
      },
    },
  },
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("catppuccin")
@Std-Enigma Std-Enigma added the bug Something isn't working label Jun 1, 2024
@vollowx
Copy link
Collaborator

vollowx commented Jun 1, 2024

It's likely that you're not using the latest version of catppuccin.nvim. Try to update this plugin.

@Std-Enigma Std-Enigma reopened this Jun 2, 2024
@Std-Enigma
Copy link
Author

It's likely that you're not using the latest version of catppuccin.nvim. Try to update this plugin.

nope that isn't the problem i'm using the latest stable version

@vollowx
Copy link
Collaborator

vollowx commented Jul 1, 2024

Is this problem still here? Among all your Neovim configs, I couldn't find any file requiring or configurating catppuccin.nvim. If it's still happening, you can provide a config that can reproduce this problem, so that we can solve this quicker.

@Std-Enigma
Copy link
Author

Std-Enigma commented Jul 4, 2024

This is really weird when doing minimal like this:

-- 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 = {
  {
    "catppuccin/nvim",
    name = "catppuccin",
    priority = 1000,
  },
  {
    {
      "nvim-zh/colorful-winsep.nvim",
      event = "WinNew",
      config = true,
    },
    {
      "catppuccin",
      optional = true,
      opts = {
	integrations = {
	  colorful_winsep = {
	    enabled = true,
	  },
	},
      },
    },
  },
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("catppuccin")

this isn't an issue at all but in one of my very specific setups that error pops up

@vollowx
Copy link
Collaborator

vollowx commented Jul 4, 2024

Didn't receive such error on Fedora 39, Neovim 0.9.5, too. I still recommend you to remove your current packages, cache, state and package lock, and completely reload all of your config. It just shouldn't happen with the latest version of catppuccin.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

No branches or pull requests

2 participants