question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Exception] No input files provided

See original GitHub issue

Describe the bug The following error occurred when running “autorest” in the Azs.Backup.Admin Azure Stack module located in “…\Azure\azurestack-powershell\src\Azs.Backup.Admin”. The result is no files are generated by autorest.

Here is the repository: https://github.com/Azure/azurestack-powershell

PS C:\tasks\Azure\azurestack-powershell\src\Azs.Backup.Admin> autorest
AutoRest code generation utility [cli version: 3.0.6247; node: v12.18.3, max-memory: 2048 gb]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest

There is a new version of AutoRest available (3.0.6339).
 > You can install the newer version with with npm install -g autorest@latest

   Loading AutoRest core      'C:\Users\weshi1\.autorest\@autorest_core@3.0.6373\node_modules\@autorest\core\dist' (3.0.6373)

The default version of @autorest/powershell has been bummped from 2.1+ to 3.0+.
 > If you still want to use 2.1+ version, please specify it with --use:@autorest/powershell@2.1.{x}, e.g 2.1.401.

   Loading AutoRest extension '@autorest/powershell' (~3.0.0->3.0.421)
   Loading AutoRest extension '@autorest/modelerfour' (4.15.414->4.15.414)
[Exception] No input files provided.

Use --help to get help information.

Expected behavior The module should build and not throw an exception as it did in older autorest versions.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dolaulicommented, Feb 23, 2021

The fix should be there. However as this change is quite large and could have other unexpected consequences, it won’t be published to latest yet. Please use version 3.1.0-dev.2 for now using --version:@autorest/core@3.1.0-dev.2

I believe it should be --version:3.1.0-dev.2. And with this version, I will run the issue as below.

  Error: Cannot resolve pipeline stage 'modelerfour/identity' for stage 'tweakm4codemodel'. Looked for pipeline stages:
 - modelerfour/identity
1reaction
TheOnlyWeicommented, Feb 19, 2021

Thanks @timotheeguerin, removing the condition worked for the module.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"No Input Files Provided" after update of Autorest to 2.0.4210
[Exception] No input files provided. This is happening on multiple computers that we develop on. The configuration file has not changed as ...
Read more >
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 >
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 >
Compiler/CCSTUDIO: Linkage problems for MSP430FR2433 ...
LTS/lib/libc.a to a compatible library, as no input files have been encountered fatal error #10009: no input files.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found