sakhnik / nvim-gdb

Neovim thin wrapper for GDB, LLDB, PDB/PDB++ and BashDB
723 stars 39 forks source link

:GdbStart crashes on start #164

Closed epixinvites closed 2 years ago

epixinvites commented 2 years ago

20220203-145146

sakhnik commented 2 years ago

That's very strange. But I bet that's something with your neovim setup. Does any other lua plugin work for your? What is your neovim version?

epixinvites commented 2 years ago

Yes, every other plugin works except nvim-gdb

$ nvim --version
NVIM v0.6.1
Build type: Release
LuaJIT 2.0.5
Compiled by builduser

Here's my init.vim -> https://termbin.com/brjn

sakhnik commented 2 years ago

Is the issue still reproducible with a minimal config? If you launch neovim with the test script ./nvim in the plugin's directory test?

epixinvites commented 2 years ago

Just git cloned and tested it, it worked without a problem. Weird, I guess it's something wrong with my nvim configuration then.

Can you try my configuration and test it out to see if it works for you?

sakhnik commented 2 years ago

I'm glad to hear the results. Unfortunately, I don't have a spare machine at the moment to test your configuration. But may I suggest trying to bisect it? There may be something that spoils the environment.

epixinvites commented 2 years ago

Hmmm, you're right, I'll comment out all the plugins and see which one is causing problems.

epixinvites commented 2 years ago

Wow, I just commented out every single plugin, uncommented it one by one, now the problem is gone. Are you fucking kidding me.

Wait. Nope, I think I found the problem. It has something to do with the auto-session plugin.

sakhnik commented 2 years ago

Kudos!

epixinvites commented 2 years ago

But why? I guess I can spend another night's worth of sleep debugging this problem then.

epixinvites commented 2 years ago

Alright, I deleted all my sessions, and seems like I have fixed my problem. Thanks mate!

sakhnik commented 2 years ago

Welcome!