Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Type checker error during run extension in npm:watch

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

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
testing, tooling

Hướng nghiên cứu

Bắt đầu tại dòng 220 của src/test/unittest/noConfigDebugInit.unit.test.ts và tái hiện lỗi TypeScript thông qua npm:watch. So sánh các kiểu callback được báo cáo ở đó với test xung quanh và xác định xem lỗi là do môi trường hay cần thay đổi mã; hoàn tất có nghĩa là npm:watch hoàn thành mà không có lỗi kiểu đã báo cáo và nox lint cùng nox tests hiện có vẫn vượt qua.

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

Mô tả

external

Hi
I encountered an npmwatch error while developing a process attacher.
I downloaded the distribution code, but the issue persists.
Wanna make sure this error is my local environment or common. Should I ignore this with @ts-expect-error, or should someone fix this?
BTW, the nox lint and nox tests both passed

Argument of type '(_path: any, callback: (arg0: null, arg1: Buffer) => void) => void' is not assignable to parameter of type '(path: PathOrFileDescriptor, callback: (err: ErrnoException | null, data: NonSharedBuffer) => void) => void'.
  Types of parameters 'callback' and 'callback' are incompatible.
    Type '(err: ErrnoException | null, data: NonSharedBuffer) => void' is not assignable to type '(arg0: null, arg1: Buffer<ArrayBufferLike>) => void'.
      Types of parameters 'data' and 'arg1' are incompatible.
        Type 'Buffer<ArrayBufferLike>' is not assignable to type 'NonSharedBuffer'.
          Type 'ArrayBufferLike' is not assignable to type 'ArrayBuffer'.
            Type 'SharedArrayBuffer' is not assignable to type 'ArrayBuffer'.
              Types of property '[Symbol.toStringTag]' are incompatible.
                Type '"SharedArrayBuffer"' is not assignable to type '"ArrayBuffer"'.ts(2345)

which in https://github.com/microsoft/vscode-python-src/test/unittest/noConfigDebugInit.unit.test.ts line 220
Image

Best Regards
Charles

Ngôn ngữ chính
Python
Star
2.5k
Fork
202
Merge trung bình
5 ngày 1 giờ
Pull request đã merge (30 ngày)
1

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.

Issue khác của microsoft/debugpy

Tất cả issue của microsoft/debugpy

Issue tương tự

Thêm issue về Python

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.