You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, it's not emitting to the directory specified in emitter-output-dir (apiview-stub-generator/apistub/_generated) in the tspconfig.yaml. It's instead emitting to apiview-stub-generator.
I also tried specifying the directory in the cli using -o. However, I run into the following error:
[~/repos/azure-sdk-tools/packages/python-packages/apiview-stub-generator]$ tsp-client update -o apistub/_genera
ted
Using output directory '/home/swathip/repos/azure-sdk-tools/packages/python-packages/apiview-stub-generator/apistub/_generated'
888 888 d8b 888
888 888 Y8P 888
888 888 888
888888 .d8888b 88888b. .d8888b 888 888 .d88b. 88888b. 888888
888 88K 888 "88b d88P" 888 888 d8P Y8b 888 "88b 888
888 "Y8888b. 888 888 888888 888 888 888 88888888 888 888 888
Y88b. X88 888 d88P Y88b. 888 888 Y8b. 888 888 Y88b.
"Y888 88888P' 88888P" "Y8888P 888 888 "Y8888 888 888 "Y888
888
888
888
0.13.1
Error reading tsp-location.yaml: Error: ENOENT: no such file or directory, stat '/home/swathip/repos/azure-sdk-tools/packages/python-packages/apiview-stub-generator/apistub/_generated/tsp-location.yaml'
update
Sync and generate from a TypeSpec project
Options:
-d, --debug Enable debug logging [boolean]
-o, --output-dir Specify an alternate output directory for the
generated files. [string] [default: "."]
-y, --no-prompt Skip any interactive prompts. [boolean]
--help Show help [boolean]
--repo Repository where the project is defined [string]
--commit Commit hash to be used [string]
--tsp-config Path to tspconfig.yaml [string]
--local-spec-repo Path to local spec repo [string]
--emitter-options The options to pass to the emitter [string]
--save-inputs Don't clean up the temp directory after
generation [boolean]
-v, --version Show version number [boolean]
Error: ENOENT: no such file or directory, stat '/home/swathip/repos/azure-sdk-tools/packages/python-packages/apiview-stub-generator/apistub/_generated/tsp-location.yaml'
at async stat (node:internal/fs/promises:1032:18)
at async readTspLocation (file:///home/swathip/.nvm/versions/node/v20.15.1/lib/node_modules/@azure-tools/typespec-client-generator-cli/dist/fs.js:20:26)
at async syncCommand (file:///home/swathip/.nvm/versions/node/v20.15.1/lib/node_modules/@azure-tools/typespec-client-generator-cli/dist/commands.js:132:25)
at async updateCommand (file:///home/swathip/.nvm/versions/node/v20.15.1/lib/node_modules/@azure-tools/typespec-client-generator-cli/dist/commands.js:291:5)
at async Object.handler (file:///home/swathip/.nvm/versions/node/v20.15.1/lib/node_modules/@azure-tools/typespec-client-generator-cli/dist/index.js:151:5) {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/home/swathip/repos/azure-sdk-tools/packages/python-packages/apiview-stub-generator/apistub/_generated/tsp-location.yaml'
}
I expect that it would look in current directory for tsp-location.yaml and not the output directory. Is there anything I'm missing here?
Thanks!
The text was updated successfully, but these errors were encountered:
@swathipil I think there are multiple issues here. First let's tackle the tsp-client update command not finding tsp-location.yaml. Have you verified that there's a tsp-location.yaml in that directory? If not, then maybe you want to run tsp-client init -c <tspconfig.yaml file url with commit> -o <path to specific output dir>
I'm running the
tsp-client update
command in the same folder as [this tsp-location.yaml]. This points to [this spec] with [this tspconfig].However, it's not emitting to the directory specified in
emitter-output-dir
(apiview-stub-generator/apistub/_generated) in the tspconfig.yaml. It's instead emitting toapiview-stub-generator
.I also tried specifying the directory in the cli using -o. However, I run into the following error:
I expect that it would look in current directory for tsp-location.yaml and not the output directory. Is there anything I'm missing here?
Thanks!
The text was updated successfully, but these errors were encountered: