On 25 Mar 2019 at 11:59, Rogier Wolff wrote:
where you've worked an hour to determine the sin/cos atan etc stuff
but then end up in the un-interruptible stream of warnings due to a
typo. Losing the work on those coordinates would cause a lot of
frustration....
I'd like to see more generic solution to that problem. I have often written something that,
while it is not giving any errors, it is taking forever to render. I realize my mistake, but (as far
as I know) there is no way to interrupt it and get back the where I can modify and retry the
render.
My current workaround is to use CTRL-A to select all, Copy, then close the program and run
it again (or reload the one my latest work was based on), and paste.
--
Magic trumps science for most people,
and wishful thinking drives a lot of decision-making.
- Joe Haldeman
I definitely think we need some way to interrupt preview or render. I've
worked on several models that take 10 minutes to render, and almost always
get into frustrating situations where I have to either wait or kill
OpenSCAD.
I did realize that I could use an external editor which does help a great
deal with this situation. (And I also like my editor better.) But it is
still annoying that there's no "interrupt" button. Is there some reason
this is difficult to implement? Is there an open issue for this feature on
github?
--
Sent from: http://forum.openscad.org/
How does an external editor help?
I do like my Notepad++, but I haven't tried using it for OpenSCAD.
On 26 Mar 2019 at 14:29, adrianv wrote:
I definitely think we need some way to interrupt preview or render. I've
worked on several models that take 10 minutes to render, and almost always
get into frustrating situations where I have to either wait or kill
OpenSCAD.
I did realize that I could use an external editor which does help a great
deal with this situation. (And I also like my editor better.) But it is
still annoying that there's no "interrupt" button. Is there some reason
this is difficult to implement? Is there an open issue for this feature on
github?
--
Sent from: http://forum.openscad.org/
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
--
Magic trumps science for most people,
and wishful thinking drives a lot of decision-making.
- Joe Haldeman
An external editor helps because when you kill OpenSCAD, your editor window remains open.
On Tue, Mar 26, 2019, at 7:23 PM, lar3ry@sasktel.net wrote:
How does an external editor help?
I do like my Notepad++, but I haven't tried using it for OpenSCAD.
On 26 Mar 2019 at 14:29, adrianv wrote:
I definitely think we need some way to interrupt preview or render. I've
worked on several models that take 10 minutes to render, and almost always
get into frustrating situations where I have to either wait or kill
OpenSCAD.
I did realize that I could use an external editor which does help a great
deal with this situation. (And I also like my editor better.) But it is
still annoying that there's no "interrupt" button. Is there some reason
this is difficult to implement? Is there an open issue for this feature on
github?
--
Sent from: http://forum.openscad.org/
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
--
Magic trumps science for most people,
and wishful thinking drives a lot of decision-making.
- Joe Haldeman
OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Well, you can debate whether it really constitutes "help" or not, but you can
set up OpenSCAD so it automatically previews if the file changes. Then you
work in your preferred editor, and when you are ready to preview, you save
and OpenSCAD goes to work. If something is wrong, you can kill OpenSCAD
without interfering with your editing activities. Or you can continue to
edit while OpenSCAD works instead of being stuck with a completely dead
window. Or you can run a 2nd OpenSCAD.
lar3ry wrote
How does an external editor help?
I do like my Notepad++, but I haven't tried using it for OpenSCAD.
--
Sent from: http://forum.openscad.org/
I tried adding an issue for this and it was closed with this note:
"Render can be cancelled already (although there are limits to imposed by
external libraries when that can happen). Preview is covered by #1195."
Issue 1195 was opened in January 2015, it looks like. So I guess don't hold
your breath on that one.
--
Sent from: http://forum.openscad.org/
As far as I know, there is currenty no means to break execution during a F5
and F6 compile.
I think the bigger issue is that you can't pause or stop execution. With a
complex model, you really want to be able to break a 3 minute render you
started
Render/F6 can be cancelled, via the button to the right of the progress bar.
http://forum.openscad.org/file/t359/Capture_F6_cancel.jpg
It happens between CGAL calls which can't be interrupted (unless someone
want to improve it), so once it enters the, often long, final union, that
can't be interupted.
Preview/F5, there is an issue
https://github.com/openscad/openscad/issues/1195 for that, contributions
are welcome.
I'd like to see more generic solution to that problem. I have often
written something that,
while it is not giving any errors, it is taking forever to render. I
realize my mistake, but (as far
as I know) there is no way to interrupt it and get back the where I can
modify and retry the
render.
My current workaround is to use CTRL-A to select all, Copy, then close the
program and run
it again (or reload the one my latest work was based on), and paste.
During a render/F6 you can Save or Save-As & Quit, if you have a slow PC it
may be clunky.
where you've worked an hour to determine the sin/cos atan etc stuff
but then end up in the un-interruptible stream of warnings due to a
typo. Losing the work on those coordinates would cause a lot of
frustration....
F5/F6 both backup the source if it has changed since the last save. See
here
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/FAQ#OpenSCAD_crashed/was_killed,_are_my_unsaved_changes_lost?
.
That is the only path for a long F5 ATM, kill the process & get the backup
if you haven't save it.
For details on external editor use see here
https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_an_external_Editor_with_OpenSCAD
.
Admin - email* me if you need anything, or if I've done something stupid...
Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.
Sent from: http://forum.openscad.org/
Thanks, Michael and Adrian. Between the stop button and the external editor,
I think I'll be pretty happy with it.
--
Sent from: http://forum.openscad.org/