Report ERR_INVALID_ARG_VALUE The argument 'file' cannot be empty. Received ''
prashan-s opened this issue · 0 comments
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'file' cannot be empty. Received '' at normalizeSpawnArguments (child_process.js:423:11) at Object.execFileSync (child_process.js:635:13) at Object.func [as execFileSync] (electron/js2c/asar_bundle.js:5:1846) at format (c:\Users\Prashan Samarathunge\.vscode\extensions\vknabel.vscode-apple-swift-format-1.1.2\out\src\SwiftFormatEditProvider.js:38:40) at SwiftFormatEditProvider.provideDocumentFormattingEdits (c:\Users\Prashan Samarathunge\.vscode\extensions\vknabel.vscode-apple-swift-format-1.1.2\out\src\SwiftFormatEditProvider.js:65:16) at c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:84:164980 at c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:64:11884 at new Promise (<anonymous>) at Object.g [as asPromise] (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:64:11856) at W.provideDocumentFormattingEdits (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:84:164951) at c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:84:187631 at ze._withAdapter (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:84:181035) at ze.$provideDocumentFormattingEdits (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:84:187609) at h._doInvokeHandler (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:88:12797) at h._invokeHandler (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:88:12489) at h._receiveRequest (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:88:11093) at h._receiveOneMessage (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:88:9945) at c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:88:8049 at l.fire (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:57:1835) at E.fire (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:65:15632) at c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:103:29788 at l.fire (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:57:1835) at E.fire (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:65:15632) at t._receiveMessage (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:65:20890) at c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:65:17776 at l.fire (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:57:1835) at c.acceptChunk (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:65:12993) at c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:65:12341 at Socket.b (c:\Users\Prashan Samarathunge\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:103:13267) at Socket.emit (events.js:315:20) at addChunk (internal/streams/readable.js:309:12) at readableAddChunk (internal/streams/readable.js:284:9) at Socket.Readable.push (internal/streams/readable.js:223:10) at Pipe.onStreamRead (internal/stream_base_commons.js:188:23)