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

Monitor @typespec/compiler next version #2753

Draft
wants to merge 34 commits into
base: main
Choose a base branch
from

Conversation

v-jiaodi
Copy link
Member

@v-jiaodi v-jiaodi commented Aug 14, 2024

Monitor @typespec/compiler dev version build
https://dev.azure.com/azure-sdk/public/_build/results?buildId=4208243&view=logs&j=aa4563e2-7f5a-5a88-019c-341451fd8a67&t=3351c2db-8046-5507-7e56-867b3895d138

step:
1.run npm install -g @typespec/compiler@next
2. common/config/rush run npx @azure-tools/typespec-bump-deps@latest pnpm-config.json --add-rush-overrides
3. packages/typespec-test run npx @azure-tools/typespec-bump-deps@latest package.json
4. packages/typespec-test run npx @azure-tools/typespec-bump-deps@latest package.json
5. run rush update && rush build
6. run rushx copy:typespec and rushx generate-tsp-only:rlc

error log:

Found configuration in D:\Js-sdk-sync\uprepo\rush.json

Rush Multi-Project Build Tool 5.120.6 - Node.js 18.19.0 (LTS)
> "npx tsx ./test/commands/gen-cadl-ranch.js --tag=rlc"

Found configuration in D:\Js-sdk-sync\uprepo\rush.json

Rush Multi-Project Build Tool 5.120.6 - Node.js 18.19.0 (LTS)
> "npx tsx ./test/commands/gen-cadl-ranch.js --tag=rlc"

Rush Multi-Project Build Tool 5.120.6 - Node.js 18.19.0 (LTS)
> "npx tsx ./test/commands/gen-cadl-ranch.js --tag=rlc"

> "npx tsx ./test/commands/gen-cadl-ranch.js --tag=rlc"


=== Start routes ===
Existing the entry file: D:\Js-sdk-sync\uprepo\packages\typespec-ts\temp\http\routes\main.tsp
TypeSpec compiler v0.61.0-dev.22


Diagnostics were reported during compilation:


error import-not-found: Couldn't resolve import "@azure-tools/typespec-ts"


Found 1 error.


No emitter was configured, no output was generated. Use `--emit <emitterName>` to pick emitter or specify it in the TypeSpec config.        

ERROR: Error: Command failed with code 1
Error: Command failed with code 1
    at ChildProcess.<anonymous> (file:///D:/Js-sdk-sync/uprepo/packages/typespec-ts/test/commands/runCommand.js:30:16)
    at ChildProcess.emit (node:events:517:28)
    at maybeClose (node:internal/child_process:1098:16)
    at Socket.<anonymous> (node:internal/child_process:450:11)
    at Socket.emit (node:events:517:28)
    at Pipe.<anonymous> (node:net:350:12)
generate-cadl-ranch: 5.807s
Error: Failed calling npx tsx ./test/commands/gen-cadl-ranch.js --tag=rlc.  Exit code: 1

@qiaozha qiaozha added the p0 priority 0 label Aug 28, 2024
@MaryGao
Copy link
Member

MaryGao commented Oct 9, 2024

@tadelesh we have below tcgc error when generating tsp here and could you help verify why?

tsp: https://github.com/Azure/autorest.typescript/tree/main/packages/typespec-test/test/widget_dpg/spec
error:

TypeError: Cannot read properties of undefined (reading 'kind')
 
TypeError: Cannot read properties of undefined (reading 'kind')
    at getClientTypeWithDiagnostics (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-corTypeError: Cannot read properties of undefined (reading 'kind')
    at getClientTypeWithDiagnostics (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-cor    at getClientTypeWithDiagnostics (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.47.0-dev.10_l7jrr73zx765sxmuxn22t3astq/node_modules/@azure-tools/typespec-client-generator-core/src/types.ts:994:16)
    at updateTypesFromOperation (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.47.0-dev.10_l7jrr73zx765sxmuxn22t3astq/node_modules/@azure-tools/typespec-client-generator-core/src/types.ts:1561:9)
    at getAllModelsWithDiagnostics (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.47.0-dev.10_l7jrr73zx765sxmuxn22t3astq/node_modules/@azure-tools/typespec-client-generator-core/src/types.ts:1785:26)
    at getSdkPackage (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.47.0-dev.10_l7jrr73zx765sxmuxn22t3astq/node_modules/@azure-tools/typespec-client-generator-core/src/package.ts:737:43)
    at createSdkContext (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.47.0-dev.10_l7jrr73zx765sxmuxn22t3astq/node_modules/@azure-tools/typespec-client-generator-core/src/decorators.ts:672:44)
    at createContextWithDefaultOptions (file:///D:/Js-sdk-sync/uprepo/packages/typespec-ts/src/index.ts:428:17)
    at Object.$onEmit [as emitFunction] (file:///D:/Js-sdk-sync/uprepo/packages/typespec-ts/src/index.ts:91:28)
    at runEmitter (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@typespec+compiler@0.61.0-dev.21/node_modules/@typespec/compiler/src/core/program.ts:578:21)
    at compile (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@typespec+compiler@0.61.0-dev.21/node_modules/@typespec/compiler/src/core/program.ts:252:11)
    at compileOnce (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@typespec+compiler@0.61.0-dev.21/node_modules/@typespec/compiler/src/core/cli/actions/compile/compile.ts:65:21)

@tadelesh
Copy link
Member

@tadelesh we have below tcgc error when generating tsp here and could you help verify why?

tsp: https://github.com/Azure/autorest.typescript/tree/main/packages/typespec-test/test/widget_dpg/spec error:

TypeError: Cannot read properties of undefined (reading 'kind')
 
TypeError: Cannot read properties of undefined (reading 'kind')
    at getClientTypeWithDiagnostics (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-corTypeError: Cannot read properties of undefined (reading 'kind')
    at getClientTypeWithDiagnostics (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-cor    at getClientTypeWithDiagnostics (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.47.0-dev.10_l7jrr73zx765sxmuxn22t3astq/node_modules/@azure-tools/typespec-client-generator-core/src/types.ts:994:16)
    at updateTypesFromOperation (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.47.0-dev.10_l7jrr73zx765sxmuxn22t3astq/node_modules/@azure-tools/typespec-client-generator-core/src/types.ts:1561:9)
    at getAllModelsWithDiagnostics (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.47.0-dev.10_l7jrr73zx765sxmuxn22t3astq/node_modules/@azure-tools/typespec-client-generator-core/src/types.ts:1785:26)
    at getSdkPackage (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.47.0-dev.10_l7jrr73zx765sxmuxn22t3astq/node_modules/@azure-tools/typespec-client-generator-core/src/package.ts:737:43)
    at createSdkContext (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@azure-tools+typespec-client-generator-core@0.47.0-dev.10_l7jrr73zx765sxmuxn22t3astq/node_modules/@azure-tools/typespec-client-generator-core/src/decorators.ts:672:44)
    at createContextWithDefaultOptions (file:///D:/Js-sdk-sync/uprepo/packages/typespec-ts/src/index.ts:428:17)
    at Object.$onEmit [as emitFunction] (file:///D:/Js-sdk-sync/uprepo/packages/typespec-ts/src/index.ts:91:28)
    at runEmitter (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@typespec+compiler@0.61.0-dev.21/node_modules/@typespec/compiler/src/core/program.ts:578:21)
    at compile (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@typespec+compiler@0.61.0-dev.21/node_modules/@typespec/compiler/src/core/program.ts:252:11)
    at compileOnce (file:///D:/Js-sdk-sync/uprepo/common/temp/node_modules/.pnpm/@typespec+compiler@0.61.0-dev.21/node_modules/@typespec/compiler/src/core/cli/actions/compile/compile.ts:65:21)

fixed in tcgc: Azure/typespec-azure#1659

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p0 priority 0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants