L3MON4D3 / LuaSnip

Snippet Engine for Neovim written in Lua.
Apache License 2.0
3.31k stars 234 forks source link

Can't remove LuaSnip due to .git directory existing #858

Closed tylerheaton16 closed 1 year ago

tylerheaton16 commented 1 year ago

I recently updated LuaSnip and have an issue that I can't resolve. I'm not sure if it is on the side of LuaSnip, but it seems during the update LuaSnip lost its git history.

when I run :PackerSync and remove LuaSnip, it can't because it is not able to delete .local/share/nvim/site/pack/packer/opt/LuaSnip which only has a .git directory. There are no .nfs files or rogue files I can find. Also, when I run git status I now get fatal: not a git repository (or any of the parent directories): .git

Is there a way to reverse this to get LuaSnip back up and running?

leiserfg commented 1 year ago

Sorry but the issue has nothing to do with luasnip, just delete the folder by hand.

tylerheaton16 commented 1 year ago

I think this issue has to do with me being on an NFS. I can't delete the folder because it claims there are files inside of it still, but it is empty. lsof and fuser don't help, so it is currently stale. I'll keep looking at it, thanks.

pierce-c commented 1 year ago

if u go to the directory on the command line u can use ls -la to list the hidden files

tylerheaton16 commented 1 year ago

Hey all. So I went through all of the normal means (including ls -la, lsof, fuser, etc). And it looks like it has to do with settings on the server I am on.

sudo rm -Rf didn't have an affect. But, opening the GUI and just "send to trash" did the trick apparently.

Closing.