"No Input Files Provided" after update of Autorest to 2.0.4210
See original GitHub issueWe have a configuration file called “sdk.md” which we call with autorest. It seems since updating to autorest 2.0.4210 that we get the following error when trying to run the command
autorest sdk.md
[Exception] No input files provided
This is happening on multiple computers that we develop on. The configuration file has not changed as part of this. It seems like its not reading any of the Configuration file settings at all. Has something changed that could cause this?
input-file: http://localhost:49304/swagger/v1/swagger.json
csharp:
namespace: SubscriptionsSdk
output-folder: Client
add-credentials: true
client-side-validation: false
enable-xml: true # enable experimental XML serialization support
# azure-arm: true # uncomment this line to enable code generation in the Azure flavor
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:12 (7 by maintainers)
Top Results From Across the Web
c# - Autorest Failed resolving swagger.json against file when ...
I unchecked ssl and ran the following successfully. autorest --v3 --input-file=http://localhost:60705/swagger/v1/swagger.json --csharp --output- ...
Read more >Autorest is failing in generating sdk with "[Exception] No input files ...
Trying to generate sdk through autorest but getting error "[Exception] No input files provided." Even input file is configured in config file.
Read more >Installation - npm
If you have a markdown config file then there is no need to use --input-file , simply provide the path to the markdown...
Read more >AutoRest Command Line Interface Documentation
AutoRest will use a configuration file to control the code generation process. By default, AutoRest will look for a file called readme.md or...
Read more >AutoRest and OpenAPI: The backbone of Azure SDK
AutoRest is a tool that provides a code generation framework for converting OpenAPI 2.0 and 3.0 specifications into client libraries for the ...
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
Please make AutoRest crash with an actionable error message if a README.md is provided without the magic string.
Ok, figured it out.
There is something clearly wrong with the
init
cmd or something; I found some (unicode?) crap in the file.I reloaded the file you gave with DOS (cp437) encoding via vscode, and it shows what’s really inside:
To fix this, load the file up in vscode, and click on the
UTF-8
at the bottom and do ‘save with encoding’ and selectDOS (cp437)