MacDownApp / macdown

Open source Markdown editor for macOS.
https://macdown.uranusjr.com/
9.45k stars 1.09k forks source link

Open Recent list shows blank entries which generate 'The document “(null)” could not be opened.' error dialogs when selected #1334

Open jamesquilty opened 9 months ago

jamesquilty commented 9 months ago

On macOS Sonoma 14.3 MacDown 0.7.1/0.7.3 appears to be unable to store entries in the recent file list in File → Open Recent. The entries are blank and, when selected, generate an error dialog: MacDown Open Recent Error Dialog I see this behaviour on two separate Macs both running macOS Sonoma 14.3.

jamesquilty commented 9 months ago

Also reported in #1328.

David-Talaga commented 7 months ago

Confirmed in 14.4.1 on Intel and M1.

jasper2007111 commented 3 months ago

I also encountered this problem. I downloaded the source code and compiled it, and found that the problem still existed. This menu is automatically generated by the system. If I use Xcode to create a new project, I find it is fine. I'm still looking for the exact reason.

jasper2007111 commented 3 months ago

After my debugging, I found that this problem was caused by the inability of recentDocumentURLs in NSDocumentController to add recent files. It should be due to Apple's sandbox mechanism. In fact, newly created projects do not have this problem, and new projects do have a sandbox setting option. The solution is to change the project settings according to Xcode's recommendations.

abkrim commented 2 months ago

Confirmed in M1 and Sonoma 14.6.1

CleanShot 2024-09-12 at 07 35 51