[BUG] Code generation script is not working after cognitive service folder structure is changed
See original GitHub issueDescribe the bug
According to the documentation, we should run the generate.ps1
powershell script to generate SDK code. However, due to a recent change to update cognitive services folder structure, the script doesn’t work any more.
Exception or Stack Trace Add the exception log and stack trace if available
> E:\Source\cognition\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\generate.ps1
Start-AutoRestCodeGeneration : Could not find root for output directory since script is not run from SDK repo, please provide this using the -SdkRepoPath parameter!
At E:\Source\cognition\azure-sdk-for-net\sdk\cognitiveservices\Vision.ComputerVision\src\generate.ps1:1 char:1
+ Start-AutoRestCodeGeneration -ResourceProvider "cognitiveservices/dat ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Start-AutoRestCodeGeneration
To Reproduce
Run generate.ps1
under sdk\cognitiveservices\Vision.ComputerVision\src
.
Code Snippet Add the code snippet that causes the issue.
Expected behavior SDK code should be generated under the script folder.
Screenshots If applicable, add screenshots to help explain your problem.
Setup (please complete the following information):
- OS: Win10
Additional context Add any other context about the problem here.
Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
- Bug Description Added
- Repro Steps Added
- Setup information Added
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
@chidozieononiwu can you take a look at this.
Given the age and that the referenced ComputerVision SDK has been released since this was opened, I’m going to close this out as stale. Please feel free to reopen or log a new issue if this is still needed.