Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown modifier "overwrite" stops Link.Create #681

Open
jwied opened this issue Oct 31, 2024 · 1 comment
Open

Unknown modifier "overwrite" stops Link.Create #681

jwied opened this issue Oct 31, 2024 · 1 comment
Labels
bug Something isn't working 𝗛𝗜𝗚𝗛 This has priority from the development team

Comments

@jwied
Copy link

jwied commented Oct 31, 2024

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):

  • Dyalog 19.0.50236 64-bit Unicode, BuildID 38f63899
  • OS Windows 11 (10.0.22631) 64-bit
  • Link 4.0.17
@jwied jwied added the bug Something isn't working label Oct 31, 2024
@abrudz abrudz added the 𝗛𝗜𝗚𝗛 This has priority from the development team label Dec 16, 2024
@5jt
Copy link

5jt commented Dec 29, 2024

+1

I triggered this problem when I exported my active workspace to a folder

      ]LINK.Export # /Users/sjt/Projects/dyalog/tools
Exported: # → /Users/sjt/Projects/dyalog/tools

then realised arrays is not set by default, so repeated the command with flags arrays and then overwrite set.

      ]LINK.Export # /Users/sjt/Projects/dyalog/tools -arrays
ERRORS ENCOUNTERED: ⎕SE.Link.Export: Files already exist: use the -overwrite flag to force overwriting the following files:
/Users/sjt/Projects/dyalog/tools/hex_rgb.aplf                                                                              
/Users/sjt/Projects/dyalog/tools/rgb_rgba.aplf                                                                             
/Users/sjt/Projects/dyalog/tools/rnd.aplf                                                                                  
      ]LINK.Export # /Users/sjt/Projects/dyalog/tools -arrays -overwrite
Exported: # → /Users/sjt/Projects/dyalog/tools

The overwrite flag is now set in .linkconfig:

{
  LinkVersion: { ID: "4.0.20"},

  Settings: {
    arrays: 1,
    overwrite: 1,
  },
}

Which breaks Create.

      )CLEAR
clear ws
      ]LINK.Create T /Users/sjt/Projects/dyalog/tools
Link Warning: Unknown Setting(s) in "/Users/sjt/Projects/dyalog/tools/.linkconfig":  overwrite 
ERRORS ENCOUNTERED: ⎕SE.Link.Create: Unknown modifiers:  overwrite

Workaround: remove .linkconfig.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 𝗛𝗜𝗚𝗛 This has priority from the development team
Projects
None yet
Development

No branches or pull requests

3 participants