Skip to content
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

Bibtex can not save file when Tex Studio is open on Windows 11 #11916

Open
2 tasks done
austindowney opened this issue Oct 11, 2024 · 4 comments
Open
2 tasks done

Bibtex can not save file when Tex Studio is open on Windows 11 #11916

austindowney opened this issue Oct 11, 2024 · 4 comments
Labels
bug Confirmed bugs or reports that are very likely to be bugs external files
Milestone

Comments

@austindowney
Copy link

JabRef version

5.15 (latest release)

Operating system

Windows

Details on version and operating system

JabRef 5.15--2024-07-10--1eb3493; Windows 11 10.0 amd64; Java 21.0.2; JavaFX 22.0.1+7

Checked with the latest development build (copy version output from About dialog)

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

If Texstudio is open, Jabref can not save the file.

Sometimes if I compile the document and try to save the .bib file during the compile it will save.

The issue is the same as reported here https://tex.stackexchange.com/questions/727245/jabref-cannot-save-file-while-texstudio-is-running

The issue has to do with Windows holding access to the file. See the errors below.

org.jabref.logic.exporter.SaveException: Problems saving: java.nio.file.FileSystemException: C:\Users\adowney2\Downloads\Curriculum_vitae\publications.bib.tmp -> C:\Users\user2\Downloads\Curriculum_vitae\publications.bib: The process cannot access the file because it is being used by another process
at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.saveDatabase(Unknown Source)
at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.save(Unknown Source)
at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.save(Unknown Source)
at [email protected]/org.jabref.gui.exporter.SaveDatabaseAction.save(Unknown Source)

Appendix

...

Log File
Paste an excerpt of your log file here
@ThiloteE ThiloteE added bug Confirmed bugs or reports that are very likely to be bugs external files labels Oct 12, 2024
@ThiloteE
Copy link
Member

My first thought would be to check, if Tex Studio is triggering Windows to lock the file (which would be an external issue and better be reported to Tex Studio), but according to the tex.stackexchange post, it is apparently possible to edit the file with Visual Studio Code, so it could be an JabRef issue. Best to test what Visual Studio Code does exactly. "Editing" does not mean "saving". According to your report, JabRef also can "edit" those files, but cannot "save".

@koppor koppor added this to the 6.0-beta milestone Oct 12, 2024
@austindowney
Copy link
Author

My first thought would be to check, if Tex Studio is triggering Windows to lock the file (which would be an external issue and better be reported to Tex Studio), but according to the tex.stackexchange post, it is apparently possible to edit the file with Visual Studio Code, so it could be an JabRef issue. Best to test what Visual Studio Code does exactly. "Editing" does not mean "saving". According to your report, JabRef also can "edit" those files, but cannot "save".

If I run the .tex file in Texstudio, I can not save changes to the .bib made in jabref until I close out of the .tex studio. I can open the .bib file in notepad ++ make edits, and save it, all while jabref cannot save it.

All of that is to say that Texstudio could be locking the file, but Notepad ++ can save it. So I don't know if this is an issue to report to Texstudio or Jabref.

@dayusun
Copy link

dayusun commented Oct 18, 2024

I have the same issue.
The version information:
JabRef 5.15--2024-07-10--1eb3493
Windows 11 10.0 amd64
Java 21.0.2
JavaFX 22.0.1+7

@joelreis
Copy link

Same problem over here, with:
JabRef 5.15--2024-07-10--1eb3493
Windows 10 10.0 amd64
Java 21.0.2
JavaFX 22.0.1+7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs external files
Projects
None yet
Development

No branches or pull requests

5 participants