Dyalog / link

Source code for Link – the built-in component that enables the use of text files as the primary storage mechanism for APL source code
https://dyalog.github.io/link
MIT License
19 stars 11 forks source link

link w/o flatten: getFilename hook called when new file is added to a linked folder, but with wrong apl name in args #537

Open e9gille opened 1 year ago

e9gille commented 1 year ago

Describe the bug When using the getFilename hook, the fully qualified apl name (and old name) is incorrect.

To Reproduce )clear
clear ws 3⎕NDELETE 'test'
3⎕mkdir'test/sub'
fileHandler←{''⊣⎕←⍵}
]link.create -getfilename=#.fileHandler #.test ./test Linked: #.test ←→ /Users/gil/test (⊂'r←foo' 'r←42')⎕NPUT 'test/sub/foo.aplf'
getFilename [#.test ←→ /Users/gil/test] /Users/gil/test/sub/foo.aplf #.test.foo 3.1 #.test.foo

Expected behaviour I would expect the apl name to be #.test.sub.foo

Desktop (please complete the following information): IDE: Version: 4.4.3726 Electron: 13.6.9 Chrome: 91.0.4472.164 Node: 14.16.0 Platform: MacIntel ⎕SE.Link.Version: 3.0.19