Add path to errors
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 42/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- deno, typescript
- Bereich
- cli
Rechercherichtung
Start with lib/usePantry.ts and libexec/sort.ts for the missing-pantry error, then inspect the cellar failure path referenced through useCellar.ts. Trace how pantry and installation paths are selected; done means the relevant path is printed for both missing-package and cellar repair errors.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
One thing I've noticed about making packages is that when there are errors it's hard to know exactly where I should go hacking. The reason why is because I know pkg does some magic when you cd to the pantry repo directory. So I'm just confused about what exactly is going on when it can't find things.
Here's some examples.
> pkg build khronos.org/opencl-icd-loader
error: Uncaught Error: Not in pantry: khronos.org∕opencl-headers
https://github.com/teaxyz/pantry#contributing
throw new TeaError('not-found: pantry: package.yml', {project}, )
^
at https://deno.land/x/[email protected]/src/hooks/usePantry.ts:49:13
at project (https://deno.land/x/[email protected]/src/hooks/usePantry.ts:50:5)
at Object.getDeps (file:///opt/tea/tea.xyz/brewkit/v0.44.1/lib/usePantry.ts:30:21)
at file:///opt/tea/tea.xyz/brewkit/v0.44.1/libexec/sort.ts:24:29
at ascend (https://deno.land/x/[email protected]/src/plumbing/hydrate.ts:62:31)
at ascend (https://deno.land/x/[email protected]/src/plumbing/hydrate.ts:88:19)
at eventLoopTick (ext:core/01_core.js:183:11)
at async go (https://deno.land/x/[email protected]/src/plumbing/hydrate.ts:93:5)
at async hydrate (https://deno.land/x/[email protected]/src/plumbing/hydrate.ts:102:7)
at async file:///opt/tea/tea.xyz/brewkit/v0.44.1/libexec/sort.ts:23:13
I know why the above error is thrown. But it seems that sometimes if I build something locally that I don't get the error. It would be nice if the error told me the path of the pantry because I want to manually add the missing project so I can build the next one I'm working on.
Here's another example. I have no idea what this does, so I ran it to find out.
> pkg cellar -R
repairing: micro-editor.github.io
repairing: deno.land
repairing: deno.land
repairing: deno.land
repairing: deno.land
repairing: libpng.org
repairing: khronos.org/opencl-headers
repairing: zsh.sourceforge.io
repairing: pcre.org
repairing: pcre.org
error: Uncaught Error: not-found: pcre.org=2.0.0
throw new Error(`not-found: ${pkgutils.str(installation.pkg)}`)
^
at Object.resolve (https://deno.land/x/[email protected]/src/hooks/useCellar.ts:78:13)
at eventLoopTick (ext:core/01_core.js:183:11)
at async link (https://deno.land/x/[email protected]/src/plumbing/link.ts:9:24)
So something is broke with pcre.org. But I don't know which one, the main install or the repo. Well, I played with it and figured out it was the main install. But it would be nice if paths like this were printed.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 66
- Forks
- 16
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus pkgxdev/brewkit
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
Alle Issues in pkgxdev/brewkit
Ähnliche Issues
-
bug via-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
pingdotgg/t3code#14452 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
solana-foundation/program-examples#747 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 9 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
remotion-dev/remotion#11847 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
openwatersio/slackwater#355 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
melgarafael/DeskcommCRM#1998 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag