JustinGrote / JustinGrote/ModuleFast

Add-DestinationToPSModulePath sometimes fails on first init

Ouverte
#106 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
C#
Étoiles
151
Forks
11
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

![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
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
powershell
Domaine
tooling
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
38/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.