Updated notes are not reprinted to pdf if the pdf is open somewhere else

Steps to reproduce

Write a note; export it to PDF.

Then edit the original note, perhaps adding a paragraph, and export that to PDF with the same name as the original. A dialogue box appears, asking if you want to overwrite the old file. Click that you do.

Expected result

A new, updated PDF is written over the old one.

Actual result

The operation silently fails, leaving the old PDF untouched.

Environment

  • Windows 10, up to date
  • Obsidian version: 0.11.5

Additional information

It works for me. Do you happen to have the pdf open somewhere else. If that’s the case it can’t be overwritten and it fails silently.

I don’t think I do, unless preview counts. I will have another look.

Steps to reproduce

1 - Select a note.
2 - Export to PDF
3 - Obsidian reports “PDF Saved to ”
4 - PDF automatically opens in Acrobat Reader
5 - Alter Note
6 - Export to PDF - Save as same file as used in Step 2
7 - Confirm that existing file should be overwritten
8 - Obsidian Reports “PDF Saved to ”
9 - PDF file on disk has not changed.

Expected result

Should report “Unable to write to ” as an error

Actual result

Reports “PDF file saved to ” as a success message.

Environment

  • Operating system: Windows 10.

  • Acrobat Reader DC

  • Debug info:
    SYSTEM INFO:
    Obsidian version: v0.14.2
    Installer version: v0.14.2
    Operating system: Windows 10 Home 10.0.19043
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: Blue Topaz
    Snippets enabled: 0
    Safe mode: off
    Plugins installed: 3
    Plugins enabled: 3
    1: Citations
    2: Style Settings
    3: Dataview

RECOMMENDATIONS:
Custom theme: for cosmetic issues, please first try updating your theme to latest. If still not fixed, please try to make the issue happen in the help vault or disable community theme and snippets.
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the help vault or disable community plugins.


Additional information

Thanks