redhat-developer / redhat-developer/vscode-java

stream error while trying to build vscode-java@1.7.0

オープン
#2,553 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

extension-start
主要言語
TypeScript
スター
2.3k
フォーク
546
平均マージ
20時間 1分
マージ済み PR(30日)
11

説明

Getting Cannot call write after a stream was destroyed error while trying to use vscode-java@1.7.0 which I built locally

Environment
  • Operating System: macOS Catalina
  • JDK version: java version "1.8.0_281" and Java(TM) SE Runtime Environment (build 1.8.0_281-b09)
  • Visual Studio Code version: 1.69
  • Java extension version: 1.7.0
Steps To Reproduce

I have built vscode-java@1.7.0 locally by following the instructions here: https://github.com/redhat-developer/vscode-java/blob/v1.7.0/CONTRIBUTING.md

  1. For Client side setup, cloned the vscode-java and checked out to v1.7.0 and then ran npm install
  2. For Server side setup, just download the latest snapshot by running the command ./node_modules/.bin/gulp download_server
  3. Then ran vsce package which generated a .vsix file
  4. Trying to launch the built extension which results with the following error:
Current Result

plugins/redhat-java-features/extension/dist/extension.js:2:1044055 root ERROR [hosted-plugin: 15563] Promise rejection not handled in one second: Error: write EPIPE , reason: Error: write EPIPE With stack trace: Error: write EPIPE at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:94:16) root ERROR [hosted-plugin: 15563] Promise rejection not handled in one second: Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed , reason: Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed root ERROR [hosted-plugin: 15563] With stack trace: Error [ERR_STREAM_DESTROYED]: Cannot call write after a stream was destroyed at doWrite (_stream_writable.js:399:19) at writeOrBuffer (_stream_writable.js:387:5) at Socket.Writable.write (_stream_writable.js:318:11)

In addition, the extension keeps on loading without showing any syntax errors.

How to resolve this issue ?
Please point me if I am building it incorrectly ?

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

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

はじめの一歩

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

調査の方向性

CONTRIBUTING.md、npm install、gulp download_server、vsce package を使用してローカルビルドを再現し、生成された .vsix を起動します。まず plugins/redhat-java-features/extension/dist/extension.js から報告されている stream エラーを調査します。ローカルでビルドした拡張機能が EPIPE または ERR_STREAM_DESTROYED エラーなしで起動すれば完了です。

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

評価

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

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

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