ide-release
Asks a running drag-lint Delphi IDE plugin not to respawn its drag-lint.exe child processes for a while -- and to drop the running one on its next request.
Read this when an engine build fails to copy drag-lint.exe because the Delphi IDE is open. ide-release writes a hold (--seconds N, 1 to 3600; 0, a negative number or no flag gives the default 120 s, and anything above 3600 is cut to 3600) so the plugin stops respawning the engine; --resume clears it and --status reports it. Since 1.59 a hold can be owned (--owner NAME): --resume --owner NAME ends only that hold, so a build and a re-parse never release each other's; --resume --all ends every hold. It frees nothing by itself.
How to run it
Full flag list: ide-release in the CLI reference.
Flags
| Flag | Argument | Meaning | Default |
|---|---|---|---|
--seconds | N | ||
--owner | NAME | ||
--resume | |||
--all | |||
--status | |||
--json |
Where to click
No IDE surface: this feature runs from the CLI (see How to run it).
Details
Asks a running drag-lint Delphi IDE plugin not to respawn its
drag-lint.exe child processes for a while -- and to drop the running one on
its next request -- so the engine binary can be rebuilt while the IDE stays
open. The verb frees nothing by itself; see below.
The problem it solves
A running Windows process holds an execute lock on its own image. The
plugin spawns drag-lint.exe lsp --stdio as a long-lived child, so an IDE that
is merely open blocks the deploy step of an engine build:
249716 lines, 12.41 seconds, 11077076 bytes code, 991240 bytes data.
ERROR: failed to stage <engine folder>\drag-lint.exe
The compile succeeded. Only the copy failed, one line later, naming the file and not the holder.
Killing the server alone does not work -- it is respawned within about a second and the build loses the race again. So this verb asks for a window, not an event: the plugin stays stopped until the hold expires.
Running it from the CLI
drag-lint ide-release [--seconds N] [--json] # hold (default 120s)
drag-lint ide-release --resume # clear the hold now
drag-lint ide-release --status [--json] # report, change nothing
drag-lint ide-release --seconds 300 --owner build-42 # an OWNED hold (1.59)
drag-lint ide-release --resume --owner build-42 # ends only build-42's hold
drag-lint ide-release --resume --all # ends every hold
Needs no index and no --db.
Writing the hold does not itself free the file
The verb writes a sentinel and returns immediately. The plugin observes it lazily -- on the next call that wants the language server -- because a timer here would be a second uninvited source of process spawns, and this plugin has shipped one of those before.
That is also why stopping the running child is the build's job:
build\stage-engine.ps1 writes the hold and kills the holder and retries.
The hold is what makes the kill stick.
So a caller that needs the lock actually gone must wait and retry. You normally
do not call this by hand at all -- build_draglint_win64.bat and
build\pack-lint-release.ps1 (release packing, since 2026-10-16) stage through
stage-engine.ps1 and get the recovery automatically.
Stopping the engine remotely (by hand)
When something else must replace or delete the deployed exe -- a manual deploy,
a release step, a script that copies over third_party\dll-win64\drag-lint.exe
-- stop the engine remotely instead of killing processes by name:
drag-lint ide-release --seconds 900 # the IDE plugin stops respawning for 15 min
drag-lint stop-now --all --wait 30 # running lsp engines close every store and exit 0
stop-now (1.52; formerly shutdown, still accepted as a hidden alias) asks running lsp engines (over their per-user maintenance pipe) to
stand down: close every store, exit 0. Its flags (--db, --wait, --dry-run,
--all, --force) are on its drag-lint --help line. ide-release --resume
lifts the hold early. Measured 2026-10-16: without this, a release pack lost the
copy race twice to short-lived engines started by other sessions.
Flags
| Flag | Meaning |
|---|---|
--seconds N | hold length; default 120; a value below 1 (or not a number) means 120, a value above 3600 is capped at 3600 |
--owner NAME | (1.59) the hold, or the resume, is NAME's: 1-64 characters of A-Z a-z 0-9 . _ -, not starting with a dot; without it the hold is the unowned one |
--resume | clear the hold immediately -- only the named owner's (or the unowned one); other owners' holds stay |
--all | with --resume: clear every owner's hold |
--status | report whether a hold is active; changes nothing |
--json | emit the stable ide-release/1 document |
Exit codes: 0 on success (including --resume when there was no hold to
clear -- that is the desired end state); 1 when the sentinel could not be
written or removed.
It expires on its own
The sentinel carries a deadline, not a duration. A build that crashes
half-way cannot leave the IDE permanently without hovers: the hold lapses and
the next hover starts a fresh server. --resume is only for getting it back
sooner.
A missing, empty, unparseable or expired sentinel means not held. That direction is deliberate -- failing open costs a blocked build, which is visible and retryable, while failing closed would leave the IDE silently mute with no error anywhere.
Holds have owners (1.59)
Up to 1.58 the hold was one un-owned file, so any --resume ended everybody's
hold: a re-parse's clean-up lifted a hold the owner set by hand, and a staging
recovery that overlapped a re-parse lifted the re-parse's (REV-158 nit 2).
Now a holder names itself with --owner NAME, and --resume --owner NAME ends
only that hold. A bare --resume ends only the unowned hold (one written
without --owner, or by a 1.58 engine); --resume --all ends every hold.
--status lists who holds (holds in --json). Scripts use a name with their
process id in it: build\stage-engine.ps1 holds as stage-engine-<pid> and
resumes that hold only, and only when it wrote one; tools\reparse-fresh-move.ps1
holds as reparse-fresh-<pid>.
Readers did not change. The bare engine-hold file is still the only thing
the plugin and the VS Code extension read: after every change it carries the
longest live owned deadline, or is deleted when nothing holds. So an IDE that
still has the 1.58 plugin loaded honours a 1.59 hold. A bare file that no owner
accounts for (a 1.58 ide-release wrote it) is adopted as the unowned hold
before anything changes, so it survives an owned resume.
A 1.58 engine's --resume still deletes the bare file, which ends the hold for
readers until the next 1.59 write restores the longest owned deadline; owned
holds still lapse at their own deadlines.
Where the sentinel lives
%LOCALAPPDATA%\drag-lint\engine-hold, containing a single UTC epoch second. Owned holds (1.59) live beside it, one file per owner in engine-hold.d\, each holding that owner's deadline; engine-hold.lock serialises writers.
Not %TEMP%, and that is not arbitrary: TEMP is per-process. A shell may
have TEMP=C:\TEMP while the IDE resolves it to %LOCALAPPDATA%\Temp, so a
sentinel written to one is invisible to the other and the hold silently never
arrives. A rendezvous between two processes cannot be built on a variable
either of them may have inherited differently.
What it does NOT cover
The long-lived language server is gated, and since session 78 so is the
plugin's job queue: reindex, lint-all, auto-document, forms-CSV and
refresh-findings jobs are DEFERRED while a hold lasts, then run when it lifts.
They are not dropped, and a job already running when the hold appears is not
interrupted -- the hold's contract is "will not start anything". That matters
beyond tidiness: a queued bare index job makes stage-engine.ps1 refuse to
stage rather than kill, and killing a bat-wrapped job leaves cmd.exe running
the next line of the bat.
Hover and lint also spawn short-lived drag-lint.exe processes, and one of
those can still hold the file for a moment; the staging recovery retries with a
backoff, which absorbs it.
The VS Code client runs its own private copy of the engine (since extension
v1.4) and, since extension 1.6.16 (drag-lint 1.65), also honours the hold:
its lsp --proxy stands down on the control channel, tells the client with a
draglint/standDown notification, and the extension waits for the hold to end
(or a quiet period) before it restarts the server. See
EDITORS.
The full update sequence (DEC-13, 2026-10-28)
Replacing a running engine -- the installer swapping an old install, or
build\stage-engine.ps1 deploying a fresh build -- is a CHANNEL stop first and
a kill only as the last resort:
drag-lint ide-release --seconds N-- the IDE plugin stops respawning.- The maintenance verb with
--all --wait 30(see the stop-now feature page) -- every engine of this user that listens on the control channel is asked to stand down:lsp,lsp --proxy(1.65),cycles --fix, and (since DEC-13) the long one-shot runsindex(single root,--project,--allwith its--jobspool) andlint-all.indexstops BETWEEN FILES, at the storage layer's file-transaction gate: no file row is half written, the WAL is checkpointed and the connection closed (no-wal/-shmsidecar), the resolver stamp is cleared so the resume re-derives every edge, and the process exits 4 (stood down, did not finish). The same command resumes.lint-allstops between files, prints the findings so far marked PARTIAL on stderr, exits 4; project-wide rules did not run.sqldoes not listen: one guarded SELECT, a kill is harmless.lint-all --no-stand-down(1.52, B50) does not open the channel at all: a measurement run is never cut to PARTIAL by a peer's request, and the maintenance verb does not list it.indexhas no such flag.
- Anything still holding the image after the wait:
stage-engine.ps1refuses when anindexrun is still alive (it did not comply), and otherwise kills only the processes running the target image, then retries the copy. - The installer (
installer\drag-lint.iss,PrepareToInstall) runs steps 1-2 against the previous install'sdrag-lint.exebefore Restart Manager is consulted; an old engine without the channel is a no-op.
Guard: tests\autotest\run_control_channel_guard.ps1 (sections W and ST).