Azure / autorest.az

Azure CLI Code Generator
MIT License
22 stars 20 forks source link

Failed to generate `blueprint` `databricks` code #869

Closed Jing-song closed 3 years ago

Jing-song commented 3 years ago

using this command below to generate the blueprint databricks extension

autorest --version=3.0.6370 --az --user=@autorest/az@latest .\azure-rest-api-specs\specification\blueprint\resource-manager\readme.md --sdk-no-flatten --azure-cli-extension-folder=.\azure-cli-extension autorest --version=3.0.6370 --az --user=@autorest/az@latest .\azure-rest-api-specs\specification\databricks\resource-manager\readme.md --sdk-no-flatten --azure-cli-extension-folder=.\azure-cli-extension

got error:

FATAL: TypeError: Cannot read property 'replace' of undefined (node:6384) UnhandledPromiseRejectionWarning: Error: Plugin azentry reported failure. at C:\Users\.autorest\@autorest_core@3.0.6370\node_modules\@autorest\core\dist\lib\pipeline\plugins\external.js:27:19 at async ScheduleNode (C:\Users\.autorest\@autorest_core@3.0.6370\node_modules\@autorest\core\dist\lib\pipeline\pipeline.js:314:33) (Use node --trace-warnings ... to show where the warning was created) (node:6384) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 99) (node:6384) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (node:6384) UnhandledPromiseRejectionWarning: Error: Plugin azentry reported failure. at C:\Users.autorest\@autorest_core@3.0.6370\node_modules\@autorest\core\dist\lib\pipeline\plugins\external.js:27:19 at async ScheduleNode (C:\Users\.autorest\@autorest_core@3.0.6370\node_modules\@autorest\core\dist\lib\pipeline\pipeline.js:314:33) (node:6384) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 100) (node:6384) UnhandledPromiseRejectionWarning: Error: Plugin azentry reported failure. at C:\Users\.autorest\@autorest_core@3.0.6370\node_modules\@autorest\core\dist\lib\pipeline\plugins\external.js:27:19 at async ScheduleNode (C:\Users\.autorest\@autorest_core@3.0.6370\node_modules\@autorest\core\dist\lib\pipeline\pipeline.js:314:33) (node:6384) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 101) (node:6384) UnhandledPromiseRejectionWarning: Error: Plugin azentry reported failure. at C:\Users\.autorest\@autorest_core@3.0.6370\node_modules\@autorest\core\dist\lib\pipeline\plugins\external.js:27:19 at async ScheduleNode (C:\Users\.autorest\@autorest_core@3.0.6370\node_modules\@autorest\core\dist\lib\pipeline\pipeline.js:314:33) (node:6384) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 102) (node:6384) UnhandledPromiseRejectionWarning: Error: Plugin azentry reported failure. at C:\Users\.autorest\@autorest_core@3.0.6370\node_modules\@autorest\core\dist\lib\pipeline\plugins\external.js:27:19 at async ScheduleNode (C:\Users.autorest\@autorest_core@3.0.6370\node_modules\@autorest\core\dist\lib\pipeline\pipeline.js:314:33) (node:6384) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 103) (node:6384) UnhandledPromiseRejectionWarning: Error: Plugin azentry reported failure. at C:\Users\.autorest\@autorest_core@3.0.6370\node_modules\@autorest\core\dist\lib\pipeline\plugins\external.js:27:19 at async ScheduleNode (C:\Users\.autorest\@autorest_core@3.0.6370\node_modules\@autorest\core\dist\lib\pipeline\pipeline.js:314:33) (node:6384) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 104) (node:6384) UnhandledPromiseRejectionWarning: Error: Plugin azentry reported failure. at C:\Users\.autorest\@autorest_core@3.0.6370\node_modules\@autorest\core\dist\lib\pipeline\plugins\external.js:27:19 at async ScheduleNode (C:\Users\.autorest\@autorest_core@3.0.6370\node_modules\@autorest\core\dist\lib\pipeline\pipeline.js:314:33) (node:6384) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 105) Error: Plugin azentry reported failure.