Autorest "Error: Plugin 'commonmarker' not found."
See original GitHub issueBefore filling a bug
- have you checked the faq for known issues.
- have you checked existing issues
Describe the bug
When I try to run autorest, I get an error saying that this plugin ‘commonmarker’ is not found. Full debug output:
autorest --v3 README.md --verbose --debug
AutoRest code generation utility [cli version: 3.4.0; node: v14.18.0]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
NOTE: AutoRest core version selected from configuration: ^3.2.0.
Network Enabled: true
Starting @autorest/core from C:\Users\zacolli\.autorest\@autorest_core@3.6.3\node_modules\@autorest\core
info | Loading AutoRest core 'C:\Users\zacolli\.autorest\@autorestcore@3.6.3\nodemodules\@autorest\core\dist' (3.6.3)
verbose | [0.80 s] Initial configuration file '[Redacted]'
verbose | [0.80 s] Including configuration file '[Redacted]'
verbose | [0.82 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/default-configuration.md'
verbose | [0.84 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/inspect.md'
verbose | [0.84 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/directives.md'
verbose | [0.86 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/pipeline.md'
verbose | [0.88 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/loader-openapi.md'
verbose | [0.90 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/miscellaneous.md'
verbose | [0.91 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/plugin-powershell.md'
verbose | [0.92 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/plugin-azureresourceschema.md'
verbose | [0.93 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/plugin-csharp.md'
verbose | [0.96 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/plugin-go.md'
verbose | [0.98 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/plugin-java.md'
verbose | [0.99 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/plugin-nodejs.md'
verbose | [1.01 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/plugin-php.md'
verbose | [1.02 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/plugin-python.md'
verbose | [1.04 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/plugin-ruby.md'
verbose | [1.06 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/plugin-typescript.md'
verbose | [1.08 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/plugin-validators.md'
verbose | [1.10 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/plugin-az.md'
verbose | [1.13 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/plugin-terraform.md'
verbose | [1.15 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/plugin-azure-functions.md'
verbose | [1.17 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/graphs.md'
verbose | [1.19 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@autorestcore@3.6.3/nodemodules/@autorest/core/dist/resources/help-configuration.md'
info | Loading AutoRest extension '@microsoft.azure/autorest.csharp' (~2.3.79->2.3.91)
verbose | [1.29 s] Including extension configuration file 'file:///C:/Users/zacolli/.autorest/@microsoft.azureautorest.csharp@2.3.91/nodemodules/@microsoft.azure/autorest.csharp/README.md'
verbose | [1.29 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@microsoft.azureautorest.csharp@2.3.91/nodemodules/@microsoft.azure/autorest.csharp/README.md'
info | Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.55->2.3.55)
verbose | [1.41 s] Including extension configuration file 'file:///C:/Users/zacolli/.autorest/@microsoft.azureautorest.modeler@2.3.55/nodemodules/@microsoft.azure/autorest.modeler/readme.md'
verbose | [1.41 s] Including configuration file 'file:///C:/Users/zacolli/.autorest/@microsoft.azureautorest.modeler@2.3.55/nodemodules/@microsoft.azure/autorest.modeler/readme.md'
debug | [3.08 s] swagger-document/loader-swagger - START inputs = 0
debug | [3.08 s] openapi-document/loader-openapi - START inputs = 0
debug | [3.08 s] pipeline-emitter - START inputs = 0
debug | [3.08 s] configuration-emitter - START inputs = 0
debug | [3.08 s] pipeline-emitter - END [0.02 s][90 MB]
debug | [3.08 s] configuration-emitter - END [0.02 s][90 MB]
verbose | [3.10 s] Reading OpenAPI 3.0 file [Redacted]
debug | [3.10 s] swagger-document/loader-swagger - END [0.04 s][92 MB]
debug | [3.12 s] openapi-document/loader-openapi - END [0.07 s][75 MB]
debug | [3.12 s] swagger-document/individual/transform - SKIPPING
debug | [3.13 s] swagger-document/individual/schema-validator-swagger - SKIPPING
debug | [3.13 s] swagger-document/identity - SKIPPING
debug | [3.13 s] swagger-document/individual/identity - SKIPPING
debug | [3.13 s] openapi-document/openapi-document-converter - SKIPPING
debug | [3.13 s] openapi-document/individual/transform - START inputs = 1
debug | [3.13 s] openapi-document/individual/transform - END [0 s][76 MB]
debug | [3.13 s] openapi-document/individual/schema-validator-openapi - START inputs = 1
debug | [3.26 s] openapi-document/individual/schema-validator-openapi - END [0.12 s][83 MB]
debug | [3.26 s] openapi-document/individual/identity - START inputs = 1
debug | [3.26 s] openapi-document/individual/identity - END [0 s][83 MB]
debug | [3.26 s] openapi-document/transform - START inputs = 1
debug | [3.26 s] openapi-document/transform - END [0 s][84 MB]
debug | [3.26 s] openapi-document/semantic-validator - START inputs = 1
debug | [3.27 s] openapi-document/semantic-validator - END [0 s][84 MB]
debug | [3.27 s] openapi-document/allof-cleaner - START inputs = 1
debug | [3.27 s] openapi-document/allof-cleaner - END [0 s][85 MB]
debug | [3.27 s] openapi-document/tree-shaker - START inputs = 1
debug | [3.31 s] openapi-document/tree-shaker - END [0.03 s][83 MB]
debug | [3.31 s] openapi-document/multi-api-merger - START inputs = 1
debug | [3.36 s] openapi-document/multi-api-merger - END [0.04 s][87 MB]
debug | [3.36 s] openapi-document/components-cleaner - START inputs = 1
debug | [3.39 s] openapi-document/components-cleaner - END [0.03 s][85 MB]
debug | [3.39 s] openapi-document/component-modifiers - START inputs = 1
debug | [3.40 s] openapi-document/component-modifiers - END [0 s][87 MB]
debug | [3.40 s] openapi-document/api-version-parameter-handler - START inputs = 1
debug | [3.40 s] openapi-document/api-version-parameter-handler - END [0 s][87 MB]
debug | [3.40 s] openapi-document/profile-filter - START inputs = 1
debug | [3.40 s] openapi-document/profile-filter - END [0 s][87 MB]
debug | [3.40 s] openapi-document/model-deduplicator - START inputs = 1
debug | [3.46 s] openapi-document/model-deduplicator - END [0.06 s][93 MB]
debug | [3.46 s] openapi-document/compose - START inputs = 1
debug | [3.50 s] openapi-document/compose - END [0.03 s][82 MB]
debug | [3.50 s] openapi-document/identity - START inputs = 1
debug | [3.50 s] openapi-document/identity - END [0 s][82 MB]
debug | [3.51 s] openapi-document/emitter - START inputs = 1
debug | [3.51 s] csharp/imodeler1 - START inputs = 1
debug | [3.51 s] openapi-document/emitter - END [0 s][82 MB]
debug | [4.34 s] csharp/imodeler1 - END [0.84 s][83 MB]
fatal | Process() cancelled due to exception : Plugin 'commonmarker' not found. / Error: Plugin 'commonmarker' not found.
at ScheduleNode (C:\Users\zacolli\.autorest\@autorestcore@3.6.3\node_modules\@autorest\core\dist\src_lib_autorest-corets.js:1283:19)
Error: Plugin 'commonmarker' not found.
[4.34 s] Shutting Down.
[4.35 s] Exiting.
Full command from README.md, internal info redacted:
autorest --v3 --verbose --input-file=swagger.json --output-folder=Generated --clear-output-folder --csharp --namespace=<namespace> --override-client-name=<client name> --legacy --debug --verbose
Expected behavior For autorest to generate the client.
Additional context
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Error: Plugin 'commonmarker' not found. · Issue #1523 - GitHub
I have a v3 json file and trying to use --legacy. Any ideas? autorest --input-file=c:\b2i\swagger.json --v3 --csharp ...
Read more >Time Series Insight AutoRest Error: Plugin model-validator ...
nodes is not a function FATAL: swagger-document/model-validator - FAILED FATAL: Error: Plugin model-validator reported failure. Process() ...
Read more >AutoRest Versioning
The AutoRest core module is the real processing hub for AutoRest. The CLI can load any version of the AutoRest Core module by...
Read more >Contributing - npm
Start using @microsoft.azure/autorest.csharp in your project by running `npm i ... There are no other projects in the npm registry using ...
Read more >Fix Autorest Problems when Generating Client ... - Angela Evans
Error converting value False to type 'AutoRest.Modeler.Model. ... That is not working well with Autorest generated clients in my experience.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like there is already an issue open: https://github.com/Azure/autorest.csharp/issues/1534
Yeah V3 generator are complete rewrite which use different common libraries. For that docs I can’t agree more, can you file an issue on the autorest.csharp repo so they can look at it. I’ll look over the autorest core v2->v3 migration one to be a bit more clearer.