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

Can't commit in neovim #68

Closed
lalitmee opened this issue Mar 23, 2021 · 13 comments
Closed

Can't commit in neovim #68

lalitmee opened this issue Mar 23, 2021 · 13 comments
Labels
bug Something isn't working

Comments

@lalitmee
Copy link

Getting this error from last update of neogit

neogit

@TimUntersberger
Copy link
Collaborator

Interesting. I can commit on my machine.

Are you using sessions?

The line that errored tells me that somehow the popup state disappeared. Did you reload some lua code while you had the popup open?

@TimUntersberger TimUntersberger added the bug Something isn't working label Mar 23, 2021
@carlitux
Copy link

When I try to save the commit message I get this error: 382: Cannot write, 'buftype' option is set maybe I am doing wrong? how I can save the commit message and continue the commit process.

@akinsho
Copy link
Contributor

akinsho commented Mar 24, 2021

@carlitux it's different from fugitive you don't need to write the buffer. You should try <c-c><c-c> instead to commit

@lalitmee
Copy link
Author

@TimUntersberger , I am using sessions from vim-startify nothing else. No I didn't reload the popup or anything. I simply press two times c and then it goes to commit screen. But that is not happening now.

@TimUntersberger
Copy link
Collaborator

@lalitmee sessions sometimes create problems for me when using new/updated plugins.

Could you try commiting in a new repo without using sessions?

@lalitmee
Copy link
Author

@TimUntersberger , the whole plugin seems broken.
After the latest update now I can't expand and collapse the hunks.

@RianFuro
Copy link
Contributor

@lalitmee that's probably related to #77

@lalitmee
Copy link
Author

@RianFuro , yeah I was able to fix that by calling the setup function. But I am still not able to write commit messages.

@TimUntersberger
Copy link
Collaborator

TimUntersberger commented Mar 25, 2021

Can you try commiting with only neogit installed (so basically nvim + neogit)

Edit:

I really can't reproduce this.

@RianFuro
Copy link
Contributor

I played around with the sessions from vim-startify a bit, but couldn't reproduce the problem. So either it's some specific configuration or has nothing to do with it (or I just missed it, ofc).

@lalitmee
Copy link
Author

lalitmee commented Mar 26, 2021

@TimUntersberger , yup you are right. I tried this with only nvim + neogit and it worked. I really don't know what is the other thing which is affecting this. Because now I am not even calling the setup function. So simply there is no config for neogit.

Any idea what other plugin may be affecting this?

@RianFuro
Copy link
Contributor

@lalitmee We don't have any other reports of incompatibilities as of yet. You could add back your used plugins one by one and see when neogit starts to break, so we at least know where we need to start looking.

@lalitmee
Copy link
Author

@RianFuro , this was happening because I was calling the setup function of neogit. I think that was not needed for me. Simply I removed the whole file neogit.lua from my config and it worked.

Thank you so much for this awesome plugin. I think it will give a good fight to fugitive. 👍

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

5 participants