Function prototypes not generated when sketch path contains "
#1945
Labels
topic: build-process
Related to the sketch build process
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
In order to make it easier for beginners to get started with writing Arduino sketches, and for the convenience of all users, Arduino CLI automatically generates and adds prototypes for functions defined in a
.ino
file of a sketch.🐛 If the parent path of a sketch contains a double quote character (
"
), function prototypes are not generated.To reproduce
🐛 The function prototype for
foo
was not generated. It will be very difficult for the average user to understand why the compilation failed and how to fix the error.Expected behavior
Function prototypes are generated regardless of which characters are present in the path.
Arduino CLI version
f239754
Operating system
Ubuntu, macOS
Operating system version
Additional context
The bug is not applicable to Windows because
"
is not an allowed character for Windows paths.Note this is not about supporting double quotes in sketch filenames. This is about their presence in the parent path of the sketch.
Originally reported at https://forum.arduino.cc/t/mac-montery-and-library-update/1041060/21
Issue checklist
The text was updated successfully, but these errors were encountered: