Closed zjbbuaa closed 4 years ago
Is that the whole error you saw? That's just the call stack trace but after the colon it should say what the error was.
It's something about the values you have configured for flags but I don't know which flag or what value it had from just that line of error output. If you can make sure you have https://github.com/google/vim-glaive installed and execute :Glaive codefmt
in your vim and share the output, that could give some clues too.
when I execute :Glavie codefmt It means it is ok with clang-format but when I execute format-code clang-format
can any one can help me?
Ah, looks like you're running a fairly old version of vim older than 7.4.1546. #158 should fix that, and improve error messages for any other similar errors that may come up.
error detected while processing function38_FormatBufferAndSetRepeat..codefmt#FormatBuffer..43_GetFormatter ..43_IsAvailable..12..codefmt#formatterhelpers#ResolveFlagToArray: