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

[RLC] Top-level index file could not be generated in Windows #1720

Closed
MaryGao opened this issue Jan 11, 2023 · 0 comments · Fixed by #1745
Closed

[RLC] Top-level index file could not be generated in Windows #1720

MaryGao opened this issue Jan 11, 2023 · 0 comments · Fixed by #1745
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. DPG/RLC v2.0 GA Epic: Model Generation https://github.com/Azure/cadl-azure/issues/1944 RLC WS: Code Generation

Comments

@MaryGao
Copy link
Member

MaryGao commented Jan 11, 2023

When we extract the top-level index file path we use /src/ to match the path and get the proper index. However this may not work in Windows env because our path looks like C:\\Users\\marygao\\...\\cadl-rlc-test\\test\\openai\\cadl-output\\src\\inference then the file could not be generated.

https://github.com/Azure/autorest.typescript/blob/main/packages/rlc-common/src/buildTopLevelIndexFile.ts#L45

Another small bug is when we clear our src path the top-level index could not be cleared.

https://github.com/Azure/autorest.typescript/blob/main/packages/cadl-typescript/src/index.ts#L45

@MaryGao MaryGao mentioned this issue Jan 11, 2023
7 tasks
@MaryGao MaryGao added RLC Client This issue points to a problem in the data-plane of the library. DPG/RLC v2.0 GA Epic: Model Generation https://github.com/Azure/cadl-azure/issues/1944 WS: Code Generation labels Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. DPG/RLC v2.0 GA Epic: Model Generation https://github.com/Azure/cadl-azure/issues/1944 RLC WS: Code Generation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants