Install and update older versions
How to install Tatin in Dyalog 18.2 and how to update older versions
Install in Dyalog 18.2
Tatin is included in Dyalog 19.0; in Dyalog 18.2 it has to be installed.
Requirements
- Dyalog 18.2 Unicode
- Link version 3.0.8 or better
]TATIN.Init
checks the requirements are met.
Download
Download the latest release of the Tatin client.
https://github.com/aplteam/Tatin/releases
Unzip the file and move folder Tatin/
to the installation folder.
Installation folder
The installation folder is at <path>/SessionExtensions/CiderTatin
where path
is:
These file paths are specific to Version 18.2:
/home/<⎕AN>/dyalog.182U<bit>.files ⍝ Linux
/Users/<⎕AN>/dyalog.182U64.files ⍝ macOS
C:\Users\<⎕AN>\Documents\Dyalog APL[-64] 18.2 Unicode Files ⍝ Windows
These file paths make Tatin available to all Dyalog versions:
/home/<⎕AN>/dyalog.files ⍝ Linux
/Users/<⎕AN>/dyalog.files ⍝ macOS
C:\Users\<⎕AN>\Documents\Dyalog APL Files ⍝ Windows
Connect user commands
Include the installation folder in SALT’s search path.
]SALT.Settings cmddir ",<installation-folder>" -p
The comma tells SALT to extend its path, not replace it.
The -p
flag makes the change permanent.
Test for inline help: in a new Dyalog session enter
]tatin -?
Expose the API
Executing any Tatin command exposes the API.
Dyalog 19.0+ exposes the Tatin API before any user command is executed.
An automated build process might need to expose the API
without first executing a command.
You can do this with a setup.dyalog
script in your MyUCMDs/
folder.
Default locations for the MyUCMDs/
folder:
/home/{username}/ ⍝ Linux
/Users/{username}/ ⍝ macOS
C:\Users\{username}\Documents\ ⍝ Windows
The Windows installer creates this folder; on other platforms, create it yourself.
Setup scripts
At launch, Dyalog looks for a monadic Setup
function in a setup.dyalog
script.
In version 19.0 the Run.aplf
function offers a better way to achieve that: setup.dyalog
superfluous.
setup.dyalog
model setup script
If you already have a setup script:
- Copy from the model script functions
IfAtLeastVersion
,GetProgramFilesFolder
andAutoLoadTatin
- Ensure your
Setup
function callsAutoLoadTatin
and, if it returns an empty vector (success), reset the command cache:{}⎕SE.SALTUtils.ResetUCMDcache -1
Update an old version of Tatin
Versions before 0.105.0
Tatin Version 0.105.0 introduced the Update
user command.
To update an earlier version:
- Remove
Tatin/
from theMyUCMDs/
folder. (See Expose the API.) - Download and install Tatin from scratch. (Also Cider, if you are using it.)
- Review your
setup.dyalog
script if you are using one.
OneDrive and versions before 0.114.0
OneDrive is cloud storage provided by Microsoft for backing up your personal folders.
A Windows user JohnDoe
who enables OneDrive changes his Documents folder:
C:\Users\JohnDoe\Documents\ ⍝ from
C:\Users\JohnDoe\OneDrive\Documents\ ⍝ to
The Dyalog installation folder is (by default) in the Documents folder, e.g.
Dyalog APL Files ⍝ version-agnostic
Dyalog APL-64 19.0 Unicode Files ⍝ version-specific
Before version 0.114.0, Tatin read environment variable USERPROFILE
to find the Documents folder.
But USERPROFILE
does not reflect use of OneDrive!
An update of Tatin would apparently succeed but, written to the wrong Documents folder,
would not appear in subsequent launches of Dyalog.
Since version 0.114.0, Tatin uses the experimental I-beam 4070⌶0
to recognise a Documents folder in OneDrive.
If you are using OneDrive and a version of Tatin older than 0.114.0:
-
Determine your Tatin home: the relative path from your OneDrive Documents folder in which your Tatin files are kept, i.e.
<dyalog-install-folder>/SessionExtensions/CiderTatin
-
Add1 to SALT’s
cmddir
the pathC:/Users/<⎕AN>/OneDrive/Documents/<tatin-home>
-
Remove from SALT’s
cmddir
the pathC:/Users/<⎕AN>/Documents/<tatin-home>
-
Remove from your file system folder
C:/Users/JohnDoe/Documents/<tatin-home>
Updates will then work as expected.
Reverting to a version older than 0.114.0
If you revert to a Tatin version older than 0.114.0, for example with
]activate -reset
you also recreate the problem.
-
See
]SALT.Settings -??
for help. ↩