Open ghost opened 5 years ago
i have this bug, could you tell me the way to solve this bug. Thank you very much!
I don't think I ever solved it (not on Windows anymore so can't check). I believe it will work if you keep your files on C:/ drive though.
Describe the bug On Windows 10, I have source code on A:\ drive. Opening a file with gutentags correctly generates the tag file in a tmp directory I have specified, and editing the file causes that tag file to be correctly updated. But if I attempt to use the tag file in vim (jump to definition in same file) gutentags does not use the file it generated, it generates another duplicate tag file, this time with an extra backslashes in the path. Each time I jump to definition, it regenerates the tag file with more backslashes. It does jump to the correct tab, but spits out an error relating to chdir function.
Steps to reproduce
g C-]
)chdir
. But it does jump to the correct definition.Share your setup
g:gutentags_cache_dir=C:\Users\Chris\vimfiles\.tmp\tags
Gutentags config:
Post the logs This is the logging for step 1 above:
Now this is the logging for step 2 (when things go wrong):
And the third time:
The chdir error is not captured in the logs, but looks like this. it spits out after trying to jump to definition, assuming it's related to the duplicate tag file problem:
Additional context Here you can see the duplicate tag files it generates for a file located at A:\Development\pcm-app\lambdas\api\src\model\simulation.js: