JustinGrote / JustinGrote/ModuleFast

Add-DestinationToPSModulePath sometimes fails on first init

Offen
#106 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
C#
Sterne
151
Forks
11
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

![Image](https://github.com/user-attachments/assets/ca7dd230-d0b5-45c6-a7f9-45105b86e9d6)

EDIT: This appears to be an issue in the profile update code.
```
PS D:\MicrosoftMvp> $error[0]
Test-Path: Value cannot be null. (Parameter 'The provided Path argument was null or an empty collection.')

PS D:\MicrosoftMvp> $error[0].ScriptStackTrace
at Add-DestinationToPSModulePath, C:\Users\JGrote\Documents\PowerShell\Modules\ModuleFast\0.2.0\ModuleFast.psm1: line 1708
at Install-ModuleFast, C:\Users\JGrote\Documents\PowerShell\Modules\ModuleFast\0.2.0\ModuleFast.psm1: line 302
at , : line 1
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start at Add-DestinationToPSModulePath in ModuleFast.psm1, using the reported line 1708 and the profile update code context. Reproduce the first-initialization path that produces the null-path Test-Path error; done when first initialization completes without that error.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
powershell
Bereich
tooling
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.