goolord / alpha-nvim

a lua powered greeter like vim-startify / dashboard-nvim
MIT License
1.87k stars 112 forks source link

Invalid window Id #269

Open felipscarvalho opened 6 months ago

felipscarvalho commented 6 months ago

Hi,

I was having the issue #266, followed the solution presented by @LineNL and that problem was solved. However, another specific error started to happens, the Invalid window Id.

image

That error happens when I do "!wq" in .ts files (I haven't tested in other file types, but in .lua of the config, that not happens). When I do only "!w" or "!q" the error does not happens.

Note: I'm lunar vim user, that error is happening in the fresh installation.

Update: I tested in my python projects, and the error does not happens, It must be only in .ts files. I really don't know how to solve the problem, accepting any help.

LiveNL commented 6 months ago

Hi @felipscarvalho,

I'm having the same issues at the moment. I can confirm that this is also an issue for other file types, like python (.py).

goolord commented 6 months ago

i have not had this happen to me yet, i'm unsure how to fix this without some way to reproduce the error. if you could figure out a minimal configuration building on one of https://github.com/goolord/alpha-nvim/blob/main/debug/DEBUG.md that would make it easier for me

LiveNL commented 6 months ago

Unfortunately, I'm not able to reproduce the error myself so far, deterministically. I'll send a config/set of steps, as soon as I'm able to do so.

felipscarvalho commented 6 months ago

Hi @goolord,

when I run the debug commands from the alpha-nvim folder, it returns me that error:

Error detected while processing /home/felipe/.local/share/lunarvim/site/pack/lazy/opt/alpha-nvim/debug/min-alpha-startify.lua:
E5113: Error while calling lua chunk: vim/_editor.lua:0: /home/felipe/.local/share/lunarvim/site/pack/lazy/opt/alpha-nvim/debug/min-alpha-startify.lua..nvim_exec2() called at /home/felipe/
.local/share/lunarvim/site/pack/lazy/opt/alpha-nvim/debug/min-alpha-startify.lua:0: Vim(rshada):E886: System error while opening ShaDa file /home/felipe/.local/share/nvim/shada/main.shada
for reading: no such file or directory
stack traceback:
        [C]: in function 'nvim_exec2'
        vim/_editor.lua: in function 'cmd'
        ...te/pack/lazy/opt/alpha-nvim/debug/min-alpha-startify.lua:2: in main chunk

Otherwise, when I run the same commands directly from the alpha-nvim/debug folder, adapting the command, it returns no error.

Note: I tried all the six commands from the alpha-nvim/debug/DEBUG.md.