boltex / leojs

Leo Literate Editor with Outline in Typescript
https://boltex.github.io/leojs/
MIT License
28 stars 1 forks source link

Saving a .leo does not write to Leo's log #126

Closed edreamleo closed 5 months ago

edreamleo commented 5 months ago

Control-S usually writes a "saved" message to Leo's log. However, if the desktop version of Leo is open, LeoJS opens a faux "dialog" (at the top of the vs-code window) asking whether to overwrite the file.

I answered yes. Forever after nothing more appeared in the Leo log.

This issue seems unrelated to #124.

boltex commented 5 months ago

@edreamleo

Thanks for filing this issue. But I'm not sure I understand the scenario you've described.

When you say: With both opened at the same time, I guess you had the same Leo file opened in both? Did you save with CTRL+S in leojs or in Leo? Did the other program not show a dialog saying "The leo file has changed outside of Leo, Reload?" or something similar to that upon saving in the other one? (as it should)

... and indeed, hitting 'YES' would only reload the file and its external files without writing 'saved leo file' messages in the log pane.

In any case, could you reproduce the issue if you can? and most importantly: grab a screenshot of the dialog? (or the whole desktop so I can see what the situation is more clearly)

Many Thanks!

edreamleo commented 5 months ago

@boltex Scenario (I'm not sure it will duplicate the issue). I'm making notes as I go.

image

Change the text again in LeoJS and again Save (Ctrl-S) in LeoJS. Now two dialogs appear. The first in Leo (as before) and another in LeoJS:

image

Choose "Yes" in both dialogs.

image

Notice that there is no saved message in Leo's Log (in vs-code). But perhaps this is OK because of the reverted and reloaded message.

Summary

I do not see any strange behavior. I'll close this issue and reopen only if I can replicate.

edreamleo commented 5 months ago

Closing this issue because I can't replicate any concerning behavior.