On 5/30/19 7:21 PM, Richard Kimberly Heck wrote: > On 5/30/19 6:27 PM, Julien SCORDIA wrote: >> On 5/31/19 12:16 AM, Richard Kimberly Heck wrote: >>> […] >>>>>> 2/ With or without the code modification proposed above, I have remarked >>>>>> that indicating a biblio file in the current directory does not work. It >>>>>> seems strange, something may be wrong on my machine. >>>>> In what way does it not work? >>>> I have just reproduced the problem on my Linux machine, in an empty >>>> file/new test user with LyX-2.3.2. Scenario below, can you reproduce it? >>>> >>> I did not reproduce, but I have a theory about this: There's another >>> file biblio.bib elsewhere on your machine that LyX is for some reason >>> finding. (We use kpsewhich to try to find such files, though I'm a bit >>> puzzled why in this case.) Try running with "-dbg files". You should get >>> a report at some point of the form >>> >>> Reading file location for [[fileid]] >>> Found at: [path] >>> >>> I'll bet you find those seven references there. >> Thanks, indeed it allowed to find the bibliography file where these >> seven references are; this is a bibliography file of my Debian LaTeX >> distribution: >> >> Buffer.cpp (2435): Reading file location for ../biblio >> Buffer.cpp (2442): Found at: /home/test_user/biblio.bib >> Buffer.cpp (4877): Reloading bibinfo cache. >> Buffer.cpp (2435): Reading file location for biblio >> Buffer.cpp (2442): Found at: >> /usr/share/texlive/texmf-dist/bibtex/bib/msc/biblio.bib >> Buffer.cpp (2435): Reading file location for biblio >> Buffer.cpp (2442): Found at: >> /usr/share/texlive/texmf-dist/bibtex/bib/msc/biblio.bib >> >> But isn't it a bug? Why the scenario of my previous message does not work? > I am not sure. As I said, I can't reproduce with 2.3.x. The code looks > as if it should first look for a local file first, but there are > conditions under which it will not do so. Is there anything you do > between opening the file and trying to insert a citation?
I can reproduce now. The trick is to start LyX from some directory that is not the one where the bibfile resides. Problem is in master as well. Riki