After a failed set_item (or no local storage) the next check is scheduled with
request_repaint_after, so an idle app retries without waiting for input.
Test: a_failed_write_is_retried_at_the_next_check_without_input. Answers CodeRabbit.
Nightly launch fix under Skylar's Exec 454: the Launcher's trailing `--` no longer reaches the file list where that applied, and a refused launch no longer blocks on macOS (the reason goes to stderr and the app exits 2).
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
* cli: report an empty benchmark layout instead of panicking
Return a clear error before benchmark work starts when the document contains no spreads.
* test: report a benchmark error for documents with no spreads
Create a structurally valid round-tripped document with no spreads and require bench to exit 1 with the clear error.
* cli: report failures after keep-going scripts
Keep executing requested steps while retaining the first failure in Report, so failed scripts return nonzero before save/export.
* docs: describe first script failure in Report
Describe the first failing step without assuming all callers stop immediately.
* test: cover keep-going failure reporting and output guards
Exercise failures before and after a successful step, preserve the first failure, and require both output paths to remain absent.
Option, with or without Shift, on a letter, digit, symbol or Space types a
character on macOS, so the window takes the key before the menu bar sees
it. The bar carried such a user shortcut as its key equivalent and the
window's dispatcher left the key to the bar, so the shortcut ran nowhere.
These shortcuts now stay in the app, like modifier-less ones.
Saves: main's linked storage (links worked out for the destination,
proxies made, linked bytes let go after) applies to an IDML save too;
only the bytes differ (bytes_for_path), and the IDML export's warnings
join the save's. file.saveACopy is main's file_save_a_copy, writing IDML
for a .idml path with allowLoss as before. idml_bytes returns the
export's warnings (export_idml_report).
UI: the IDML loss question comes first; a save that goes ahead then
waits for the link checks like any other (save_when_checked).
with_save_extension is now used by every save, on the web too.
links.rs: relinked_asset follows main's link model (give_bytes with the
file read); a file handed over by the browser becomes the document's own
copy, keeping the link record when its name matches the link.
links.relinkFiles finds missing graphics with image_status and clears
the link checks after relinking, as links.relink does.
app/files.rs: relink_from_inbox runs before main's import_delivered; a
dropped image now goes to the place cursor, and the test says so.
Paste ignored a bitmap on the system clipboard: a screenshot or an image
copied in a browser had to be saved and placed. Paste now places it.
- edit.pasteImage {base64, name?, spread?, at?} embeds the image in the
selected empty frame, or in a new frame centered on `at` at its stored
resolution (72 ppi when none) and at most 60% of the page width, as
File > Place sizes it. Save and reopen and IDML export keep the pixels.
Images over 64 million pixels and names without an image extension are
refused.
- Ctrl/Cmd+V pastes the image egui delivers with no text, and Edit >
Paste reads the clipboard's bitmap, or the first image file of a copied
file list, when there is no text or the text is only an address.
- The menu read waits at most 1.5 s on its own thread, with one read in
flight at a time.
- With a native menu, objects copied here still paste as objects until
the pasteboard's change count shows a newer copy.
- ui.paste takes {image} for the control channel.
- Dropping an image places it as before; relinking from a drop is left for its own change. The web host's drop handling is main's again.
- links.relinkFiles is journaled with its files' bytes, as file.place {base64} is, so the entry replays; journal_params is gone.
- In a folder relink, a matching file that can't be read is reported under failed and leaves its graphic missing; the others relink. The status names the unread files. One chosen file still errors.
- The folder picker's change/cancel listener belongs to the call and is removed when the picker settles (no forget()).
- Relink and Update name the graphic with Path::file_name, as main does; only a link kept from the file splits on either separator.
#1478 brought its argument fixes and their tests to main, in their reviewed form: main's is_subcommand/usage_for, values_present and the two tests are kept, and the branch's earlier copies are dropped. What this branch adds on top stays: the argument-surface tests in tests/it/args.rs and perf's --frames/--chars/--images in the usage.
Review fixes for #2304:
- Each pointer-less drop asks the system where the pointer is when its raw input arrives, and
converts it with that input's window rect and the UI scale, instead of one sample taken at the
later UI pass for the whole batch. Drops with pointer events keep their own pointer, and the
system is still only asked when a drop brought none.
- system_pointer is cfg'd off on wasm with its only caller; Services::pointer's docs say a drop
without a pointer lands in the middle of the view.
- pointer.rs: the AppKit flip is a pure function with a test, documenting why it flips against
the main display only (winit's window positions use the same origin).
- Test: a filled compound path takes a dropped image through its ring, not its hole.
Split out of #2073. Port of #1307's drops and #1666.
- Several images dropped together load the place cursor in the order they
came, each run of them where it comes among the other files, after the
images it already holds; click to place them one by one.
- One image dropped off a frame that takes it loads the place cursor instead
of being placed at once; on such a frame it still fills it.
- A drop is handled in its order, each file at its own pointer, and a dialog
(a multi-page PDF's Import Options, an alert) cancels the rest.
- On the web, files dropped together are read as one batch (none if one
can't be read), and a single dropped image loads the place cursor.
Split out of #2073. winit sends no pointer events during a drag from another
application on macOS, so a Finder drop had no pointer and never found the frame
under it. The host now gives the pointer's place on the screen
(`Services::pointer`, `PointerFn`: the system's points before the UI scale,
from `NSEvent.mouseLocation`), and `take_pending_drops` uses it for the files
that came without a pointer, divided by egui's zoom factor and made relative
to the window.
Split out of #2073. Port of #1307, #1392 (grid) and #1432 (thumbnail and count).
- File › Place takes several files; images load the place cursor in the
order chosen (`place.load` `files`, `append`), after the ones it holds.
A multi-page PDF or an alert stops the batch, and a file that can't be
placed returns its error to `app.placeDialog`.
- Each click places the next image; arrow keys while dragging lay out a
grid (`place.grid`) and are handled even at a limit; Escape unloads the
rest (`place.cancel`). Undo of a loaded image's asset cancels the queue.
- The cursor shows how many images are loaded.
- On the web, Place picks several files and the inbox loads consecutive
images for the same document as one batch.