josean-dev / dev-environment-files

2.63k stars 740 forks source link

LuaSnip failing to update #54

Closed solaSell closed 6 months ago

solaSell commented 6 months ago

I have this error message I fail to resolve while attempting to update LuaSnip:

Failed (1) LuaSnip 6.77ms vim-cmp fetch failed Fetching submodule reps/jsregexp fatal: cannot chdir to '../../../../deps/jsregexp': No such file or directory Errors during submodule fetch: dips/jsregexp

The problem started with the advise I got to delete the directory dips/jsregexp for the LuaSnip updates to work. When that did not help LuaSnip to update, I re-created the directory dips/jsregexp

Now I do not know how to resolve the "fetch failed"

parthbera commented 6 months ago

I had the same issue. I uninstalled and reinstalled luasnip. The problem went away. I investigated a little bit, it's related to the submodule feature of git. I don't have any experience working with git submodules, so I tried the simplest approach and it worked.

solaSell commented 6 months ago

Hi!

Thanks for responding.

How do I uninstall luasnip?

Nothing seems to work: Neither using Lazy X or S commands.

Indeed I wish to install luasnip afresh.

Any further ideas?

On Thu, Dec 7, 2023 at 8:29 AM parthbera @.***> wrote:

I had the same issue. I uninstalled and reinstalled luasnip. The problem went away. I investigated a little bit, it's related to the submodule feature of git. I don't have any experience working with git submodules, so I tried the simplest approach and it worked.

— Reply to this email directly, view it on GitHub https://github.com/josean-dev/dev-environment-files/issues/54#issuecomment-1844728043, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSNMLWXUTPWAQAOLPRINSTYIFO5RAVCNFSM6AAAAABAJXQ4UCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBUG4ZDQMBUGM . You are receiving this because you authored the thread.Message ID: @.***>

parthbera commented 6 months ago

If I remember correctly, I only used the lazy UI to uninstall and reinstall LuaSnip. Try the following steps to restore submodules as required by HEAD of parent repo.

cd <nvim-data>/lazy/LuaSnip
git submodule update

Then try lazy UI from nvim as usual. The git submodule update should restore the submodules to the proper state. If this doesn't help, try deinit followed by update as explained here.

git submodule deinit --force .
git submodule update --init --recursive --checkout
solaSell commented 6 months ago

Thanks for the tips, I'll check them out.

On Sun, Dec 10, 2023, 1:43 PM parthbera @.***> wrote:

If I remember correctly, I only used the lazy UI to uninstall and reinstall LuaSnip. Try the following steps to restore submodules as required by HEAD of parent repo.

cd /lazy/LuaSnip git submodule update

Then try lazy UI from nvim as usual. The git submodule update should restore the submodules to the proper state. If this doesn't help, try deinit followed by update as explained here https://git-scm.com/docs/git-submodule#Documentation/git-submodule.txt-deinit-f--force--all--ltpathgt82308203 .

git submodule deinit --force . git submodule update --init --recursive --checkout

— Reply to this email directly, view it on GitHub https://github.com/josean-dev/dev-environment-files/issues/54#issuecomment-1848954735, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSNMLSGTISLR2ZXXCR33WDYIWU6ZAVCNFSM6AAAAABAJXQ4UCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBYHE2TINZTGU . You are receiving this because you authored the thread.Message ID: @.***>

solaSell commented 6 months ago

Parthbera: Thanks. Your tips saved the day!

solaSell commented 6 months ago

Parthbera: Thanks. Your tips saved the day!