neoclide / coc-snippets

Snippets solution for coc.nvim
970 stars 41 forks source link

Errors when I use coc-snippets under GIT BASH #346

Open markwu opened 1 year ago

markwu commented 1 year ago

image

I encountered an error after installing coc-snippets in my Windows environment.

I'm using Vim within Git Bash, which is built with MSYS. In this setup, the C:\ drive is represented as /c/.

Consequently, C:/Users/markwu becomes /c/Users/markwu in Git Bash.

However, it seems that coc-snippets is adding C:/ in front of the path, which is causing issues. Even if I manually create the directory /c/Users/markwu/.config/coc/ultisnips, coc-snippets cannot recognize it.

As a result, I'm encountering the following error when using vim:

[coc.nvim]: Error: ENOENT: no such file or directory, mkdir 'c:\c\Users\markwu\.config\coc\ultisnips'