Saving workspace with )SI

Learning APL or new to Dyalog? Ask "silly" questions here, without fear...

Saving workspace with )SI

Postby shallit on Mon Sep 16, 2019 8:19 am

What's the trick to saving a workspace where there is something in the state indicator?

I run my program, interrupt it with weak interrupt, then try to )SAVE, but it says

Cannot perform operation with trace/edit windows open.

But closing the window clears the state indicator, which is not what I want.
shallit
 
Posts: 14
Joined: Fri Oct 27, 2017 12:25 am

Re: Saving workspace with )SI

Postby AndyS|Dyalog on Mon Sep 16, 2019 8:23 am

If you're using Dyalog on Windows then you can select Windows -> Close all windows.

On any platform you can call 2023⌶⍬ (Close All Windows).

In either case any open editor or tracer window will be closed, but the SI stack will be untouched.
User avatar
AndyS|Dyalog
 
Posts: 228
Joined: Tue May 12, 2009 6:06 pm

Re: Saving workspace with )SI

Postby shallit on Mon Sep 16, 2019 8:29 am

Great, thanks! (Using on a Mac, btw.)

Is there some option I can set so that the editing window will not appear when I do an interrupt?
shallit
 
Posts: 14
Joined: Fri Oct 27, 2017 12:25 am

Re: Saving workspace with )SI

Postby AndyS|Dyalog on Tue Sep 17, 2019 7:49 am

The configuration parameter (environment variable) TRACE_ON_ERROR controls this behaviour.

If you would like to prevent the tracer from appearing when you interrupt your code (or indeed when your code stops with an untrapped error) then you should edit $HOME/.dyalog/dyalog.config and add
      export TRACE_ON_ERROR=0
to the file and restart APL.

To check that the environment variable has been correctly set, run
      +2 ⎕nq'.' 'GetEnvironment' 'TRACE_ON_ERROR'
which should return 0.

There's plenty more configuration parameters which can be set .. see https://help.dyalog.com/latest/Content/UserGuide/Installation%20and%20Configuration/Configuration%20Parameters.htm and remember thta for non-Windows platforms you should define the names in upper case.
User avatar
AndyS|Dyalog
 
Posts: 228
Joined: Tue May 12, 2009 6:06 pm


Return to New to Dyalog?

Who is online

Users browsing this forum: No registered users and 1 guest