Folder names like Project One with a space in between returns this error.
/usr/bin/bash: line 1: cd: too many arguments
[Process exited 2]
This fixed it for me.
java = {
- 'cd $dir &&',
+ 'cd "$dir" &&',
'javac $fileName &&',
'java $fileNameWithoutExt',
},