Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Autorest cli doesn't install extensions correctly on first try. #112

Open
kasobol-msft opened this issue Mar 19, 2020 · 0 comments
Open

Comments

@kasobol-msft
Copy link

Please see versions on the screenshots.

Reproduction scenario:

  1. Make sure extension is removed from <User_DIR>/.autorest . In my example I'm using @microsoft.azure/[email protected] @microsoft.azure/[email protected] extensions.
  2. Execute autorest [email protected]/[email protected] [email protected]/[email protected] --version=2.0.4280
    image
  3. Execute autorest [email protected]/[email protected] [email protected]/[email protected] --version=2.0.4280 again
    image
  4. Execute autorest [email protected]/[email protected] [email protected]/[email protected] --version=2.0.4280 again
    image

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.

@kasobol-msft 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant