test/plan-count-file-permission.test.ts: "cropped" / "path-cropped" variants fail on macOS — fake 120-column terminal crops the path at every possible $TMPDIR
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- cli, testing-qa
Research direction
Start with test/plan-count-file-permission.test.ts and inspect the "cropped" and "path-cropped" variants that use a fake 120-column PTY. Reproduce the path-length assumptions on macOS, then adjust the terminal width or assertion as appropriate. Done means these variants pass with macOS temp-directory paths while preserving the intended cropping checks.
Written by the indexing model from the issue text.
Description
Version: seen on v1.87.0.0 (passed once at v1.87.4.0, may be flaky rather than fixed). Platform: macOS. CI (ubuntu) is green.
These variants render into a fake 120-column PTY and compare the on-screen path. The runner nests 29 characters under $TMPDIR; the assertion only holds when $TMPDIR is <= 40 characters. macOS's default per-user temp dir is ~49 characters (/var/folders/xx/.../T) and even the shortest possible override, /private/tmp/X, yields 43 after nesting, so no Mac can pass. Suggest widening the fake terminal for these variants or asserting on the basename.
- Dominant language
- TypeScript
- Stars
- 134k
- Forks
- 19.9k
- Avg merge
- 20h 59m
- Merged PRs (30d)
- 21
Contributor 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 garrytan/gstack
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
NEEDS_ASIDE misleads when the Aside CLI is installed at ~/.local/bin (not on default macOS PATH) Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Similar issues
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100