list: broken installed modules must not be left out silently #21

Closed
opened 2026-11-07 19:13:15 +01:00 by michael · 1 comment
Owner

Problem

list() silently leaves out an installed module whose require fails or
that has no id. The caller cannot tell "not installed" from "installed but
broken", so a broken installation looks like a missing one and nobody sees
the real problem.

Scope

  • decide how a broken module is reported: an entry in the result (for
    example with the reason), or a warning next to the result like
    result.warnings in install()
  • the reason (failed require, missing id) is kept as a daw_error/v1

Acceptance criteria

  • a module that cannot be loaded is reported, with the reason
  • a module without id is reported, with the reason
  • modules that load fine are listed exactly as before
  • tests for both broken cases
  • make test passes under Lua 5.1 and 5.4
## Problem `list()` silently leaves out an installed module whose `require` fails or that has no `id`. The caller cannot tell "not installed" from "installed but broken", so a broken installation looks like a missing one and nobody sees the real problem. ## Scope - decide how a broken module is reported: an entry in the result (for example with the reason), or a warning next to the result like `result.warnings` in install() - the reason (failed require, missing id) is kept as a daw_error/v1 ## Acceptance criteria - [ ] a module that cannot be loaded is reported, with the reason - [ ] a module without `id` is reported, with the reason - [ ] modules that load fine are listed exactly as before - [ ] tests for both broken cases - [ ] make test passes under Lua 5.1 and 5.4
Author
Owner

Done in v2.0.0: list() reports a module that cannot be read as a warning next to the result (kind module_broken, id, error as daw_error/v1), so a broken installation is no longer taken for a missing one. Tests in test_install_list.lua.

Done in v2.0.0: list() reports a module that cannot be read as a warning next to the result (kind module_broken, id, error as daw_error/v1), so a broken installation is no longer taken for a missing one. Tests in test_install_list.lua.
michael 2026-11-14 20:41:03 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/daw-module-manager#21
No description provided.