j-d-carmichael / boats

Beautiful Open Api Template System
MIT License
57 stars 8 forks source link

Windows: Running "npm run build" throws "Trace: Error: Path method found without an operationId: get:\invoice" #16

Closed intelman10c closed 3 years ago

intelman10c commented 4 years ago

When running the command "npm run build" on Windows in the Visual Studio Code integrated Terminal (node v12.18.2; boats version 1.18.5), the following error appears: Trace: Error: Path method found without an operationId: get:\invoice at UniqueOperationIds.checkOpIdsAreAllUnique (C:\Users\michael.intelmann\dev\mlc-ofp-backend-swagger\node_modules\boats\build\src\UniqueOperationIds.js:71:31) at Object.exports.default (C:\Users\michael.intelmann\dev\mlc-ofp-backend-swagger\node_modules\boats\build\src\bundlerSwaggerParse.js:29:38) at async parseCli (C:\Users\michael.intelmann\dev\mlc-ofp-backend-swagger\node_modules\boats\build\src\cli.js:39:31) at catchHandle (C:\Users\michael.intelmann\dev\mlc-ofp-backend-swagger\node_modules\boats\build\src\cli.js:44:13)

First assumption is the double-colon at the beginning of the output and missing "operationId": see attachment image

On Ubuntu or on Ubuntu WSL sub-system the error is not thrown and everything works fine.

j-d-carmichael commented 4 years ago

I'm actually not a windows user and don't have enough spare time to get this windows path related issue. If anyone out there using this on windows (not in the linux sub system) is able to replicate this and offer a helping hand that would be very much appreciated.

p-mcgowan commented 4 years ago

@intelman10c this merge may resolve the issue - it would be cool to support windows in vscode terminal out of the box. If we had a sample repo where it fails, I could test on a windows machine, otherwise if you still use non-WSL it would be great if this fixes the issue