Skip to content

A badly formatted .linkconfig file leads to a value error for Name when creating a link #744

@dyavc

Description

@dyavc

Describe the bug
A badly formatted .linkconfig file leads to a value error for Name when creating a link

To Reproduce
Steps to reproduce the behaviour:
copy the attached files.zip to a directory of your choice and unzip it to extract the files
rename badlinkconfig to .linkconfig

Start dyalog and set ⎕se.dirn to point at your directory:

⎕se.dirn←'c:/tmp/linktest'
⎕se.(opts←⎕NS'')
⎕se.opts ⎕SE.Link.Create # ⎕se.dirn
VALUE ERROR: Undefined name: Name

Expected behaviour
User expects a better error. The user writes,
"The root cause of the VALUE ERROR lies inside Link.Config.SetSourceFlags expecting "Name" to exists. This ought to be verified e.g., in Link.Config.ReadConfigFile and issue proper error message.

opts ⎕SE.Link.Create #(root,'src')

SetSourceFlags[5]

)si
⎕SE.Link.Config.SetSourceFlags[5]*
⎕SE.Link.Create[170]
"

Desktop (please complete the following information):
]tools.version
Dyalog 19.0.52382 64-bit Unicode, BuildID 79f08f69
OS Windows 10 or Windows Server 2016 (10.0.19045) 64-bit
Link 4.0.20
SALT 2.915
UCMD 2.6
.NET .NET Framework 4.8.9310.0
WS 19.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions