Skip to content

bug: WritingSystems.Delete leaves the .ldml and an idchangelog Add entry behind #607

Closed

Description

@MattGyverLee

WritingSystemOperations.Delete (System/WritingSystemOperations.py ~:429-500) only removes the writing system from the vernacular and analysis lists. Its docstring says the writing system "is removed from both the store and active lists", but:

  • WritingSystemStore/<tag>.ldml stays on disk, so ExistsInStore(tag) is still True afterwards;
  • the <Add> entry for it in WritingSystemStore/idchangelog.xml stays.

Seen live on 2026-10-02 (Sena 3): Ensure('qaa-x-zzexcl', ...) created the writing system. Delete('qaa-x-zzexcl') removed it from the lists, but qaa-x-zzexcl.ldml and <Add Producer="???">...<Id>qaa-x-zzexcl</Id></Add> both remained, and had to be removed by hand.

Ask: remove (or move to trash/, as FieldWorks does) the .ldml, and record the delete in the change log the way FieldWorks does (it writes <Delete> entries). Or, at minimum, correct the docstring.

Related closed issues: #179 and #250 (Create / Exists).


Found during FlexToolsMCP specs/exclusive-access-gate (MattGyverLee/FlexToolsMCP#343); ledger: specs/exclusive-access-gate/issues/filing-ledger.md. Filing authorized by the maintainer on 2026-10-02.

Activity

  1. added
    bugSomething isn't working
    P2Medium: narrower path broken/no-op, or missing wrapper; workaround exists
    on Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium: narrower path broken/no-op, or missing wrapper; workaround existsbugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions