Dyalog / Dyalog/link

Not enough error information given if ]link.create # d:\tmp\dc fails if dc contains a subdirectory with a . in its name

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

Description

**Describe the bug**
Not enough error information given if ]link.create # d:\tmp\dc fails if dc contains a subdirectory with a . in its name

**To Reproduce**
```cmd
cd d:\tmp
mkdir dc
cd dc
mkdir dir.2
cd dir.2
# create some .aplf files inside there.
```
in Dyalog 20.0.51678 with link 4.1.4
```
]link.create # d:\tmp\dc
Link Debug: ⎕SE.Link.Create: Linked: # ←→ "d:\tmp\dc"
ERRORS ENCOUNTERED:
6 import(s) failed:
"d:\tmp\dc\dir.2\Create.aplf"
"d:\tmp\dc\dir.2\Dir.aplf"
"d:\tmp\dc\dir.2\IO.aplf"
"d:\tmp\dc\dir.2\Sharing.aplf"
"d:\tmp\dc\dir.2\Tie.aplf"
"d:\tmp\dc\dir.2\∆dlt.aplf"
Linked: # ←→ "d:\tmp\dc"
ERRORS ENCOUNTERED:
6 import(s) failed:
"d:\tmp\dc\dir.2\Create.aplf"
"d:\tmp\dc\dir.2\Dir.aplf"
"d:\tmp\dc\dir.2\IO.aplf"
"d:\tmp\dc\dir.2\Sharing.aplf"
"d:\tmp\dc\dir.2\Tie.aplf"
"d:\tmp\dc\dir.2\∆dlt.aplf"
```
**Expected behaviour**
I would have liked more details about the error. Or some documentation about this limitation. I figured out it's the `.` in `dir.2` causing the problem through trial and error.

**Desktop (please complete the following information):**
```
]tools.version
Dyalog 20.0.51678 64-bit Unicode, BuildID b6388539
OS Windows 10 or Windows Server 2016 (10.0.19045) 64-bit
Link 4.1.4
SALT 2.915
UCMD 2.6
.NET .NET 8.0.15
WS 20.0
Tatin (unavailable)
Cider (unavailable)
```
**Additional context**
A user was doing something like this:
```
]Tatin.InstallPackages Davin-FilePlus 'C:\tmp\mydir'
```
Then, I think they were doing something like:
```
]link.create # c:\tmp\mydir
```
and then getting errors.

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.