[Error - 1:00:31 PM] Starting client failed
Error: spawn ENOTDIR
at ChildProcess.spawn (internal/child_process.js:358:11)
at spawn (child_process.js:543:9)
at Object.fork (child_process.js:118:10)
at Object.fork (/Users/someuser/.vscode/extensions/ikappas.phpcs-1.0.5/node_modules/vscode-languageclient/lib/utils/electron.js:83:23)
at Promise (/Users/someuser/.vscode/extensions/ikappas.phpcs-1.0.5/node_modules/vscode-languageclient/lib/main.js:269:34)
at new Promise (<anonymous>)
at LanguageClient.createMessageTransports (/Users/someuser/.vscode/extensions/ikappas.phpcs-1.0.5/node_modules/vscode-languageclient/lib/main.js:249:24)
at LanguageClient.createConnection (/Users/someuser/.vscode/extensions/ikappas.phpcs-1.0.5/node_modules/vscode-languageclient/lib/client.js:1854:21)
at LanguageClient.resolveConnection (/Users/someuser/.vscode/extensions/ikappas.phpcs-1.0.5/node_modules/vscode-languageclient/lib/client.js:1697:44)
at LanguageClient.start (/Users/someuser/.vscode/extensions/ikappas.phpcs-1.0.5/node_modules/vscode-languageclient/lib/client.js:1628:14)
at activate (/Users/someuser/.vscode/extensions/ikappas.phpcs-1.0.5/out/src/extension.js:67:12)
at Function._callActivateOptional (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:667:613)
at Function._callActivate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:667:264)
at Promise.all.then.n (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:666:404)
From the vscode Developer Console, I can see:
[Extension Host] rejected promise not handled within 1 second: Error: spawn ENOTDIR
Then it all worked! I would like to emphasize that vscode may not support the mapping of single files like the above. However, that does work for me. But it brakes vscode-phpcs though.
VSCode version: 1.39.1 VSCode extension: ikappas.phpcs ikappas.phpcs version: 1.0.5 Operating System: macOS Mojave version 10.14.6
VSCode set up: Using Workspaces with Folders.
The complete vscode workspace file can be seen below:
Throws the following error:
From the vscode Developer Console, I can see:
The solution was to remove the following:
Then it all worked! I would like to emphasize that vscode may not support the mapping of single files like the above. However, that does work for me. But it brakes vscode-phpcs though.