-
-
Notifications
You must be signed in to change notification settings - Fork 388
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
) in comment breaks function prototype generation #1253
Comments
The bug does occur in the hourly build, but not in the beta build of the Arduino IDE, so arduino-preprocessor handles this code correctly. I'll leave it to the developers to decide whether to consider this bug fixed already. |
please @cmaglie |
@ubidefeo it's not resolved. I verified it with the latest nightly Arduino CLI before transferring it here from the |
This seems to be a problem of the preprocessor (ctags) fixing it upstream is basically impossible, an alternative would be to switch to arduino-prepocessor but needs some love (still uses an old version of llvm). I don't see it coming shortly. |
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 a closing bracket is commented out within parameters, no prototype is generated for the function.
To reproduce
Compile this sketch:
🐛 Compilation fails spuriously:
Arduino CLI version
Original report
a4ee670
Last verified with
c5812ee
Operating system
Operating system version
Additional context
If the
)
is removed from the comment the prototype generation works correctly:Workaround
Add a prototype for the function in the sketch before the first reference:
Issue checklist
The text was updated successfully, but these errors were encountered: