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

[BUG] Reloading a session with scnvim using Startify causes errors #226

Open
madskjeldgaard opened this issue Sep 30, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@madskjeldgaard
Copy link
Contributor

Describe the bug

When using SCNvim while using Startify (or probably other session managers as well), sometimes a problem occurs that causes the following error after loading a session that previously had scnvim running in it:

E5108: Error executing lua: .../nvim/site/pack/packer/opt/scnvim/lua/scnvim/postwin.lua:58: Failed to rename buffer                                                           
stack traceback:                                                                                                                                                              
        [C]: in function 'nvim_buf_set_name'                                                                                                                                  
        .../nvim/site/pack/packer/opt/scnvim/lua/scnvim/postwin.lua:58: in function 'create'                                                                                  
        .../nvim/site/pack/packer/opt/scnvim/lua/scnvim/postwin.lua:146: in function 'open'                                                                                   
        ...e/nvim/site/pack/packer/opt/scnvim/lua/scnvim/sclang.lua:54: in function 'default_fn'                                                                              
        ...e/nvim/site/pack/packer/opt/scnvim/lua/scnvim/action.lua:45: in function 'on_init'                                                                                 
        ...e/nvim/site/pack/packer/opt/scnvim/lua/scnvim/sclang.lua:210: in function 'start'                                                                                  
        ...al/share/nvim/site/pack/packer/opt/scnvim/lua/scnvim.lua:89: in function <...al/share/nvim/site/pack/packer/opt/scnvim/lua/scnvim.lua:88>   

Expected behavior

Steps to reproduce

  1. :e myfile.scd
  2. :SCNvimStart
  3. :SSave scnvimerror
  4. Close neovim
  5. Re-open neovim
  6. :SLoad scnvimerror

Additional context
Perhaps related to this?
#33

Information

  • Operating system
    MacOS sonoma

  • nvim --version

NVIM v0.9.2
Build type: Release
LuaJIT 2.1.0-beta3

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.2/share/nvim"

Run :checkhealth for more info


  • Package manager
    Packer.nvim
@madskjeldgaard madskjeldgaard added the bug Something isn't working label Sep 30, 2023
@madskjeldgaard
Copy link
Contributor Author

The error prevents scnvim from starting after reload, and the only way to get it to start is to find the post window buffer called [scnvim] and closing it, before running SCNvimStart again

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

1 participant