catppuccin / nvim

🍨 Soothing pastel theme for (Neo)vim
MIT License
5.7k stars 257 forks source link

'catppuccin.ucolors.ucolors' not found #170

Closed mortymacs closed 2 years ago

mortymacs commented 2 years ago

Hi,

After the recent update, I'm getting this error:

Error detected while processing /home/mort/.vim/plugged/catppuccin/colors/catppuccin.vim:
line    3:
E5108: Error executing lua ...t/.vim/plugged/catppuccin/lua/catppuccin/core/mapper.lua:1: module 'catppuccin.ucolors.ucolors' not found:
        no field package.preload['catppuccin.ucolors.ucolors']
        no file './catppuccin/ucolors/ucolors.lua'
        no file '/usr/share/luajit-2.1.0-beta3/catppuccin/ucolors/ucolors.lua'
        no file '/usr/local/share/lua/5.1/catppuccin/ucolors/ucolors.lua'
        no file '/usr/local/share/lua/5.1/catppuccin/ucolors/ucolors/init.lua'
        no file '/usr/share/lua/5.1/catppuccin/ucolors/ucolors.lua'
        no file '/usr/share/lua/5.1/catppuccin/ucolors/ucolors/init.lua'
        no file './catppuccin/ucolors/ucolors.so'
        no file '/usr/local/lib/lua/5.1/catppuccin/ucolors/ucolors.so'
        no file '/usr/lib/lua/5.1/catppuccin/ucolors/ucolors.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
        no file './catppuccin.so'
        no file '/usr/local/lib/lua/5.1/catppuccin.so'
        no file '/usr/lib/lua/5.1/catppuccin.so'
        no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        ...t/.vim/plugged/catppuccin/lua/catppuccin/core/mapper.lua:1: in main chunk
        [C]: in function 'require'
        /home/mort/.vim/plugged/catppuccin/lua/catppuccin/main.lua:18: in function 'load'
        /home/mort/.vim/plugged/catppuccin/lua/catppuccin/main.lua:30: in function 'main'
        /home/mort/.vim/plugged/catppuccin/lua/catppuccin/init.lua:4: in function 'load'
        [string ":lua"]:1: in main chunk

This is my local config:

let g:catppuccin_flavour = "frappe"
colorscheme catppuccin
lua << EOF
require("catppuccin").setup{
  transparent_background = true,
  integrations = {
    coc_nvim = true,
    gitgutter = true,
    gitsigns = true,
    barbar = true
  }
}
EOF

I also removed and re-installed it again, and the same error.

My system config:

OS: ArchLinux NVIM: v0.7.2

pocco81 commented 2 years ago

I just fixed it on the dev branch.

mortymacs commented 2 years ago

Thanks! When it will be merged? because my nvim is not working anymore and I think new members will face the same issue.

eXvimmer commented 2 years ago

I have the same issue.

pocco81 commented 2 years ago

Of course @mortymacs :). It's just that I'm rewriting the plugin from scratch (to make it better). It may take me between 1-3hrs to finish, but it seems like this particular thing may cause some issues for people updating the plugin right now. I'll stage what I have so far and merge a fix :+1:

cviejo commented 2 years ago

thanks, @Pocco81 :) :PackerSync errored after the fix. I had to remove the installed catpuccin version first and reinstall

pocco81 commented 2 years ago

fixed :tada:

mortymacs commented 2 years ago

Awesome, thanks!