-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Please see versions on the screenshots.
Reproduction scenario:
- Make sure extension is removed from <User_DIR>/.autorest . In my example I'm using @microsoft.azure/[email protected] @microsoft.azure/[email protected] extensions.
- Execute
autorest [email protected]/[email protected] [email protected]/[email protected] --version=2.0.4280

- Execute
autorest [email protected]/[email protected] [email protected]/[email protected] --version=2.0.4280again

- Execute
autorest [email protected]/[email protected] [email protected]/[email protected] --version=2.0.4280again

Bottom line is that Autorest fails when extension is pulled first time with such error:
Loading AutoRest core 'C:\Users\kasobol.REDMOND\.autorest\@[email protected]\node_modules\@microsoft.azure\autorest-core\dist' (2.0.4280)
Loading AutoRest extension '@microsoft.azure/autorest.java' (3.0.1->3.0.1)
Installing AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.51)
TypeError: Cannot read property 'filename' of undefined
at /node_modules/npm/node_modules/npm-lifecycle/index.js:66:39
at /node_modules/npm/node_modules/npm-lifecycle/index.js:186:12
at /node_modules/npm/node_modules/graceful-fs/polyfills.js:287:18
at FSReqWrap.oncomplete (fs.js:154:5)
Second attempt is successful. In my example I pulled two fresh extensions hence I worked on 3rd attempt...
Please fix that.
Metadata
Metadata
Assignees
Labels
No labels