- The grant test accepts only a missing grants file as an empty list; any other read error fails it.
- The same-stamp replacement test asserts that the callback rewrote the file before it checks that
nothing installed.
- The loader's ordering test binds the job senders after `loads`, so a failing assertion releases
the held jobs before `loads` waits on them under the manual clock.
- A stored module's file is read again on its worker thread once the module
has loaded, whatever the file's modified time, and the install still skips
a file whose stamp changed since. The UI thread no longer reads the file.
- Stored and folder modules install through registry::install_for_load,
which checks for an install or removal of the id elsewhere while the
plug-ins' write lock is held, and records the module's grant in the same
step. A grant is forgotten only while the plug-in that took that revision
is still installed (registry::revoke_if_installed).
- A grant that a stored load removed and must put back for a later file is
written to grants.json first; when that write fails, the module is not
installed, and a grant put back for a module that then did not install is
removed again.
- A folder load in which a file found no loader thread is loaded again the
next time the preferences are applied. A plugin.reload keeps its report as
the folder last loaded only when no load started after it.
- Loads: a job's time is read while it is marked finished, the deadline check
reads the clock under the same lock, and only the jobs taken from the queue
fail when no worker is left. wait() counts outcomes taken with ready() as
released, so the jobs after them start.
- File › Open checks the path again after waiting for the plug-in loads.
- Tests wait for workers with bounded receives.
- crates/engine/src/store.rs: each stored plug-in's load reports how
much of its file it read. What a failed read did not read goes back to
the 512 MiB the stored plug-ins may read together, on every platform;
the permission check before the loads is removed. A file that what is
left does not cover, but would if earlier reads failed, waits until
those reads are done, so the files still install in file-name order.
Disabled files and file stamps are taken once, when the store is
listed. A file's content is compared with its loaded module at install
only when the file was modified less than 2 s before the store was
listed; the clock is read only when a file was listed. A grant the load
removed goes back for a later file with the same id only when the
grants file has no entry for the id, and each install turn reads the
grants file once. At quit, a stored load takes no locks and a folder
load does not wait for the store's turn or for another window that is
changing the plug-ins.
- crates/engine/src/cmd/plugin.rs and crates/plugins/src/registry.rs:
when a folder load turns off the file of a plug-in disabled by its id,
the disabled list is saved in the same install turn, not only when the
load ends. A change made in another window while the folder is being
listed is one the load does not undo.
- crates/ui-egui: an export and File > Open install the plug-ins still
loading before they look up the formats, and a control request waiting
for the loads no longer asks for a frame of its own.
- crates/engine/src/file_access.rs: `ScopeHandle::capture` is as on
`main` again. The new `ScopeHandle::capture_now` keeps the process's
automation roots in force at capture time, and only the Additional
Plug-ins Folder's per-file check uses it.
- New tests: a stored file replaced with one of the same length and
modified time while it loaded is skipped; another window's
`plugin.list` reports a folder still loading as loading; a grant given
elsewhere after the load removed one is kept.
- docs/plugins.md: a module whose read and load take 10 s or longer is
skipped also when it would have finished later, and at quit the app
waits for the modules already loading, for at most 10 s. File > Open
waits for the loads. The Loading
paragraph and the docs/mcp.md lines are rewrapped.
At launch the desktop app loaded every stored plug-in and every module in
the Additional Plug-ins Folder on the UI thread before the window
appeared, one after the other. A slow or panicking module held up or
ended startup.
- crates/plugins/src/loader.rs (new): `Loads` runs load jobs on up to
four threads. Each job runs inside `catch_unwind`; a panic or a load
that takes 10 s or longer fails that job alone, and the others go on.
Outcomes come back in job order.
- registry::FolderLoad and store::StoredLoad list in one step, load on
the workers and install in file-name order. A module whose id was
installed or removed in another window while it loaded is skipped.
- The desktop app loads in the background only during launch; frames
install the finished loads. Plug-in commands, commands that edit,
exports, control requests and files opened at launch wait for the
loads first; view commands and queries do not.
- The launch marker names every plug-in still loading, not only the
oldest. After a launch that stopped during the loads, the Safe Mode
choice lists all of them, and Disable Listed Plug-ins and Continue
turns them all off. `plugin.safeMode` adds `pendingItems`. A module
whose load panicked is no longer named.
Docs: docs/plugins.md, docs/mcp.md.
* svg: cut over CSS transform, CSS string quoting, and symbol unit basis to craft-svg (#789)
* build: repin craft-svg to merged craft-libs main (d20a8248)
The system font scan built each face from its name, fvar, OS/2, head and
post tables only, so a family that was found but not loaded never had
Thai in its traits. The font menus' Thai filter left such families out,
and Show Similar Fonts grouped them with the other scripts until they
were loaded.
- A face sets Thai when its OS/2 table allows it (no OS/2 table, the
Thai Unicode range, bit 24, or the Thai code page, bit 16) and its
character map has Thai, loaded or scanned.
- The scan reads the cmap table of such a face only, up to 16 MiB.
The search for a document's missing fonts reads no cmap table, so
its byte limit covers the same tables as before.
When the same segment appears more than once among the second segments,
its roots were found once per copy, and each copy's places were checked
against every second segment. The sorted places now drop exact repeats
before they are checked. Places that differ, however close, are all kept,
so the circles found do not change.
A live edit changes the document without an undo step, so the tool was
not told about it. Circles found while a preview moved the second
segment stayed cached under the same segment key, and a click after the
preview was canceled drew the cached circle instead of one touching the
segment where it is again. A first segment picked during a preview kept
its old shape the same way.
The cache key now holds the shapes of the first segment and of the
segments a circle may touch, so moving along an unchanged segment still
reuses the search. The first segment is forgotten when its shape no
longer matches the document, and a press on the second segment follows
the segments as they are at the release; a pressed segment that is gone
leaves nothing to touch.
docs/target-app-parity.md gets a line for the file.write report on a
File object's length, hidden and readonly and for the test that lists
every name the script host adds, with the tests that cover them. The
test's comment on vc no longer names another app.
Setting a File object's length truncates or pads the file, and setting
readonly or hidden changes it, but script.check reported no outside
category for those assignments. It now reports file.write and
filesWritten for them: plain and compound assignment, ++ and -- before
or after, and the property name as a string literal in brackets.
A new integration test lists every global and member the script host
adds to the JavaScript engine (the own properties of the global object,
of each object or function it holds and of each function's prototype,
compared with a plain engine) and fails when one has no row. Each name
that reaches outside the document has a probe script, and the test
checks that script.check gives it the expected outside id. vc is listed
as not checked: script.check reads scripts written for the reference
app's scripting, and what vc.run does depends on the command. The test
also checks that the checker lists every preprocessor directive the
host reads, through the new DirectiveName::ALL.
File object properties:
https://extendscript.docsforadobe.dev/file-system-access/file-object/