Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Type checker error during run extension in npm:watch

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

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

評価

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

調査の方向性

src/test/unittest/noConfigDebugInit.unit.test.ts の 220 行目から開始し、npm:watch を通じて TypeScript エラーを再現します。そこで報告されるコールバックの型を周囲のテストと比較し、エラーが環境に起因するものか、コード変更が必要なものかを判断します。npm:watch が報告された型エラーなしで完了し、既存の nox lint と nox tests も引き続き成功すれば完了です。

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

説明

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

主要言語
Python
スター
2.5k
フォーク
202
平均マージ
1日 20時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

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

microsoft/debugpy のほかの issue

microsoft/debugpy の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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