JustinGrote / JustinGrote/ModuleFast

Add-DestinationToPSModulePath sometimes fails on first init

Đang mở
#106 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
C#
Star
151
Fork
11
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
powershell
Lĩnh vực
tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
38/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.