Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path does not exist -- but it does #576

Open
filipkrw opened this issue Nov 24, 2018 · 1 comment
Open

Path does not exist -- but it does #576

filipkrw opened this issue Nov 24, 2018 · 1 comment

Comments

@filipkrw
Copy link

filipkrw commented Nov 24, 2018

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant