Dyalog / Dyalog/link

Link.Break sometimes crashes with an error

Open
#486 1 comment 0 reactions 0 assignees View on GitHub
await repro bug
Dominant language
APL
Stars
26
Forks
11
Avg merge
1d 18h
Merged PRs (30d)
1

Description

**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
* `Command Execution Failed: VALUE ERROR: Undefined name: xxx (a ns below the one I'm intending to Break)`

(_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

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.