Commit Graph
24332 Commits
Author SHA1 Message Date
dotCooCoo 8f66d6ce50 xtask: test-lint sleep rule reads counted loops, aliases and nested blocks
- A `while n < bound` loop that adds to or subtracts from `n` in its body
  counts its own passes, so calls in the bound (`attempts.len()`) no
  longer exempt the sleep. A condition that also has `&&` or `||` keeps
  its calls as polling evidence.
- A change to the loop or spawn closure around a reported sleep counts as
  a change to the hit, so an edit that removes the poll from the
  condition fails the changed-line check.
- `use std::thread::spawn as spawn_thread;` and
  `use std::thread::sleep as nap;` no longer bring in the bare names, and
  `thread::sleep_ms` no longer matches `thread::sleep`.
- A `thread::spawn` path counts only where a `use` binds `thread` to
  `std::thread`, so a local `mod thread` with its own `spawn` is not
  exempt.
- A `;` inside a nested block in a loop condition
  (`while !ready({ let key = 1; key })`) no longer ends the header, and a
  block after `||` stays part of the condition.
- A sleep in a `let` initializer block inside a dropped spawn closure is
  exempt like the closure's other sleeps; the same block inside a polling
  loop is still reported.
2026-12-01 17:52:24 -08:00
dotCooCoo 3fd35c5cc4 Merge main into fix/test-lint-sleep-polls 2026-12-01 17:10:02 -08:00
dotCooCoo f91fe5bf54 xtask: test-lint sleep rule checks thread spawns and real polling calls
- A dropped-handle spawn counts only as `thread::spawn` through a path,
  with or without a leading `::`, or as a bare `spawn` that a `use` brings
  in. A local `fn spawn` that runs the closure at once is reported.
- A sleep that is the whole body of a closure without braces is judged by
  the call that takes the closure: a dropped `thread::spawn` is exempt, and
  a joined one is reported even inside a polling loop.
- A `loop` used as a `let` value is checked for polling calls.
- Calls inside the sleep's own argument and inside `stringify!` are not
  polling work, and neither are `unwrap`, `expect` and the `unwrap_or`
  family.
- `Duration::new` is matched per call, with `Duration` as a whole path
  segment, so a local named `new` or `ScheduleDuration::new()` does not
  change the result.
2026-12-01 17:10:02 -08:00
.CooCoo 5970647dec Merge pull request #10508 from dotCooCoo/fix/quick-pen-touchpad-test-lint
Tests: exempt the macOS-only Quick Pen touchpad test from never-run
2026-12-01 16:18:04 -08:00
FredApps b13b1457d2 Merge pull request #5450 from Taha-Mahmoodi/svg/export-length-unit
Fix #4462: SVG export can write width and height in mm, cm or in
2026-12-02 01:07:05 +01:00
dotCooCoo a0f7ba0ed1 Tests: exempt the macOS-only Quick Pen touchpad test from never-run
main's CI fails at test-lint since #8808 merged: keys_held_during_a_touchpad_gesture_count_until_it_ends is compiled only on macOS, which no CI test leg runs. egui reports a touchpad gesture's phases only on macOS; on Windows and Linux it reads a touchpad's Ctrl+scroll as a pinch, so the test cannot run there. The allow comment names that reason.
2026-12-01 15:40:44 -08:00
FredApps 559a2205d5 Merge branch 'main' into svg/export-length-unit 2026-12-02 00:35:06 +01:00
.CooCoo 3852fa4afb Merge pull request #10484 from dotCooCoo/fix/pathops-cap-reports
Pathfinder: Divide and Live Paint report paths too complex to map
2026-12-01 15:33:36 -08:00
FredApps 5a4a558f5c Merge branch 'main' into svg/export-length-unit 2026-12-02 00:29:33 +01:00
.CooCoo 977062a652 Merge pull request #10462 from dotCooCoo/fix/colorcontrast-isolating-group-test
Tests: check the contrast answer for a Difference square in an isolating group
2026-12-01 15:19:00 -08:00
.CooCoo ae508e0179 Merge pull request #10500 from dotCooCoo/fix/reset-warning-dialogs
Preferences: Reset All Warning Dialogs turns dismissed warnings back on
2026-12-01 15:14:44 -08:00
dotCooCoo 249207671d Merge main into fix/test-lint-sleep-polls 2026-12-01 15:13:59 -08:00
dotCooCoo f5d227fe23 xtask: test-lint sleep rule reads labels, block conditions and closure return types
The poll check now:

