Open eXeGOODER opened 8 years ago
What do you mean with "no work". Please elaborate on whats not working.
Include an .atom-build
file which exhibits the problem.
I have a similar issue with a space in the cmd property. When I take the generated command and execute it in a windows cmd it works perfectly but not through atom-build.
It use to work before I update it or atom (not sure, I did not used it in a while).
Unable to execute: C:/Program Files/Java/jdk1.8.0_45/bin/java
`cmd` cannot contain space. Use `args` for arguments.
Make sure cmd:'C:/Program Files/Java/jdk1.8.0_45/bin/java' and cwd:'C:\DATA\Sources\' exists and have correct access permissions.
Binaries are found in these folders: C:\Program Files\Python35;;/usr/local/bin;/usr/bin;/bin;/usr/sbin;/sbin
Unable to execute with shell: C:/Program Files/Java/jdk1.8.0_45/bin/java
Make sure cmd:'C:/Program Files/Java/jdk1.8.0_45/bin/java' and cwd:'C:\DATA\Sources\' exists and have correct access permissions.
Binaries are found in these folders: C:\Program Files\Python35;;/usr/local/bin;/usr/bin;/bin;/usr/sbin;/sbin
cmd: "C:/Program Files/Java/jdk1.8.0_45/bin/java"
args:
- -jar
- C:\DATA\Sources\Module-Claim\nova-cli-1.0.0-all.jar
- deploy-and-execute
- Claim
- --workspace_folder=C:\DATA\Sources\
sh: false
errorMatch: ['INFO: \[ERROR\] (?<file>[^\(]+) \(?<line>line (\d+), column (?<col>\d+)\)']
cwd: C:\DATA\Sources\
cmd: '{PROJECT_PATH}\\pawno\\pawncc.exe'
args: [
'{FILE_ACTIVE}', '-;+', '-d3'
]
cwd: '{FILE_ACTIVE_PATH}'
name: 'Pawn'
I don't work on windows in general so it'll take some time for me to work with this. If anyone is bothered by it, feel free to dig in.
It's been changed a few times /C /S
and then /S
was removed when running cross-spawn-async
. Apparently that's not right either. I don't understand how cmd.exe
works. It seems awkward at best to me.
I added atom-build.cson new parameter sh: false
and now works, sh: true
no
I've just opened a pull request to fix this issue.
I think at least part of the problem is line 151 in lib/build.js.
This line of code joins exec
and its arguments together and converts it to a string. I don't think that's a very elegant solution.
I got this issue with my ubuntu system showing like this Unable to execute: python3 Make sure cmd:'python3' and cwd:'{FILE_ACTIVE_PATH}' exists and have correct access permissions. Binaries are found in these folders: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
{PROJECT_PATH}
is normal{FILE_ACTIVE_PATH}
no work with space in folder name