Cannot access user commands...

APL-related discussions - a stream of APL consciousness.
Not sure where to start a discussion ? Here's the place to be
Forum rules
This forum is for discussing APL-related issues. If you think that the subject is off-topic, then the Chat forum is probably a better place for your thoughts !

Cannot access user commands...

Postby ArrayMac227 on Wed Feb 24, 2016 3:07 pm

Using 12.1 Educational, when I enter simple user command:

]?
SALT needs to be enabled
⎕THIS ⎕SE.UCMD'?'

Is there documentation describing how to enable SALT?
ArrayMac227
 
Posts: 62
Joined: Sat Sep 12, 2015 1:40 pm

Re: Cannot access user commands...

Postby DanB|Dyalog on Wed Feb 24, 2016 9:38 pm

This is strange, SALT is enabled by default.
Check the config menu, there should be a SALT tab where you enable it.
There should also be a PDF in the Dyalog folder or the help folder beneath it about SALT and UCMDs.
DanB|Dyalog
 

Re: Cannot access user commands...

Postby ArrayMac227 on Thu Feb 25, 2016 3:40 pm

Going into the SALT.PDF file, I found:

> If SALT is not enabled you can enable it using the SALT workspace. Simply type
> )LOAD SALT
> enableSALT

I'll try this, expecting to need a full pathname for the )LOAD. Thanks for the pointers.
ArrayMac227
 
Posts: 62
Joined: Sat Sep 12, 2015 1:40 pm

Re: Cannot access user commands...

Postby PGilbert on Thu Feb 25, 2016 5:37 pm

Hello ArrayMac227, another way to find if SALT is enabled is to do in the menu: Options -> Configure. In the configuration window should be able to see if SALT is enabled under the SALT tab.

SaltEnabled.png
User avatar
PGilbert
 
Posts: 436
Joined: Sun Dec 13, 2009 8:46 pm
Location: Montréal, Québec, Canada

Re: Cannot access user commands...

Postby ArrayMac227 on Thu Feb 25, 2016 9:37 pm

Found Dan's 'config menu' to be the Options -> Configure one. Did some spelunking in the enableSALT function, got an obsolete result from:

> 2 ⎕NQ'.' 'GetEnvironment' 'Dyalog'

rewrote the calling function to return a proper drive, C not R, R being the network reference on an XP box which died last spring.

I rewrote since I am leery of changing this value with something like,

> 2 ⎕NQ'.' 'SetEnvironment' 'Dyalog' 'newpath'

since this is not obviously documented and, like any Registry function, could be disastrous.
ArrayMac227
 
Posts: 62
Joined: Sat Sep 12, 2015 1:40 pm


Return to APL Chat

Who is online

Users browsing this forum: No registered users and 1 guest