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'm not sure if it's just my setup or which versions of kpsewhich are doing this but as of kpathsea version 6.3.3, the absolute paths that kpsewhich returns can have a lowercase drive letter on windows. Then vimtex#kpsewhich#find thinks this is a relative path and prepends l:root to it.
Steps to reproduce
nvim -u minimal.vim minimal.tex
:VimtexCompile
enter insert mode in the \cite command \cite{citeke|}
set nocompatible
let &runtimepath = '~/AppData/Local/nvim/plugged/vimtex,' . &runtimepath
let &runtimepath .= ',~/AppData/Local/nvim/plugged/vimtex/after'
filetype plugin indent on
syntax enable
~\texmf\bibtex\bib\minimal.bib
@article{citekey,
title = {Title},
author = {Author},
year = {Year},
journal = {Journal},
}
Expected behavior
citeke completes to citekey
Actual behavior
No completion takes place, with the error message Pattern not found.
Interesting issue. Before I look into it more closely, why do you want to put the bib file under your texmf tree? If you put it in the project root, things should work as expected. I guess it is because you share a reference file between projects?
The reason it fails is probably because of these lines:
Yeah I have a global bib file for short one-off notes. Do you think we can just change s:re_abs to allow for lowercase drive letters? I'm not sure if passing on such a path might fail somewhere else.
Description
I'm not sure if it's just my setup or which versions of
kpsewhich
are doing this but as ofkpathsea version 6.3.3
, the absolute paths thatkpsewhich
returns can have a lowercase drive letter on windows. Thenvimtex#kpsewhich#find
thinks this is a relative path and prependsl:root
to it.Steps to reproduce
nvim -u minimal.vim minimal.tex
:VimtexCompile
\cite{citeke|}
<C-X><C-O>
minimal.tex
minimal.vim
~\texmf\bibtex\bib\minimal.bib
Expected behavior
citeke
completes tocitekey
Actual behavior
Pattern not found
.:echo vimtex#bib#files()
returns[]
:echo vimtex#kpsewhich#find('minimal.bib')
returnsC:\Users\luke\Downloads\issue/c:Users/luke/texmf/bibtex/bib/minimal.bib
:echo vimtex#jobs#capture('kpsewhich minimal.bib')
returns['c:/Users/luke/texmf/bibtex/bib/minimal.bib']
Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: