Code Monkey home page Code Monkey logo

Comments (13)

JeroenOortwijn avatar JeroenOortwijn commented on August 16, 2024 1

Autosave and Draft save are two different things apparently.

In the Simple theme UI, you can find the Draft option here:
image
( Click on: (...) → Settings → Drafts... )

Setting Draft save interval [sec] (0 to disable) Autosave is a disabled menu item, so how would I go about setting the interval to 0?

from drawio-desktop.

macasas avatar macasas commented on August 16, 2024 1

from drawio-desktop.

m-mohamedin avatar m-mohamedin commented on August 16, 2024 1

Will be fixed in the next release
Thanks @JeroenOortwijn for the detailed analysis

from drawio-desktop.

davidjgraph avatar davidjgraph commented on August 16, 2024 1

In desktop release 22.1.16.

from drawio-desktop.

larsch avatar larsch commented on August 16, 2024 1

@davidjgraph can you reopen this please? I'm getting this issue in v23.1.5 all the time.

I have a feeling that it is related to files being stored in OneDrive, but I am unsure.

If I get the unsaved file, saved it locally, then close the file in draw.io, and close draw.io fully, I still get the same "unsaved" file if I reopen draw.io.

from drawio-desktop.

macasas avatar macasas commented on August 16, 2024

I have this same issue on mac osx

from drawio-desktop.

bulentkucuk avatar bulentkucuk commented on August 16, 2024

Same here, and quite annoying. Clearly a significant bug, and has been around for a long time.

from drawio-desktop.

m-mohamedin avatar m-mohamedin commented on August 16, 2024

Can you please provide specific steps to reproduce?

from drawio-desktop.

JeroenOortwijn avatar JeroenOortwijn commented on August 16, 2024

I'm experiencing the same problem with v22.0.3.

What happens on my system is the following:

  1. I open the file Communication overview.drawio.
  2. After waiting for like 10 seconds, I make one change (move a line segment).
  3. Immediately the red Unsaved changes. Click here to save. notice appears.
  4. 5 seconds after step 3 the file .$Communication overview.drawio.dtmp gets created.

Situation 1

If I click on the red Unsaved changes. Click here to save. notice before the file .$Communication overview.drawio.dtmp gets created, the following happens:

  • The file Communication overview.drawio gets updated.
  • 5 seconds after step 3 the file .$Communication overview.drawio.dtmp still gets created.

When I now close draw.io, and reopen the file Communication overview.drawio, it will show the Unsave changes dialog.

Situation 2

If I click on the red Unsaved changes. Click here to save. notice after the file .$Communication overview.drawio.dtmp gets created, the following happens:

  • The file Communication overview.drawio gets updated.
  • The file .$Communication overview.drawio.dtmp gets removed.

When I now close draw.io, and reopen the file Communication overview.drawio, it will not show the Unsave changes dialog.

Draw.io preferences

My draw.io preferences:

{
  "language": "en",
  "configVersion": null,
  "customFonts": [],
  "libraries": "general;uml;er;bpmn;flowchart;basic;arrows2",
  "customLibraries": [
    "L.scratchpad"
  ],
  "plugins": [],
  "recentColors": [
    "FFFFFF",
    "FF6666",
    "FF0000",
    "FF4444",
    "FF7777",
    "FF3333",
    "FF9999",
    "FFCCCC",
    "CCCCCC",
    "E6E6E6"
  ],
  "formatWidth": 240,
  "createTarget": false,
  "pageFormat": {
    "x": 0,
    "y": 0,
    "width": 1169,
    "height": 827
  },
  "search": true,
  "showStartScreen": false,
  "gridColor": "#e0e0e0",
  "darkGridColor": "#6e6e6e",
  "autosave": false,
  "resizeImages": null,
  "openCounter": 159,
  "version": 18,
  "unit": 2,
  "isRulerOn": false,
  "ui": "simple",
  "darkMode": false,
  "sketchMode": false,
  "pages": true
}

from drawio-desktop.

JeroenOortwijn avatar JeroenOortwijn commented on August 16, 2024

Workaround

Setting Draft save interval [sec] (0 to disable): from 5 to 0 causes the .$Communication overview.drawio.dtmp to not appear anymore and "fixes" this bug.

Draw.io preferences

My new draw.io preferences:

{
  "language": "en",
  "configVersion": null,
  "customFonts": [],
  "libraries": "general;uml;er;bpmn;flowchart;basic;arrows2",
  "customLibraries": [
    "L.scratchpad"
  ],
  "plugins": [],
  "recentColors": [
    "FFFFFF",
    "FF6666",
    "FF0000",
    "FF4444",
    "FF7777",
    "FF3333",
    "FF9999",
    "FFCCCC",
    "CCCCCC",
    "E6E6E6"
  ],
  "formatWidth": 240,
  "createTarget": false,
  "pageFormat": {
    "x": 0,
    "y": 0,
    "width": 1169,
    "height": 827
  },
  "search": true,
  "showStartScreen": false,
  "gridColor": "#e0e0e0",
  "darkGridColor": "#6e6e6e",
  "autosave": false,
  "resizeImages": null,
  "openCounter": 162,
  "version": 18,
  "unit": 2,
  "isRulerOn": false,
  "ui": "simple",
  "darkMode": false,
  "sketchMode": false,
  "pages": true,
  "draftSaveDelay": 0
}

from drawio-desktop.

macasas avatar macasas commented on August 16, 2024

from drawio-desktop.

larsch avatar larsch commented on August 16, 2024

This just occurred for me in v23.0.2. I get an "unsaved diagram" every time I open draw.io desktop with an earlier version of the diagram that I have definately saved. I can even save it, close draw.io, and then when I open it, draw.io shows the same unsaved diagram again.

I repeated this 6 times, but then i removed Documents\.$myfile.drawio.bkp, and the problem stopped. Shouldn't draw.io be removing this file?

Note: My Documents folder is in OneDrive. Maybe there is some interaction going on here.

from drawio-desktop.

davidjgraph avatar davidjgraph commented on August 16, 2024

The original issue is fixed, I'm going to close this.

We're aware that there are significant problems when saving to a OneDrive sync'ed folder, but all other cloud storage syncs work fine, I think there's something wrong with OneDrive's implementation.

from drawio-desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.