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 10 forks source link

]Link.Add on a namespace does not work #491

Open aplteam opened 2 years ago

aplteam commented 2 years ago

Describe the bug

It seems natural to allow something like this once a Link to #.Foo has been established:

      )CS #.Foo
      ⎕NC 'Conga'
0
      )copy conga Conga
      ]Link.Add #.Foo.Conga

In a first step Link creates a new folder Conga/ which es good.

But then it throws an error:

Link Warning: ⎕SE.Link.Notify: created /.../Conga: creating #.Foo.Conga - file clash: cannot move file to existing /.../ - cannot fix #.Foo.Conga

The documentation says nothing about adding an ordinary namespace BTW.

I am on

]Tools.Version
 Dyalog  18.2.45427 64-bit Unicode, BuildID 936adc24            
 OS      Windows 10 or Windows Server 2016 (10.0.19044) 64-bit  
 Link    3.1.2                                                  
 SALT    2.9                                                    
 UCMD    2.51                                                   
 .NET    .NET Framework 4.8.4515.0                              
 WS      18.2                                                   

(This is my <02037>)