[Bug]: just uncovered reports no uncovered changed lines on Windows
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start with scripts/coverage-diff-analysis.py and follow how it compares uncovered line paths with changed file paths. Reproduce with just uncovered on Windows and compare the reported paths; the issue also notes a UnicodeEncodeError when redirecting the full report. Done when changed uncovered lines appear in the report on Windows and redirected output handles the emoji.
Written by the indexing model from the issue text.
Description
Steps to reproduce
- On Windows, check out a branch whose changes leave some lines uncovered.
- Run
just uncovered, oruv run scripts/coverage-diff-analysis.py --ide-links origin/developfor the full report.
Expected
The report lists the changed lines that the tests do not cover, as it does on Linux and macOS.
Actual
just uncovered prints nothing. The full report says "No intersection found - all changed lines are covered!" and "Coverage gap in changed code: 0/N lines", while its own list of uncovered lines includes changed lines.
The uncovered lines are listed with absolute Windows paths, such as C:\...\src\signal_windows.rs, while the changed lines use paths relative to the repository root with forward slashes, such as src/signal_windows.rs. So no file matches. The script makes a path relative only when it starts with / and uses / as the separator.
Notes
- Found with
RUSTUP_TOOLCHAIN=1.95.0-x86_64-pc-windows-msvcon ARM64 Windows, since coverage does not work with the native toolchain there (#1795). - With the output redirected to a file, the full report also fails with
UnicodeEncodeErroron its emoji unlessPYTHONUTF8=1is set, because Python then writes in the console's code page.
- Dominant language
- Rust
- Stars
- 3.3k
- Forks
- 67
- Avg merge
- 3h 4m
- Merged PRs (30d)
- 107
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pamburus/hl
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 87/100
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug resolved
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
pamburus/hl#1877 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
Similar issues
-
area:ui effort:medium enhancement P7 source:agent
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
documentation priority: low tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
nledford/Ladderback#1823 ·
Maintainers usually reply within 1 day
-
psmux-resurrect: restoring a session with a numeric name puts its windows into the wrong session (`new-window -t 4` is read as window 4)Possibly taken @ealwanlee claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
psmux/psmux-plugins#47 ·
-
Link Checker ReportOpenautomated issue report
Difficulty 1/5 Under an hour Newbie friendliness 76/100
ratatui/awesome-ratatui#598 ·
Maintainers usually reply within 1 day