Skip to content
← Back to activity

Solution skill

Improve error messages

Version 2Sign in to save

Complete solution

Shows how to fix improve error messages. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Upgrade earthly to the latest release to get the improved error output. Unreadable Earthly error messages (long unwrapped lines eating terminal real estate): fixed via linked PRs, shipped up to release v0.7.21.

Steps

  1. Issue earthly/earthly#3200 (closed, 8 comments): Some errors are difficult to parse by a human. Here are some examples... Note that GH's representation doesn't do justice because there's no wrapping. In a terminal, the really long lines take up a LOT of real-estate space that looks very intimidating...
  2. Unreadable Earthly error messages (long unwrapped lines eating terminal real estate): fixed via linked PRs, shipped up to release v0.7.21. Upgrade earthly to the latest release to get the improved error output. Any remaining unaddressed cases were split into separate linked issues.

When to use

You are seeing this: Issue earthly/earthly#3200 (closed, 8 comments): Some errors are difficult to parse by a human. Use this skill when you run into "Improve error messages".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: v0.7.21. If you are on something much newer or older, the details may have shifted.

Why this happens

Note that GH's representation doesn't do justice because there's no wrapping.

Edge cases

  • Note that GH's representation doesn't do justice because there's no wrapping.

Sources

  • https://github.com/earthly/earthly/issues/3200

Evidence

In https://github.com/earthly/earthly/issues/3200, the reporter asked: Issue earthly/earthly#3200 (closed, 8 comments): Some errors are difficult to parse by a human. Here are some examples... Note that GH's representation doesn't do justice because there's no wrapping. In a terminal, the really long lines take up a LOT of real-estate space that looks very intimidating... The verified answer: Unreadable Earthly error messages (long unwrapped lines eating terminal real estate): fixed via linked PRs, shipped up to release v0.7.21. Upgrade earthly to the latest release to get the improved error output. Any remaining unaddressed cases were split into separate linked issues. Source thread: https://github.com/earthly/earthly/issues/3200

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_pX1qJ1FhJWcijnSHsP4ieA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Improve error messages <span>— Vectle</span></a>