redhat-developer / redhat-developer/vscode-java

stream error while trying to build vscode-java@1.7.0

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

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

extension-start
Ngôn ngữ chính
TypeScript
Star
2.3k
Fork
546
Merge trung bình
20 giờ 1 phút
Pull request đã merge (30 ngày)
11

Mô tả

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 ?

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

Tái hiện bản build cục bộ bằng CONTRIBUTING.md, npm install, gulp download_server và vsce package, sau đó khởi chạy .vsix đã tạo. Bắt đầu bằng cách kiểm tra các lỗi stream được báo cáo từ plugins/redhat-java-features/extension/dist/extension.js; hoàn tất khi extension được build cục bộ khởi chạy mà không có các lỗi EPIPE hoặc ERR_STREAM_DESTROYED.

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

Đánh giá

Công nghệ
java, typescript, vscode
Lĩnh vực
devtools
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
25/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.