PowerShell / PowerShell/PowerShellEditorServices

2.0.0 preview Module loading error (pb loading netstandard, Version=2.0.0.0)

Đang mở
#864 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Area-Build & Release Issue-Bug
Ngôn ngữ chính
C#
Star
767
Fork
266
Merge trung bình
3 ngày 16 giờ
Pull request đã merge (30 ngày)
1

Mô tả

Description

When trying to launch the PowerShell preview 2.0.0 in VSCode, I've got an error that I was able to pin down to the importation of the PowerShellEditorServices module. When trying to load the module by itself, there is three Add-Type errors. When trying those Add-Type manually, I've got the same errors that say Unable to load one or more of the requested types. I checked the LoaderException objects, and it seems to boil down to that message:

{System.IO.FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.

Files attached

EditorServices-reportlogs.zip contains:

  • vscode-powershell.log
  • Start-EditorServices-EditorServices.log (log level: diagnostic)
  • Import-Module.log (manual module importation, verbose)
  • LoaderException.txt (random loader exception among loads of identical ones)

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

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách đọc LoaderException.txt và các nhật ký chẩn đoán trong EditorServices-reportlogs.zip, sau đó tái hiện lỗi import PowerShellEditorServices từ VSCode preview 2.0.0. Truy tìm lỗi tải assembly netstandard; hoàn tất khi module được import và VSCode khởi chạy mà không có các lỗi Add-Type đã báo cáo.

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

Đánh giá

Công nghệ
csharp, powershell
Lĩnh vực
tooling
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/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.