-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warn if bibliography file does not belong to project #3305
Comments
Thanks for the suggestion, but I don't quite understand what you mean. Do you have an example? |
I had a folder structure where the IntelliJ project is in a subfolder of the root folder, whereas the bibtex library is in the root folder, e.g.
The main Latex source file had a relative bibliography reference, e.g.,
Unfortunately, I can't reproduce the issue, so maybe it was just a weird coincidence. |
Ok, I tried again and can reproduce the issue now with a fresh project. Consider the following folder structure:
and main.bib:
and main.tex % Preamble
\documentclass[11pt]{article}
% Packages
\usepackage{amsmath}
% Document
\begin{document}
\cite{Goossens1993}
\bibliography{../../main}
\bibliographystyle{plain}
\end{document} I opened the folder |
Now I understand, thanks for the example! Yes, indeed reference resolving will not work because the file is not being indexed. This is fixable I think because we can just go over all references in the project and add all referenced files to be indexed, but that might be very slow to do. |
Now with 0.9.5-alpha.3 we can also recommend users to use the remote libraries tool window to add an out-of-project bibtex file, but then an in-project one is still required. [Edit] Since 0.9.9 auto-import can be disabled, so it is a full workaround |
I recently had the case that the bibliography file was not part of the IntelliJ project. While jumping to the file worked, bibtex references (e.g. with
\cite
) did not. The reason why they don't work might not be entirely obvious to users. I suggest that Texify-IDEA adds a warning if the bibliography file does not belong to the project.The text was updated successfully, but these errors were encountered: