Dyalog / Dyalog/link

]link.break -a has no force option

Open
#417 2 comments 0 reactions 1 assignee Claimed by @mkromberg View on GitHub
enhancement MID
Dominant language
APL
Stars
26
Forks
11
Avg merge
1d 18h
Merged PRs (30d)
1

Description

**Describe the bug**
]link.break will not work if any files or objects are out of sync. Instead it insists that a ]link.resync operation must be performed.

While that's often a useful warning, ]link.break ought to allow -force to break all the current set of links regardless of whether things are out of sync.

**To Reproduce**
1. Create a namespace
2. Link that namespace to a directory
3. Take a series of action that will put the namespace out of sync with the directory.
That can include adding removing files from the directory, or use )erase in the workspace.
4. ]link.break -force namespace
5. Error message: Unrecognized option.

**Expected behaviour**

]link.break -force namespace

Should break all the links between the workspace regardless of whether the two are out of sync.
Warnings about things being out of sync are appropriate, but not allowing the break operation is unacceptable.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Session transcript**
If applicable, copy your log in to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. macOS]
- APL version: [e.g. 18.0 Unicode 64-bit]
- `⎕SE.Link.Version`: [e.g. 2.0.1]

**Additional context**
Add any other context about the problem here.

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.