You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be helpful to verify that, outside of any platform-specific or library-specific inclusions, a sketch has proper syntax. The ideal behavior would be to iterate over the full set of files included in the example sketch and perform gcc -c on them.
As a bonus, the JSON response from such a command might contain an object whose keys are the files that were found/tested and whose values are an array of compiler warnings (if any).
The text was updated successfully, but these errors were encountered:
Hi @ianfixes, unfortunately checking the syntax requires the libs and the cores also. For example, how do you check if digitalWrite(10, HIGH); is syntactically correct? You need the core for that. But at this point you are basically doing a full compile.
Feature Request: syntax checking for sketches
It would be helpful to verify that, outside of any platform-specific or library-specific inclusions, a sketch has proper syntax. The ideal behavior would be to iterate over the full set of files included in the example sketch and perform
gcc -c
on them.As a bonus, the JSON response from such a command might contain an object whose keys are the files that were found/tested and whose values are an array of compiler warnings (if any).
The text was updated successfully, but these errors were encountered: