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
Make sure extension is removed from <User_DIR>/.autorest . In my example I'm using @microsoft.azure/[email protected] @microsoft.azure/[email protected] extensions.
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.
The text was updated successfully, but these errors were encountered:
kasobol-msft
changed the title
[Bug] Autorest cli doesn't install extensions correctly.
[Bug] Autorest cli doesn't install extensions correctly on first try.
Mar 19, 2020
Please see versions on the screenshots.
Reproduction scenario:
autorest [email protected]/[email protected] [email protected]/[email protected] --version=2.0.4280
autorest [email protected]/[email protected] [email protected]/[email protected] --version=2.0.4280
againautorest [email protected]/[email protected] [email protected]/[email protected] --version=2.0.4280
againBottom line is that Autorest fails when extension is pulled first time with such error:
Second attempt is successful. In my example I pulled two fresh extensions hence I worked on 3rd attempt...
Please fix that.
The text was updated successfully, but these errors were encountered: