Error when user dir has spaces
See original GitHub issueI’m having issues with generating clients:
When running the following command
autorest --input-file=swagger.json --csharp --output-folder=client --namespace=Ksj.Service.Client
I get the following error:
No configuration found at 'file:///C:/VSProjects/Personal/MealPlan/Service.Client/'. Loading AutoRest extension '@microsoft.azure/autorest.csharp' (~2.2.45) Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.42) 'C:\Users\Kenneth' is not recognized as an internal or external command, operable program or batch file. Process() Cancelled due to exception : [Exception] AutoRest extension '@microsoft.azure/autorest.csharp' terminated. (node:7836) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): Error: [Exception] AutoRest extension '@microsoft.azure/autorest.csharp' terminated. (node:7836) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I’m assuming it’s because of this path:
C:\Users\Kenneth Jakobsen\.autorest
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
@olydis it says exception right below that, that’s usually an error right?
Arg!
This would have happened when I moved away from
exec
tospawn
in the extension Mgr. I’ll fix when I’m back