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.Break sometimes crashes with an error #486

Open mbaas2 opened 2 years ago

mbaas2 commented 2 years ago

Describe the bug I often use Link.Break to remove all links from an existing NS. Often times (can't repro reliably) this fails with

(The name xxx is a sub-namespace, and which one is mentioned varies...)

When running this with ]UDEBUG ON, the error is signaled within Break:

VALUE ERROR: Undefined name: API
Init[22] {}⎕SE.Link.Break ⎕SE.CITA
           ∧

However, a simple →⎕LC re-executes the line and the problem is gone, so I suspect something just needs to be embedded in a :Trap 6

Expected behaviour Should not error.

Desktop (please complete the following information): Dyalog 18.2.45732 64-bit Unicode, BuildID 45cdfe8a
OS Windows 10 or Windows Server 2016 (10.0.19044) 64-bit
SALT 2.9, Link: 3.0.4
UCMD 2.51
.NET .NET Core 3.1.26
WS 18.2