Emitter "@azure-tools/typespec-apiview" crashed! This is a bug.
- Dominant language
- C#
- Stars
- 135
- Forks
- 260
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 143
Description
The pipeline of error is this:
https://dev.azure.com/azure-sdk/public/_build/results?buildId=4617100&view=logs&j=011e1ec8-6569-5e69-4f06-baf193d1351e&t=91baa004-7830-58b9-b0bb-1d930da3801a
The error is
Compiling files and generating 'New' APIView for 'Quantum.Workspace'...
npm exec --no -- tsp compile . --emit=@azure-tools/typespec-apiview --option @azure-tools/typespec-apiview.emitter-output-dir=/mnt/vss/_work/_temp/0ac9fa41-89dc-4e4f-8045-0590ec4d3ab1/output/apiview.json
TypeSpec compiler v0.65.3
Emitter "@azure-tools/typespec-apiview" crashed! This is a bug.
Please file an issue at https://github.com/Azure/azure-sdk-tools/issues
Error: Unable to resolve allowed versions.
at resolveAllowedVersions (file:///mnt/vss/_work/1/s/node_modules/@azure-tools/typespec-apiview/dist/src/emitter.js:45:15)
at Object.emitApiView (file:///mnt/vss/_work/1/s/node_modules/@azure-tools/typespec-apiview/dist/src/emitter.js:142:37)
at Object.$onEmit [as emitFunction] (file:///mnt/vss/_work/1/s/node_modules/@azure-tools/typespec-apiview/dist/src/emitter.js:9:19)
at runEmitter (file:///mnt/vss/_work/1/s/node_modules/@typespec/compiler/dist/src/core/program.js:368:27)
at compile (file:///mnt/vss/_work/1/s/node_modules/@typespec/compiler/dist/src/core/program.js:124:15)
at async compileOnce (file:///mnt/vss/_work/1/s/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/compile.js:36:25)
at async compileAction (file:///mnt/vss/_work/1/s/node_modules/@typespec/compiler/dist/src/core/cli/actions/compile/compile.js:19:9)
Contributor guide
Research direction
Start with the linked Azure DevOps pipeline and reproduce the npm TypeSpec compile command for Quantum.Workspace. Inspect node_modules/@azure-tools/typespec-apiview/dist/src/emitter.js, especially resolveAllowedVersions and emitApiView, alongside the reported stack trace. Done means the emitter completes without the crash and generates the APIView output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nodejs, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100