recipe execute fail if there is a space character in windows user name #4397
Labels
Component: Compilation
Related to compilation of Arduino sketches
Component: IDE
The Arduino IDE
Type: Bug
Type: Duplicate
Another item already exists for this topic
In platform.txt I add recipe for building my own image:
In a user name "foo bar" under windows, the whole command line like this when verbose enabled:
And it execute fail with message:
So I trace source code of arduino-core, and find this code is specious in method exec() in Compiler.java
The class DoubleQuotedArgumentsOnWindowsCommandLine is not actually "double quoted" command[0]. It only passes the argument to super class CommandLine and the constructor of CommandLine also not adds double quotes. So the actually command executed is
So it seems it needs add double quoted somewhere in the compile process.
The text was updated successfully, but these errors were encountered: