-
-
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
Index bib files outside project scope #3748
Comments
Yes it's essentially the same issue, coincidentally I was looking at that one yesterday, and the problem is that before we start indexing we cannot use any index (of commands) to figure out if there are any absolute paths that need to be indexed, as we still need to build it, so it's a bit of a catch-22. |
I may have fixed this? Please try https://plugins.jetbrains.com/plugin/download?rel=true&updateId=634490 |
Nice, although I did a quick test and it does not work for me yet. Unfortunately, I do not have too much time to look into this further this week. Stacktrace``` [4ab3996c] Failed to execute task com.intellij.util.indexing.UnindexedFilesScannerExecutorImpl$ScheduledScanningTask@438ed4b0java.lang.RuntimeException: java.util.concurrent.ExecutionException: com.intellij.openapi.diagnostic.RuntimeExceptionWithAttachments: PSI and index do not match.
|
Yes, this will never work with commands in the path. Thanks for the exception, could you try File > Invalidate Cache and Restart and see if the exception is gone? |
I tried restarting without invalidation, restart with invalidation of cache and typing the commands again. I don't have enough time to debug this further right now, but I will come back to you once I have tried it on my Linux system. Thank you for your effort already! |
Thanks for checking, I can reproduce the problem to some extent, but when I do
Then it usually started working for me. Once the things are in the index, at least it should keep working. |
I can confirm that it also works for me when executing all 4 steps :) |
However, if you think the solution is to hacky/unstable and you also think that having bib files outside the project root is a bad idea, I can also live without this feature. Maybe I can add a run configuration to copy the external files to the project and run it manually if the external files have been updated. |
Thanks for checking! I think I'll first try out this simple implementation a bit in alpha releases for the next month and see if there are unexpected consequences regarding performance. If it works I can finetune it later on. No, having bib files outside the project root is completely fine, it's just that supporting them automatically is not easy. |
Probably duplicate of #3305, but I wanted to make it more explicit. Feel free to close.
Based on my setup in #3655, I still have the issue that bib files outside the project root are not indexed. Hence, any citation from a reference in such files is marked as unresolved by TeXiFy.
Compilation and opening the file via the small
b
icon does work, but the externalbib
file is not indexed.If I add the folder of the
bib
file as a content root in Pycharm, the file is indexed.In #3655 it sounded like it is possible to index external files while in #3305 it sounds like it comes with a significant performance hit.
If it is easy to implement, I would appreciate a fix, otherwise I can just suppress the warning, that's fine for me.
The text was updated successfully, but these errors were encountered: