On 2021-06-14, zoumi wrote:
> Describe the bug
> I have set the tag file path with a absolute path, but gvim can't not find it.
>
> To Reproduce
> Detailed steps to reproduce the behavior:
>
> 1. create a tag file: C:\Users\zoumi.cache\HYtags
> 2. set tag file path for vim:
>
> :setl tags+=C:\Users\zoumi\.cache\HYtags,tags
>
> 3. check the file exist:
>
> echo filereadable('C:\Users\zoumi\.cache\HYtags')
>
> 4. check if vim can find this tag file
>
> echo tagfiles() "return 1
>
> Expected behavior
> echo tagfiles() should get ['C:\Users\zoumi.cache\HYtags'], but it return []
>
> Environment (please complete the following information):
>
> • Vim version
>
> VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jun 13 2021 22:02:46)
> MS-Windows 64-bit GUI version with OLE support
> Included patches: 1-2994
> Compiled by appveyor@APPVYR-WIN
>
> • OS: Windows 10 64bit
> • Terminal: GUI
It works for me, on Windows 10 with the same Vim 8.2.2994.
>From a Cygwin prompt:
$ touch 'C:\Users\gjohn\Documents\HYtags'
>From a Windows Command Prompt:
C:\Program Files\Vim\vim82>gvim -N -u NONE -i NONE
:echo filereadable('C:\Users\gjohn\Documents\HYtags')
1
:setl tags+=C:\Users\gjohn\Documents\HYtags
:echo tagfiles()
['\Users\gjohn\Documents\HYtags']
I'm afraid I can't think of any reason it wouldn't work for you.
Regards,
Gary
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20210614162711.GB18980%40phoenix.