motform / processing-3-mode

emacs mode for Processing 3
GNU General Public License v3.0
7 stars 2 forks source link

Compilation of sketch exits abnormaly when path to .pde file contains whitespace #1

Closed zchrome closed 3 years ago

zchrome commented 3 years ago

p3-run fails when there are whitespace in the path to the .pde file:

-*- mode: p3-compilation; default-directory: "~/Kod/02A Processing/The Nature of Code/walker/" -*-
p3-compilation started at Wed Dec 30 09:49:40

processing-java --sketch=/Users/xarch/Kod/02A Processing/The Nature of Code/walker/ --run
/Users/xarch/Kod/02A does not exist.

p3-compilation exited abnormally with code 1 at Wed Dec 30 09:49:40
motform commented 3 years ago

Good catch! The latest branch uses shell-quote-argument to make user whitespace is correctly preserved.

Closing this issue.