discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Bug when saving...

NH
nop head
Thu, Jun 1, 2023 6:31 PM

I think the bug happens because when you save it updates the file's date,
so the auto reload sees the new date and loads it again.

On Thu, 1 Jun 2023 at 18:24, Adrian Mariano avm4@cornell.edu wrote:

Of course losing data is not OK, but my experience suggests that waiting
for fixes to appear in OpenSCAD is not a great way to solve your problems.
The behavior of erasing the edit buffer when the save fails seems
particularly pernicious and bizarre. I also use an external editor, and
that is a good way to address this problem right away.  But I would not
trust software in general to do something reasonable if you run out of disk
space.

On Thu, Jun 1, 2023, 08:53 Rogier Wolff R.E.Wolff@bitwizard.nl wrote:

On Wed, May 31, 2023 at 07:24:15AM -0400, Adrian Mariano wrote:

I think the solution is to buy a larger drive.  I got down to 15 GB free
and got new hardware.

Losing data is never OK. Consider the frustration a cash strapped
student in India will experience when other students fill up the
network share while she's working on an openscad design.

It is reasonably simple to program: If oldfile > 0 bytes, move to
$currentfile.scad.bak and then write $currentfile.scad. Almost every
other program does something like this.

     Roger.

On Wed, May 31, 2023 at 7:16 AM Mike Aubury mike@aubit.com wrote:

I've had this a few times
OpenSCAD version 2021.01

When I save an openscad script, if the drive has run out of disk space
then the file obviously doesn't get saved, but also, it deletes
everything in the editor (as if its tried to read back what was

written)

That means - as well as potentially overwriting what was a good

script on

disk with a file of zero bytes, I also have no script that I can save
elsewhere!


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

--
** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110
**
**    Delftechpark 11 2628 XJ  Delft, The Netherlands.  KVK: 27239233
**
f equals m times a. When your f is steady, and your m is going down
your a is going up.  -- Chris Hadfield about flying up the space shuttle.


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org


OpenSCAD mailing list
To unsubscribe send an email to discuss-leave@lists.openscad.org

I think the bug happens because when you save it updates the file's date, so the auto reload sees the new date and loads it again. On Thu, 1 Jun 2023 at 18:24, Adrian Mariano <avm4@cornell.edu> wrote: > Of course losing data is not OK, but my experience suggests that waiting > for fixes to appear in OpenSCAD is not a great way to solve your problems. > The behavior of erasing the edit buffer when the save fails seems > particularly pernicious and bizarre. I also use an external editor, and > that is a good way to address this problem right away. But I would not > trust software in general to do something reasonable if you run out of disk > space. > > > On Thu, Jun 1, 2023, 08:53 Rogier Wolff <R.E.Wolff@bitwizard.nl> wrote: > >> On Wed, May 31, 2023 at 07:24:15AM -0400, Adrian Mariano wrote: >> > I think the solution is to buy a larger drive. I got down to 15 GB free >> > and got new hardware. >> >> Losing data is never OK. Consider the frustration a cash strapped >> student in India will experience when other students fill up the >> network share while she's working on an openscad design. >> >> It is reasonably simple to program: If oldfile > 0 bytes, move to >> $currentfile.scad.bak and then write $currentfile.scad. Almost every >> other program does something like this. >> >> Roger. >> >> >> > >> > On Wed, May 31, 2023 at 7:16 AM Mike Aubury <mike@aubit.com> wrote: >> > >> > > I've had this a few times >> > > OpenSCAD version 2021.01 >> > > >> > > When I save an openscad script, if the drive has run out of disk space >> > > then the file obviously doesn't get saved, but also, it deletes >> > > everything in the editor (as if its tried to read back what was >> written) >> > > >> > > That means - as well as potentially overwriting what was a good >> script on >> > > disk with a file of zero bytes, I also have no script that I can save >> > > elsewhere! >> > > >> > > _______________________________________________ >> > > OpenSCAD mailing list >> > > To unsubscribe send an email to discuss-leave@lists.openscad.org >> > > >> >> > _______________________________________________ >> > OpenSCAD mailing list >> > To unsubscribe send an email to discuss-leave@lists.openscad.org >> >> >> -- >> ** R.E.Wolff@BitWizard.nl ** https://www.BitWizard.nl/ ** +31-15-2049110 >> ** >> ** Delftechpark 11 2628 XJ Delft, The Netherlands. KVK: 27239233 >> ** >> f equals m times a. When your f is steady, and your m is going down >> your a is going up. -- Chris Hadfield about flying up the space shuttle. >> _______________________________________________ >> OpenSCAD mailing list >> To unsubscribe send an email to discuss-leave@lists.openscad.org >> > _______________________________________________ > OpenSCAD mailing list > To unsubscribe send an email to discuss-leave@lists.openscad.org >