-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Imprecise console.log error message to a misspelling #4399
Comments
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already. |
Hi @eharkins100 do you have a sample code demonstrating the issue? Thanks. |
hi Kenneth,
*this is my bubble.js file with the typo "coonstructor"*
class Bubble {
coonstructor(x, y, r) {
this.x = x;
this.y = y;
this.r = r;
}
show() {
stroke(255, 255, 0);
fill(175);
strokeWeight(2);
ellipse(this.x, this.y, this.r * 2);
}
move() {
this.x = this.x + random(-5, 5);
this.y = this.y + random(-5, 5);
}
}
*here is the console.log output*
p5.js says: ellipse() was expecting Number for parameter #0 (zero-based
index), received an empty variable instead. If not intentional, this is
often a problem with scope: [
https://p5js.org/examples/data-variable-scope.html] at about:srcdoc:84:5. [
http://p5js.org/reference/#p5/ellipse]
…On Mon, Mar 23, 2020 at 10:22 AM Kenneth Lim ***@***.***> wrote:
Hi @eharkins100 <https://github.com/eharkins100> do you have a sample
code demonstrating the issue? Thanks.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4399 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALQEKD32ADHOQVDHX2KTSNLRI5PC3ANCNFSM4LRBL6JQ>
.
--
*Ed Harkins*
Middle School Technology
[email protected] | +56 9 8198 9359
--
_Confidentiality Notice: This email and any attachments contain information
belonging to Nido de Aguilas which may be confidential. This information is
intended solely for the individual or entity to which it is addressed. If
you are not the intended recipient, you are notified that disclosing,
copying, distributing, or other use of this information is strictly
prohibited. If you have received this email in error, please notify the
sender immediately._
|
|
oh okay ..that makes sense
well thanks Kenneth for the quick response
…On Mon, Mar 23, 2020 at 2:22 PM Kenneth Lim ***@***.***> wrote:
constructor in this case is a Javascript keyword, unlike something like
strokeWeight which is defined in the library itself, we have no way of
checking whether constructor is correctly spelled or not.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4399 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALQEKD5F7Y5AJRFCFJEHQ3TRI6LETANCNFSM4LRBL6JQ>
.
--
*Ed Harkins*
Middle School Technology
[email protected] | +56 9 8198 9359
--
_Confidentiality Notice: This email and any attachments contain information
belonging to Nido de Aguilas which may be confidential. This information is
intended solely for the individual or entity to which it is addressed. If
you are not the intended recipient, you are notified that disclosing,
copying, distributing, or other use of this information is strictly
prohibited. If you have received this email in error, please notify the
sender immediately._
|
<
Most appropriate sub-area of p5.js?
Details about the bug: the console.log said that ellipse was expecting a different argument, however my mistake was misspelling the word "constructor" as cconstructor; to be sure, i misspelled it in a different way and the console printed out the same error message; i thought if misspellings of other commands like strokeWeight can be returned as errors, the same could be done with "constructor"
CONSOLE:
The text was updated successfully, but these errors were encountered: