noseglid / atom-build

:hammer: Build your project directly from the Atom editor
https://atom.io/packages/build
MIT License
248 stars 97 forks source link

Path does not exist -- but it does #576

Open filipkrw opened 5 years ago

filipkrw commented 5 years ago

Hello beautiful people!

When trying to build a .pde (Processing) file using either build-processing package or my custom build command, I get an error: "C:\mypath" does not exist. But the path does exist and when I use the exact same command in cmd, it works.

Here's my custom build file and the command it's producing.

{
  "cmd": "processing-java",
  "name": "Run",
  "sh": true,
  "args": [
    "--sketch=\"{FILE_ACTIVE_PATH}\"",
    "--run"
  ]
}

cmd /C processing-java --sketch="C:\mypath" --run

Does it have something to do with atom-build cmd /C prefix?

I would be very grateful for some help.

Cheers!

filipkrw commented 5 years ago

Found a fix, simply don't use quotation marks around the file path. Here's my working build file if anybody needs it:

{
  "name": "Processing",
  "cmd": "processing-java",
  "sh": true,
  "args": [
    "--sketch={FILE_ACTIVE_PATH}",
    "--force",
    "--run"
  ]
}

Remember that the .pde file has to be in a folder with a name same as the file, i.e. processing/processing.pde.