如何解决“错误:未使用的文件” DefinitelyTyped解析错误?

时间:2020-08-05 14:18:55

标签: definitelytyped

请参见https://github.com/DefinitelyTyped/DefinitelyTyped/pull/46569https://github.com/DefinitelyTyped/DefinitelyTyped/runs/949474555?check_suite_focus=true

> definitely-typed@0.0.3 test /home/runner/work/DefinitelyTyped/DefinitelyTyped
> node node_modules/@definitelytyped/dtslint-runner/dist/index.js --path .

Using local DefinitelyTyped at .
Parsing definitions...
Found 6987 packages.
Parsing in 2 child process(es)...
Error: Unused file ./types/refractor/lang/agda.d.ts (used files: ["markdown.d.ts"])
    at checkAllUsedRecur (/home/runner/work/DefinitelyTyped/DefinitelyTyped/node_modules/@definitelytyped/definitions-parser/dist/lib/definition-parser.js:420:23)
    at checkAllUsedRecur (/home/runner/work/DefinitelyTyped/DefinitelyTyped/node_modules/@definitelytyped/definitions-parser/dist/lib/definition-parser.js:413:13)
    at checkAllFilesUsed (/home/runner/work/DefinitelyTyped/DefinitelyTyped/node_modules/@definitelytyped/definitions-parser/dist/lib/definition-parser.js:380:5)
    at getTypingDataForSingleTypesVersion (/home/runner/work/DefinitelyTyped/DefinitelyTyped/node_modules/@definitelytyped/definitions-parser/dist/lib/definition-parser.js:158:5)
    at combineDataForAllTypesVersions (/home/runner/work/DefinitelyTyped/DefinitelyTyped/node_modules/@definitelytyped/definitions-parser/dist/lib/definition-parser.js:104:25)
    at Object.getTypingInfo (/home/runner/work/DefinitelyTyped/DefinitelyTyped/node_modules/@definitelytyped/definitions-parser/dist/lib/definition-parser.js:29:12)
    at utils_1.logUncaughtErrors (/home/runner/work/DefinitelyTyped/DefinitelyTyped/node_modules/@definitelytyped/definitions-parser/dist/lib/definition-parser-worker.js:17:50)
    at Object.logUncaughtErrors (/home/runner/work/DefinitelyTyped/DefinitelyTyped/node_modules/@definitelytyped/utils/dist/async.js:52:45)
    at process.on.message (/home/runner/work/DefinitelyTyped/DefinitelyTyped/node_modules/@definitelytyped/definitions-parser/dist/lib/definition-parser-worker.js:15:17)
    at process.emit (events.js:198:13)
Error: Parsing failed.
    at fail (/home/runner/work/DefinitelyTyped/DefinitelyTyped/node_modules/@definitelytyped/utils/dist/process.js:76:20)
    at ChildProcess.child.on (/home/runner/work/DefinitelyTyped/DefinitelyTyped/node_modules/@definitelytyped/utils/dist/process.js:63:21)
    at ChildProcess.emit (events.js:198:13)
    at finish (internal/child_process.js:817:14)
    at process._tickCallback (internal/process/next_tick.js:61:11)
npm ERR! code ELIFECYCLE
npm ERR! errno 1

0 个答案:

没有答案