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 12 forks source link

Unknown modifier "overwrite" stops Link.Create #681

Open jwied opened 3 weeks ago

jwied commented 3 weeks ago

Describe the bug In Link version 4.0.17, the modifier "overwrite" is written into the .linkconfig file, when a Link.Export is performed with this option. Then Link.Create doesn´t work on this folder.

To Reproduce

  1. Have a non-empty namespace #.XY
  2. Perform Link.Export:
    opts←⎕NS''
    opts.overwrite←1 opts.arrays←1 opts.sysVars←1 opts ⎕SE.Link.Export '#.XY' 'F:\tmp\XY'
  3. Start a new Dyalog session (or )CLEAR)
  4. Perform Link.Create: ⎕SE.Link.Create '#.XY' 'F:\tmp\XY'
  5. Get this error: Link Warning: Unknown Setting(s) in "F:\tmp\XY/.linkconfig": overwrite ⎕SE.Link.Create: Unknown modifiers: overwrite

Expected behaviour Link.Create should only report this warning, but shouldn´t throw an error and stop

Desktop (please complete the following information):