Skip to content

Commit 53f8185

Browse files
gselzerclaude
andcommitted
README: describe environments prebuilt for completion
Completion no longer installs a script's missing dependencies into an overlay (since cd073e6): it builds the script's environment in the background, once its declaration has settled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent d25fb2b commit 53f8185

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

‎README.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -157,18 +157,18 @@ parameters declared. One server runs per script environment; servers
157157
unused for 10 minutes stop. Their error output goes to
158158
`code-lsp-ty-server.log`, next to Appose's environments.
159159

160-
Once a script's environment is built, by running the script (in this session
161-
or an earlier one), the server analyzes the script against it, so that the packages
162-
installed there are known too. Packages the script declares (in its
163-
`# /// script` block) but its environment lacks, e.g. a dependency you just
164-
added, are installed for completion only, into a separate directory, a moment
165-
after you stop editing the dependencies; so they are known before you run the
166-
script. This
167-
covers PyPI packages; conda packages (`[tool.pixi.dependencies]`)
168-
and environments declared in files are known once the script has run.
169-
Completion never builds a script's environment itself, and never disturbs
170-
its worker. Script parameters are known by the Python types they have at run
171-
time, e.g. images as NumPy arrays.
160+
Once a script's environment is built (in this session or an earlier one),
161+
the server analyzes the script against it, so that the packages installed
162+
there are known too. An environment not built yet, e.g. because you just
163+
added a dependency, is built in the background once the script's environment
164+
declaration has stayed the same for a few seconds; so its packages are known
165+
before you run the script, and the next run need not build it. This covers
166+
every kind of declaration: PyPI and conda packages, and environment files.
167+
A script running in the environment is waited for first, so an environment
168+
is never rebuilt beneath a running script; building replaces the
169+
environment's worker, as the script's next run would. Script parameters are
170+
known by the Python types they have at run time, e.g. images as NumPy
171+
arrays.
172172

173173
Typing never waits for the server: if its answer for a word is not ready
174174
within a moment (the first answer for a package can take a few seconds), it

0 commit comments

Comments
 (0)