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

Link protests overwriting an existing item if the (sub-)nameclass is changed #642

Open
abrudz opened this issue May 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@abrudz
Copy link
Member

abrudz commented May 8, 2024

Describe the bug
Link protests overwriting an existing item if the (sub-)nameclass is changed compared to the existing value. This can e.g. happen if editing dfn, giving it the same name as an existing tradfn (i.e. this has nothing to do with the specific use of add in the repro below). Link ends up with an orphaned file.

To Reproduce

      ]create # C:\tmp\issue
Linked: # ←→ C:\tmp\issue
      ⎕FX'baz' 'baz'
      ]add baz
Added: #.baz
      baz←{baz}
      ]add baz
Link Warning: Cannot write baz to "C:/tmp/issue/baz.aplf" - that file defines baz
Link Warning: Writing baz to file "C:/tmp/issue/baz~2.aplf"
Added: #.baz

Expected behaviour
Silently overwrite the existing item (at least if compatible, i.e. 3/4 and 2/9).

Desktop (please complete the following information):

  • OS: Windows
  • APL version: 20.0.49263 64-bit Unicode
  • ⎕SE.Link.Version: 4.0.17
@abrudz abrudz added the bug Something isn't working label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant