-
Notifications
You must be signed in to change notification settings - Fork 388
Finding Same File Multiple Times #2533
Description
I am writing some lecture notes with a base file and using \input to input the other files.
The find functionality seems to have bugged out somewhat. When I search across the full project, it finds the same file multiple times. The following imagine shows this.
This in of itself, but a consequence is that loads of my labels are marked as 'multiply defined'.
I haven't been able to reproduce this with other files. However, even making new base and individual tex files, the issue still arises. It seems that TeXstudio fails to forget the closed files. You can see this in the following image. The file 02-markov.tex is not included anywhere in the current document. It was before, but it has been replaced with 02-markov.tex. It seems that it is not being forgotten.
The issue is still present even if I include just one file, eg 02-markov.tex mentioned above, and remove all information from it except for one section heading and its label. I then removed all the preamble and everything else from the base file. It still said "multiply defined" and the search brought up the inputted file multiple times. So, it isn't an issue with the specific files, some package or something like that. Something is causing TeXstudio to just find the same file multiple times.
Incidentally, the issue is removed if I untick "automatically load include files" in the options. This isn't great, though, as then the references to other files say "label missing". Update. Ok, so the above was true yesterday and the first time I ran TeXstudio this morning, but then when I closed and re-opened it now has gone back to the original "label defined multiple times" error even with the "automatically load include files" option unticked. Hmm...
Update. Restarting the entire computer temporarily fixes it. I open the inputted files once and there is no issue (currently!). Closing it and reopening causes the issue to arise, though. It certainly appears to me that it is just not removing the label-data from its memory when it closes the file.
- TeXstudio: 4.2.3
- Qt: 6.3.0
- OS: Windows 10
- TeX distribution: miktex
I appreciate that this is not the most recent version. I use the portable version, since I don't have admin rights, so it's not so easy to update without resetting things. Hence, I have not tried to update

