kalekundert/vim-coiled-snake

Numerous operations result in: E108: No such variable: "b:coiled_snake_should_foldsetlocal"

Opened this issue · 4 comments

When:

(1) restoring sessions
(2) reformatting the code in an external process such as :! black %
(3) reloading some files

I often get the following errors:

Error detected while processing function <SNR>32_LoadFTPlugin:
line    2:
E108: No such variable: "b:coiled_snake_should_foldsetlocal"
E488: Trailing characters

It rarely results in totally borked folding, but I do have to zR to get them. My sessionoptions used to be: set sessionoptions=buffers,curdir,skiprtp,tabpages,folds, but I get the errors even without folds (though less frequently). I can try to figurte this out later, or pin down a replicable MWE, but thought I would open the issue to see if you or others have seen this before.

Could you please test whether the fix-37 branch fixes this issue?

Thanks for the quick response! I've pulled the fix, and will update here with feedback if I am unable to any longer see the error! :)

So far, so good! Been working flawlessly. Will let you know if this happens again, but think it's been fixed. Either way, THANKS for the best Python folding I've seen yet in Vim/Neovim :) !

Thank @kalekundert :)

Also, @jeetsukumaran, I've updated the fix-37 branches with some important changes. Please update it on your end too, and let me know if there are any new problems (there shouldn't be...)

P.S. I am keeping this issue open until fix-37 gets merged to the master branch.