4.26. CodeReady ワークスペースの変換 node-debug および node-debug2 プラグインを使用した Node.js ワークスペース
現在、OpenShift Dev Spaces ダッシュボードの Convert ボタンを使用して、非推奨 の Node.js ワークスペースを node-debug
または node-debug2
プラグインで変換すると失敗します。次のエラーメッセージが表示されます。
ワークスペースの変換に失敗しました。Failed to create a new workspace from the devfile, reason: Unable to resolve theia plugins …
OpenShift Dev Spaces 3.0 では、node-debug
および node-debug2
プラグインが js-debug
に更新されました。
回避策
-
ダッシュボードページのエディターで devfile を編集します。ダッシュボードページでエディターが無効になっている場合は、devfile の内容を新しい
devfile.yaml
ファイルにコピーします。 -
既存の v1 devfile を編集して、
ms-vscode/node-debug/latest
およびms-vscode/node-debug2/latest
をms-vscode/js-debug/latest
に置き換えます。 - Git リポジトリーにコミットします。
次のいずれかのオプションを使用して、編集した devfile から新しいワークスペースを開始します。
複製ワークスペースを開始するための
?new
URL パラメーターを使用したファクトリー URL:https://devspaces-<openshift_deployment_name>.<domain_name>#<git_repository_url>?new
- 次のように移動します。Dashboard → Create Workspace → Quick Add → Import from Git → Git Repo URL* Enter Git URL → Create & Open。
関連情報