Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ApiView Generation: Error: Case "ArrayLiteral" not implemented #8578

Closed
GrahamMThomas opened this issue Jul 9, 2024 · 0 comments · Fixed by #8503
Closed

ApiView Generation: Error: Case "ArrayLiteral" not implemented #8578

GrahamMThomas opened this issue Jul 9, 2024 · 0 comments · Fixed by #8503
Assignees
Labels
APIView TypeSpec Issues or feature requests for tooling to support TypeSpec (Cadl)

Comments

@GrahamMThomas
Copy link
Member

--------------------------------------------------
Library Version                0.4.8
TypeSpec Compiler Version      0.57.0
--------------------------------------------------

Error: Command failed: npx tsp compile . --emit=@azure-tools/typespec-apiview --option @azure-tools/typespec-apiview.emitter-output-dir={project-root}/output/apiview.json
Emitter "@azure-tools/typespec-apiview" crashed! This is a bug.
Please file an issue at https://github.com/Azure/azure-sdk-tools/issues

Error: Case "ArrayLiteral" not implemented
    at ApiView.tokenize (file:///mnt/vss/_work/1/azure-rest-api-specs/specification/node_modules/@azure-tools/typespec-apiview/dist/src/apiview.js:596:23)
    at ApiView.tokenizeModelProperty (file:///mnt/vss/_work/1/azure-rest-api-specs/specification/node_modules/@azure-tools/typespec-apiview/dist/src/apiview.js:760:18)
    at ApiView.tokenize (file:///mnt/vss/_work/1/azure-rest-api-specs/specification/node_modules/@azure-tools/typespec-apiview/dist/src/apiview.js:414:22)
    at ApiView.tokenizeModelStatement (file:///mnt/vss/_work/1/azure-rest-api-specs/specification/node_modules/@azure-tools/typespec-apiview/dist/src/apiview.js:665:22)
    at ApiView.tokenize (file:///mnt/vss/_work/1/azure-rest-api-specs/specification/node_modules/@azure-tools/typespec-apiview/dist/src/apiview.js:424:22)
    at ApiView.tokenizeNamespaceModel (file:///mnt/vss/_work/1/azure-rest-api-specs/specification/node_modules/@azure-tools/typespec-apiview/dist/src/apiview.js:885:18)
    at ApiView.emit (file:///mnt/vss/_work/1/azure-rest-api-specs/specification/node_modules/@azure-tools/typespec-apiview/dist/src/apiview.js:251:22)
    at Object.emitApiView (file:///mnt/vss/_work/1/azure-rest-api-specs/specification/node_modules/@azure-tools/typespec-apiview/dist/src/emitter.js:159:21)
    at Object.$onEmit [as emitFunction] (file:///mnt/vss/_work/1/azure-rest-api-specs/specification/node_modules/@azure-tools/typespec-apiview/dist/src/emitter.js:9:19)
    at runEmitter (file:///mnt/vss/_work/1/azure-rest-api-specs/specification/node_modules/@typespec/compiler/dist/src/core/program.js:452:27)

--------------------------------------------------
Library Version                0.4.8

I'm guessing it's from this code with the new Typespec 0.57

image

@github-actions github-actions bot added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Jul 9, 2024
@maririos maririos added APIView TypeSpec Issues or feature requests for tooling to support TypeSpec (Cadl) and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Jul 9, 2024
@github-project-automation github-project-automation bot moved this to 🆕 New in ApiView Jul 9, 2024
@tjprescott tjprescott moved this from 🆕 New to ✅ Done in ApiView Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APIView TypeSpec Issues or feature requests for tooling to support TypeSpec (Cadl)
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

3 participants