You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
The text was updated successfully, but these errors were encountered:
I found a workaround, if you don't use ultisnips, just disable it in coc-settings.json:
# open or create coc-settings.json in vim
:CocConfig
# insert the following line config into {}
{
"snippets.ultisnips.enable": false
}
If you need to use ultisnips, create a folder called UltiSnips in your HOME directory and add the following configuration in the coc-settings.json file
# the `~` works well on Windows, Linux, Git Bash, Msys2
{
"snippets.userSnippetsDirectory": "~/UltiSnips"
}
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'
The text was updated successfully, but these errors were encountered: