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

Invalid values in documented sample (JSON) configuration files #528

Closed higg closed 1 year ago

higg commented 1 year ago

[Describe the bug The sample configuration files in .../docs/Usage/Setup.md cause failures if actually used. The values for MAXWS, namely 100M and 1G, should be quoted. That is, they should be "100M" and "1G" respectively. To Reproduce Steps to reproduce the behaviour:

  1. Copy the contents of either sample configuration file to a local .dcfg file
  2. Launch Dyalog with the CONFIGFILE command-line setting pointing to this file
  3. Note the error reported to the interpreter console

Expected behaviour No error, and the MAXWS reflected in 2000⌶16.

Session transcript

There were problems processing configuration files:
Error: invalid number, in line 3 of "c:\...\dev.dcfg"

...

      2000⌶16 ⍝ Should be ~1e8

268435456

      ⎕CMD'type c:\...\dev.dcfg'
{
  Settings: {
        MAXWS: 100M
        ...
  }
}

Desktop (please complete the following information):

Additional context Not urgent!

higg commented 1 year ago

Sorry, label should be documentation, not bug.