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

Usage of notify_once causes error #23

Closed
kahnclusions opened this issue Apr 25, 2022 · 3 comments
Closed

Usage of notify_once causes error #23

kahnclusions opened this issue Apr 25, 2022 · 3 comments

Comments

@kahnclusions
Copy link

kahnclusions commented Apr 25, 2022

After updating with today's commits I get the following error on startup:

E5108: Error executing lua ...k/packer/start/nvim-notify/lua/notify/render/default.lua:19: E523: Not allowed here
stack traceback:
        [C]: in function 'nvim_buf_set_lines'
        ...k/packer/start/nvim-notify/lua/notify/render/default.lua:19: in function 'render'
        ...ker/start/nvim-notify/lua/notify/service/buffer/init.lua:101: in function 'render'
        ...ack/packer/start/nvim-notify/lua/notify/service/init.lua:45: in function 'push'
        ...m/site/pack/packer/start/nvim-notify/lua/notify/init.lua:131: in function 'notify'
        vim/_editor.lua: in function 'notify_once'
        ...k/packer/start/heirline.nvim/lua/heirline/highlights.lua:52: in function 'normalize_hl'
        ...k/packer/start/heirline.nvim/lua/heirline/highlights.lua:69: in function 'eval_hl'
        ...k/packer/start/heirline.nvim/lua/heirline/statusline.lua:130: in function 'eval'
        ...k/packer/start/heirline.nvim/lua/heirline/statusline.lua:146: in function 'eval'
        ...k/packer/start/heirline.nvim/lua/heirline/statusline.lua:146: in function 'eval'
        ...k/packer/start/heirline.nvim/lua/heirline/statusline.lua:146: in function 'eval'
        ...te/pack/packer/start/heirline.nvim/lua/heirline/init.lua:27: in function <...te/pack/packer/start/heirline.nvim/lua/heirline/init.lua:24>
Press ENTER or type command to continue

I suspect it's related to this change: 0c860db, setting packer manually to the previous commit (0c91862) makes it go away.

@rebelot
Copy link
Owner

rebelot commented Apr 26, 2022

I cannot reproduce, what's nvim version?
does it help if you update your config removing style and guisp fields?

@cjnucette
Copy link

cjnucette commented Apr 26, 2022

I'm having the same issue since the last update.

:version
NVIM v0.8.0-dev                                                                                                                                                                      
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by root@avalon
Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/share/nvim"

Run :checkhealth for more info


E5108: Error executing lua ...g/nvim/plugged/nvim-notify/lua/notify/render/default.lua:19: E523: Not 
allowed here
stack traceback:                                                                                                                                                                     
        [C]: in function 'nvim_buf_set_lines'
        ...g/nvim/plugged/nvim-notify/lua/notify/render/default.lua:19: in function 'render'
        ...m/plugged/nvim-notify/lua/notify/service/buffer/init.lua:101: in function 'render'
        ...fig/nvim/plugged/nvim-notify/lua/notify/service/init.lua:45: in function 'push'
        ...tte/.config/nvim/plugged/nvim-notify/lua/notify/init.lua:131: in function 'notify'
        vim/_editor.lua: in function 'notify_once'
        ...g/nvim/plugged/heirline.nvim/lua/heirline/highlights.lua:52: in function 'normalize_hl'
        ...g/nvim/plugged/heirline.nvim/lua/heirline/highlights.lua:69: in function 'eval_hl'
        ...g/nvim/plugged/heirline.nvim/lua/heirline/statusline.lua:130: in function 'eval'
        ...g/nvim/plugged/heirline.nvim/lua/heirline/statusline.lua:146: in function 'eval'
        ...g/nvim/plugged/heirline.nvim/lua/heirline/statusline.lua:146: in function 'eval'
        ...g/nvim/plugged/heirline.nvim/lua/heirline/statusline.lua:146: in function 'eval'
        ...g/nvim/plugged/heirline.nvim/lua/heirline/statusline.lua:146: in function 'eval'
       ....config/nvim/plugged/heirline.nvim/lua/heirline/init.lua:27: in function 
<....config/nvim/plugged/heirline.nvim/lua/heirline/init.lua:24>

@rebelot
Copy link
Owner

rebelot commented Apr 26, 2022

Error is related to nvim-notify plugin. To avoid it update your config removing style and guisp.
See #17 (comment)

@rebelot rebelot closed this as completed Apr 26, 2022
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

No branches or pull requests

3 participants