Dyalog / Dyalog/qSE

Non-Windows: ~/.dyalog needs to be added to the directories which are searched for Run.aplfs etc

Open
#10 8 comments 0 reactions 1 assignee Claimed by @abrudz View on GitHub
Dominant language
APL
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Description

StartupSession.aplf@9d97012

In 19.0 on non-Windows platforms we currently look in the following directories for startup files (eg Run.aplf)
/opt/mdyalog/19.0/64/unicode
/home/andys/dyalog.files
/home/andys/dyalog.190U64.files

However, we are actually putting Tatin and Cider in /home/andys/.dyalog/dyalog.190U64.files.
While we think about all of this for 20.0, the immediate problem is to allow Cider to work in 19.0 on non-Windows platforms. My suggestion is to simply add /home/andys/.dyalog/dyalog.190U64.files to the list of directories to be searched. The following seems to work:

In StartupSession.aplf replace (line 107 ish):

:If 0∊≢¨envVars
defaults←{
verSpec←{
⍵:NoSlash 2⊃4070⌶⍬ ⍝ win only: version specific folder in user docs folder
num←∊2↑'.'Cut ver
uc←'UC'/⍨80 82=⎕DR'' ⍝ unicode/classic
bits←¯2↑'32',{⍵↓⍨⍵⍳'-'}os
home,'/dyalog.',num,uc,bits,'.files'
}⍵
user←⊃⎕NPARTS verSpec ⍝ /../
verAgno←user,'dyalog.files' 'Dyalog APL Files'⊃⍨1+⍵
∊¨1 ⎕NPARTS dyalog verAgno verSpec ⍝ normalise
}win
:EndIf

with

:If 0∊≢¨envVars
defaults←{
verSpec←{
⍵:NoSlash 2⊃4070⌶⍬ ⍝ win only: version specific folder in user docs folder
num←∊2↑'.'Cut ver
uc←'UC'/⍨80 82=⎕DR'' ⍝ unicode/classic
bits←¯2↑'32',{⍵↓⍨⍵⍳'-'}os
∊¨(,\home '/.dyalog'),¨⊂'/dyalog.',num,uc,bits,'.files'
}⍵
user←⊃⊃⎕NPARTS verSpec ⍝ /../
verAgno←∊¨(,\user '.dyalog/'),¨⊂'dyalog.files' 'Dyalog APL Files'⊃⍨1+⍵
∊¨1 ⎕NPARTS (⊂dyalog),verAgno,verSpec ⍝ normalise
}win
:EndIf

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.