question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Code generation script is not working after cognitive service folder structure is changed

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
kurtzeborncommented, Aug 22, 2019

@chidozieononiwu can you take a look at this.

0reactions
jsquirecommented, Jun 15, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Document Intelligence (formerly Form Recognizer ...
Azure AI services encompass all of what were previously known as Azure Cognitive Services and Azure Applied AI Services. There are no changes...
Read more >
Get started generating text using Azure OpenAI Service
Select the subscription and OpenAI resource to work with. Select GPT-3 Playground at the top of the landing page. Select your deployment from ......
Read more >
How to Build Scalable Architecture for your Next.js Project
to discard changes in working directory) modified: README.md Untracked ... fix: A bug fix // perf: A code change that improves performance ...
Read more >
"Cannot start process, the working directory ... does not ...
You can change that by going into Run -> Edit Configurations . Click on the folder icon in Script path: and correct the...
Read more >
Incremental Refresh and Hybrid tables in Power BI
Incremental Refresh is the process of loading only part of the data that might change and adding it to the previous dataset, which...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found