PowerShell / PowerShell/PowerShellEditorServices

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

オープン
#864 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

Area-Build & Release Issue-Bug
主要言語
C#
スター
767
フォーク
266
平均マージ
3日 16時間
マージ済み PR(30日)
1

説明

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)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず LoaderException.txt と EditorServices-reportlogs.zip 内の診断ログを読み、次に VSCode preview 2.0.0 からの PowerShellEditorServices のインポート失敗を再現します。netstandard アセンブリの読み込み失敗を追跡します。モジュールがインポートされ、報告された Add-Type エラーなしで VSCode が起動すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp, powershell
領域
tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。