- keeps a block condition (`while { r.load(SeqCst) } { ... }`) in the
  loop header, so the loop counts as a poll, while a `m! { ... }` macro
  before a loop still ends the statement before it;
- strips a loop label (`'outer: while ...`) before looking for the
  keyword;
- treats `move || -> () { ... }` as a spawned closure, like `move || {`;
- does not take `return ::std::thread::spawn(...);` as a dropped handle,
  since a keyword is not a path segment;
- does not count a nested `fn` item's name as a call in the loop.
2026-12-01 15:13:59 -08:00
.CooCoo aa557da659 Merge pull request #8808 from dotCooCoo/feat/quick-pen-scroll-arc
Quick Pen: Ctrl+wheel over the canvas changes the arc size
2026-12-01 14:57:33 -08:00
dotCooCoo 8662e69da8 xtask: test-lint sleep rule treats Duration::new as a clock call
A wait such as `while start.elapsed() < Duration::new(1, 0)` checks
only the clock, but the poll check counted its `new` call as a
condition and left the sleep unreported. `new` now counts as a time
call when every `new` in the loop is `Duration::new`, and the clock-only
wait cases include it.
2026-12-01 14:34:19 -08:00
.CooCoo c5ad63ace7 Merge pull request #10450 from dotCooCoo/fix/swatch-library-freeze
Library panels: a large library scrolls without rebuilding its rows every frame
2026-12-01 14:30:46 -08:00
.CooCoo f05e30191a Merge pull request #10434 from dotCooCoo/fix/tight-ui-test-values
Tests: check exact values in panel and dialog tests
2026-12-01 14:21:50 -08:00
.CooCoo 4596f1a8be Merge pull request #10374 from dotCooCoo/fix/swallowed-regression-guards
Tests: guards check the environment, not the output under test
2026-12-01 14:10:23 -08:00
dotCooCoo 827f4fc87e Tests: make isolation change the contrast answer for the grouped Difference square
The white square behind the Difference square was opaque, so the art behind
the group never reached the blend and the test gave the same answer with
isolation off. That square is now 50 % opaque. The test checks that the
isolating group gives one answer and that the same group without isolation
reports that the art behind the selection is not one color.
2026-12-01 14:10:14 -08:00
dotCooCoo 009406a696 Merge main into fix/test-lint-sleep-polls 2026-12-01 14:09:10 -08:00
.CooCoo 0667ef8644 Merge pull request #10421 from dotCooCoo/chore/test-lint-rules
xtask: test-lint reports mirror, constant-echo, fixture-only, never-run and exact-pixel tests
2026-12-01 14:01:51 -08:00
dotCooCoo 829a090cd8 xtask: test-lint sleep rule leaves out condition polls and fallback releases
The `sleep` rule reported every `thread::sleep` in test code, so 24 of the
30 hits across the workspace were the pause of a loop that waits for a
condition (a search's progress, a flag's `load`, a tool's `poll`) with a
long deadline, or a spawned thread that opens a gate after 10 s in case
the test never does. None of those make a test pass or fail on time.

The rule now leaves out:

- a sleep in a `while` or `loop` whose condition or body calls a function
  or method other than one that reads or converts a time, also when the
  sleep sits under an `if` or `match` inside that loop;
- a sleep in a closure passed to `spawn` when the call is a whole
  statement, so the test drops the thread's handle.

A loop that only waits for the clock (`elapsed`, `as_millis` and other
`Duration` reads), a counted loop, a `for` loop, a sleep under an `if`
outside a loop, and a spawned thread whose handle is kept, returned,
passed on or joined are still reported. Macros such as `println!` in a
loop do not count as a condition. The loop's head is read as a whole
statement, so braces inside it, as in `json!({})`, do not cut it short.

`cargo xtask test-lint --all` now lists 6 sleep hits instead of 30; each
of the 6 delays a gate or a poll that the test's result depends on.
2026-12-01 13:59:18 -08:00
.CooCoo eaceffc996 Merge pull request #10356 from dotCooCoo/fix/issue-10262
Fix #10262: Document Info scrolls in a short dock group
2026-12-01 13:54:30 -08:00
dotCooCoo 7183a91544 Preferences: Reset All Warning Dialogs turns dismissed warnings back on
General gets a Reset All Warning Dialogs button after the Show External
Script Warning row. It turns every warning that a Don't Show Again box
turned off back on in the Preferences window, and OK or Apply saves it.
The button is dimmed while every warning is on, so a click then changes
nothing. The warnings with a Don't Show Again box are listed in one place
(`WARNING_DIALOGS`), so a later dialog with the box joins the reset by
adding its preference there.
2026-12-01 13:52:58 -08:00
dotCooCoo 4ce98e8032 MCP: regenerate the UI catalog for the Gap Options preview text
The params text of ui.livePaintGapOptions in
crates/ui-egui/src/menus/ui_commands.rs gained the failed-preview
sentence, but crates/mcp/src/ui_catalog.rs was not regenerated, so
`cargo xtask ui-commands --check` failed in CI. This is the output of
`cargo xtask ui-commands`.
2026-12-01 13:45:26 -08:00
.CooCoo 3d51a889d1 Merge pull request #10457 from dotCooCoo/fix/heavy-filter-shortcut-test-race
Tests: hold the clock still in the heavy filter shortcut test
2026-12-01 13:45:16 -08:00
dotCooCoo 9c7777372a Merge main into fix/colorcontrast-isolating-group-test 2026-12-01 13:17:13 -08:00
dotCooCoo 813ef9b3e7 Merge main into fix/pathops-cap-reports 2026-12-01 13:16:59 -08:00
.CooCoo a5a3e40c5e Merge pull request #9087 from dotCooCoo/feat/scripts-print-printer
Scripts: Document.print prints to an installed printer and app.printerList lists the printers
2026-12-01 13:11:17 -08:00
.CooCoo 085d231803 Merge pull request #10461 from dotCooCoo/fix/sidecar-acl-test-macos
Tests: ACL replacement tests run without the acl tools
2026-12-01 10:59:51 -08:00
.CooCoo eb8e3b41bd Merge pull request #10452 from dotCooCoo/fix/halftone-merged-dot-edges
Vector Halftone: round and diamond dots stay in their cell, so dark tones join cleanly
2026-12-01 10:49:12 -08:00
dotCooCoo eb0ee2baa4 Merge main into fix/colorcontrast-isolating-group-test 2026-12-01 10:43:39 -08:00
.CooCoo c4d4ba8552 Merge pull request #10360 from dotCooCoo/fix/undocked-document-window
Windows: a floating document window moves by its title bar and its tab closes it
2026-12-01 10:42:55 -08:00
.CooCoo 7936fd6f67 Merge pull request #10153 from dotCooCoo/fix/file-new-rejects-bad-rows
New Document: file.new refuses artboard counts that are not whole numbers
2026-12-01 09:47:36 -08:00
.CooCoo d2b21eee81 Merge pull request #10145 from dotCooCoo/fix/placement-options-keeps-links
Links: Placement Options applies to the images it opened on
2026-12-01 09:47:28 -08:00
.CooCoo 9a9cdbcf33 Merge pull request #10140 from dotCooCoo/feat/symbol-drop-keeps-art
Symbols: art dropped on a symbol with Alt+Shift redefines it and stays as it was
2026-12-01 09:47:19 -08:00
.CooCoo fd24af05d7 Merge pull request #10118 from dotCooCoo/fix/layer-options-key
MCP: dialog params texts name the keys ui.inspect reports
2026-12-01 09:47:10 -08:00
dotCooCoo 66c01445d5 Pathfinder: Divide and Live Paint report paths too complex to map
When the planar map is skipped because the paths have too many pieces
(SHAPE_BUILDER_MAX_MAP_EDGES, added in 7a46d5ec56), too many segments
or exceed the sweep's work budget, Divide with open paths fell back to
the filled areas. It replaced the selection with the uncut shapes and
deleted the cutting paths without saying so. Live Paint built no faces:
Make reported the paths as too degenerate to paint, and with Gap
Detection a group could get its edges and no faces.

pathops now has try_pathfinder_with, try_live_paint and
try_live_paint_with_gaps, which return TooManyPieces in those cases
without sweeping the filled areas. Divide, Live Paint Make, Merge and
Gap Options use them and stop with an error that leaves the art
unchanged. The caps, and the fallbacks of pathfinder_with, live_paint,
live_paint_with_gaps and the Shape Builder, are unchanged.

When a Gap Options preview fails after one that found gaps, the dialog
no longer keeps drawing the earlier preview's gaps over the groups the
failure put back.

Docs: docs/mcp.md, the commands' params text and the Divide line in
docs/target-app-parity.md.
2026-12-01 09:29:56 -08:00
BFlat fcfdb51030 Merge pull request #9228 from ruchirguitar/fix/ai-locked-items-9176
Fix locked items and groups import from Adobe Illustrator files (#9176)
2026-12-02 00:27:00 +07:00
ruchirguitar 2604dab38a Copy a fallback layer lock only between layers that share a name (#9176)
A PDF part without layers comes in on one layer named for its page. When
the editing data is set aside (a stale copy of another page size, say),
pairing that layer with the editing data's one layer locked art nothing
ties to it. Layers now take locks only by a name unique on both sides.
2026-12-01 22:01:26 +05:30
dotCooCoo 602d2142e4 Merge main into chore/test-lint-rules 2026-12-01 07:41:47 -08:00
BFlat 7b5b960f33 Merge pull request #10456 from ruchirguitar/preflight-finding-menu
Preflight: add finding row context menus
2026-12-01 22:40:58 +07:00
.CooCoo bfca450f2a Merge pull request #10371 from dotCooCoo/fix/census-tests-representative
Tests: Color Effects history names check two adjustments in two languages
2026-12-01 07:37:17 -08:00
BFlat 280dce86c5 Merge pull request #10438 from ruchirguitar/fix/9022-create-outlines-context-menu
Canvas: offer Create Outlines for selected text
2026-12-01 22:21:13 +07:00
.CooCoo eeebea1b9a Merge pull request #10442 from dotCooCoo/fix/engine-test-tolerances
Tests: engine assertions check the exact drag offset, dither shares and colors
2026-12-01 07:20:16 -08:00
dotCooCoo 263eae8828 Merge main into fix/colorcontrast-isolating-group-test 2026-12-01 07:13:23 -08:00
.CooCoo 7399ed20a6 Merge pull request #10443 from dotCooCoo/fix/test-tolerances-geom
Tests: tighten loose tolerances in geom, pathops, trace and three-d
2026-12-01 07:11:08 -08:00
dotCooCoo fca9f00cd4 Tests: check the contrast answer for a Difference square in an isolating group
a_blend_mode_inside_an_isolating_group_answers_over_art_of_several_colors
only checked that color.contrast returned Ok. It now checks that the
answer has a ratio above 1 and a background color, and that the same
square in Normal mode gives a different ratio, so a contrast reading
that drops the blend mode fails the test.
2026-12-01 07:10:54 -08:00
.CooCoo 707aa4a3b6 Merge pull request #10378 from dotCooCoo/fix/cursor-scale-with-ui
Cursors: tool cursors keep their size under UI Scaling unless Scale Cursor Proportional to UI is on
2026-12-01 07:07:04 -08:00
dotCooCoo 6f4fd3e187 Tests: ACL replacement tests run without the acl tools
a_replaced_sidecar_takes_no_inherited_acl and
a_replacement_takes_no_inherited_acl_the_old_file_lacked set the folder's
default ACL with setfacl and returned early when it was missing, so on a
Linux host without the acl package they passed without checking anything.
They now write the default ACL as the system.posix_acl_default extended
attribute through rustix, check that a new file takes it, and read the
replacement's access ACL with getxattr. They skip only when the file
system keeps no ACLs (EOPNOTSUPP); any other setup error fails the test.
2026-12-01 06:59:58 -08:00