Add command to register/refresh newly-added ASDF systems at runtime
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- tooling
Research direction
Read the lisp-mode command definitions and the source-registry initialization used by Qlot, then review PR #2189 for the behavior it changed. Decide how to rerun the active registry configuration without replacing Qlot’s settings and whether the command targets the self connection or any connection. Done means a command makes newly added ASDF systems discoverable at runtime; the issue names no test to run.
Written by the indexing model from the issue text.
Description
Summary
There is currently no way to make a newly-added ASDF system discoverable from a running Lem instance. Lem's source registry is populated at build time (by Qlot) and is never refreshed at runtime.
This came up in #2189. While investigating that PR I verified the following ASDF behavior (SBCL 2.5.10):
| Action | New .asd (added at runtime) discovered? |
|---|---|
| nothing (warm cache) | no |
asdf:clear-source-registry |
no |
asdf:clear-configuration |
no |
asdf:initialize-source-registry (re-supply parameter) |
yes |
So asdf:clear-source-registry does not rescan disk for new .asd files — it only clears the cache, and the next lazy lookup rebuilds the same stale directory listing. Only a fresh asdf:initialize-source-registry (or ql:register-local-projects) forces a re-scan.
This means that today, to load a system dropped into a project at runtime, a user has to manually evaluate something like (asdf:initialize-source-registry ...) / (ql:register-local-projects) in the REPL.
Proposal
Add a lisp-mode command (e.g. lisp-register-local-projects / lisp-refresh-asdf-systems) that re-initializes the source registry so newly-added systems become discoverable from the self REPL without manual incantations.
Considerations:
- Should respect the Qlot environment (do not clobber Qlot's source-registry parameter — see #2189).
- Likely just re-runs the same
initialize-source-registryconfiguration that was active, rather than aclear-source-registry. - Decide whether it operates on the self connection only or any connection.
Context
- PR #2189 removed the ineffective
clear-source-registry/ build-timeinitialize-source-registrycalls. This issue tracks the follow-up enhancement to provide an explicit, working refresh mechanism.
- Dominant language
- Common Lisp
- Stars
- 3.1k
- Forks
- 261
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 133
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lem-project/lem
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
lem-project/lem#2525 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
lem-project/lem#2524 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
lem-project/lem#2488 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
lem-project/lem#2369 ·
Maintainers usually reply within 1 day
-
unix-paste-bugOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lem-project/lem#2360 ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
mcpx scan: flag unsafe tool namesPossibly taken @zeyadbadawyy claimed this today. Openarea/scan enhancement good first issue priority/medium size/small
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
rohitgollarahalli/mcpx#45 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
facebookresearch/atlas-lean#20218 ·
Maintainers usually reply within 1 day