Skip to content

Feature request: option to syntax check a sketch without fully compiling #1128

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

Closed
ianfixes opened this issue Jan 7, 2021 · 1 comment
Closed
Labels
conclusion: declined Will not be worked on type: enhancement Proposed improvement

Comments

@ianfixes
Copy link

ianfixes commented Jan 7, 2021

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).

@umbynos
Copy link
Contributor

umbynos commented Nov 25, 2022

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.

@umbynos umbynos closed this as completed Nov 25, 2022
@umbynos umbynos added the conclusion: declined Will not be worked on label Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: declined Will not be worked on type: enhancement Proposed improvement
Projects
None yet
Development

No branches or pull requests

5 participants