Filing a Bug Report a Maintainer Can Actually Reproduce
"It doesn't work" is the most common issue title on package trackers, and the least useful. Maintainers triage reports in batches, and the ones that get fixed first are the ones that can be reproduced in two minutes on a clean machine. Here is how to write that kind of report.
Confirm it is really the package
Before filing, rule out your own setup. Upgrade to the latest release and check whether the problem persists; the fix may already exist. Look at the changelog for the versions between yours and the latest. Then try the failing call in a fresh directory with nothing else installed. A surprising number of "bugs" turn out to be two copies of the same dependency in a tree, a stale build cache, or an unrelated plugin patching globals. If the problem disappears in isolation, the report you need to write is probably for a different project.
Build the smallest reproduction
A minimal reproduction is the shortest program that shows the wrong behaviour using only the package in question. Strip away your framework, your database and your business logic. Aim for one file and one install command. For a JavaScript library it might be:
mkdir repro && cd repro
npm init -y
npm install example-lib@3.2.1
cat > index.mjs <<'JS'
import { slugify } from "example-lib";
console.log(slugify("Ärger im Büro"));
JS
node index.mjs
# expected: arger-im-buro
# actual: rger-im-bro
The Python equivalent is a throwaway virtual environment, one pip install line with a pinned version and a short script. For Go, a tiny module with a go.mod that requires the exact version. Public services such as online sandboxes are convenient, but a script pasted into the issue survives longer than a link.
What to put in the report
| Field | Why the maintainer needs it |
|---|---|
| Package version (exact) | "Latest" changes; a version string does not. |
| Runtime and OS | Node, Python or Go version and platform often explain path, encoding or line-ending bugs. |
| Reproduction | Lets them see the failure without guessing. |
| Expected vs actual | Clarifies whether this is a bug or a misunderstanding of intended behaviour. |
| Full error text | Paste it as text in a code block, not as a screenshot, so it can be searched. |
| Last working version, if known | Narrows the search to a handful of commits. |
If the project provides an issue template or issue form, fill every field rather than deleting the template. Those fields exist because the same questions kept coming up.
Tone and follow-up
Write as if the maintainer owes you nothing, because legally and practically that is usually the case under most open source licences' warranty disclaimers. State facts, skip the urgency language, and avoid "+1" comments on existing issues; use the reaction button instead so the thread stays readable. If you find a workaround, post it, since others hitting the same bug will search for it. And if the problem is a security hole rather than an ordinary defect, do not file it publicly at all: use the private channel described in our guide to reporting vulnerabilities.