neoclide / coc-lists

Common lists for coc.nvim
264 stars 24 forks source link

coc-lists cant find tags from subdirectories #104

Closed garyhurtz closed 3 years ago

garyhurtz commented 3 years ago

I am trying to get tags working from coc-lists, but am running into an issue when trying to access tags from a subdirectory of the project root directory.

My setup works fine with vanilla nvim tags from either project root or a subdirectory. With coc-lists, however, I am able to access tags from the project root directory, but when I try to access tags from a subdirectory I get the following error:

[coc.nvim]: Uncaught exception: ENOENT: no such file or directory, open '/home/gary/projects/name/subname/home/gary/projects/name/tags'

:echo tagfiles() from project root returns ['tags'], and doing so from the sub-directory returns ['/home/gary/projects/name/tags'], both of which are correct.

The error indicates that the code interprets the path from the subdirectory as a relative path.

coc-list extensions indicates that I am on the latest version:

* coc-lists 1.3.14 ~/.config/coc/extensions/node_modules/coc-lists