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

Cant use the theme since yesterday. #11

Open
H4ckint0sh opened this issue Jul 6, 2022 · 9 comments
Open

Cant use the theme since yesterday. #11

H4ckint0sh opened this issue Jul 6, 2022 · 9 comments

Comments

@H4ckint0sh
Copy link

H4ckint0sh commented Jul 6, 2022

Vim(lua):E5108: Error executing lua [string ":lua"]:5: attempt to index a boolean value

Neovim nightly

Skärmavbild 2022-07-08 kl  09 00 29

@fabiojmendes
Copy link

fabiojmendes commented Jul 6, 2022

Same problem here. The stack trace doesn't offer much help:

Error detected while processing /Users/fabio/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /Users/fabio/.config/nvim/lua/user/options.lua:31: Vim(lua):E5108: Error executing lua [string ":lua"]:5: attempt to index
 a boolean value
stack traceback:
        [string ":lua"]:5: in main chunk
        [C]: in function 'cmd'
        /Users/fabio/.config/nvim/lua/user/options.lua:31: in main chunk
        [C]: in function 'require'
        /Users/fabio/.config/nvim/init.lua:2: in main chunk
stack traceback:
        [C]: in function 'cmd'
        /Users/fabio/.config/nvim/lua/user/options.lua:31: in main chunk
        [C]: in function 'require'
        /Users/fabio/.config/nvim/init.lua:2: in main chunk

Line 31 in options.lua I have vim.cmd 'colorscheme onedarker'

As a workaround, I reverted to the last working state by using this packer config:

use { 'LunarVim/onedarker.nvim', commit = 'b00dd21' }

@ghsyeung
Copy link

ghsyeung commented Jul 8, 2022

Looks like a recent commit refactored some code and the setup() function from init.lua
However, the vim script still calls require('onedarker').setup()

I removed the call to setup() and it seems to be working so far

@H4ckint0sh
Copy link
Author

In the mean time we are waiting for a fix I have created a fork with @ghsyeung 's fix without any other changes for those who have this problem.
https://github.com/H4ckint0sh/onedarker.nvim

@unrealapex
Copy link

@H4ckint0sh do you happen to know which commit caused the problem(the commit hash)? This would be helpful for people using plugin managers because they can revert the commit using the hash that caused the problem.

@H4ckint0sh
Copy link
Author

@unrealapex ”b00dd21”.

@unrealapex
Copy link

Are you certain it is b00dd21? I cloned onedarker earlier this month and it was fine.

@ghsyeung
Copy link

I think he means b00dd21 is the last known working commit.

If I understand correctly, the setup function is removed here

b788952#diff-96679415f2b36486b13ace13e6e86f3412fc38ead44976f65be301afb5476f45L3

So b788952 is the broken commit.

@unrealapex
Copy link

I see, thanks!

@unrealapex
Copy link

@ChristianChiarulli @H4ckint0sh any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants