Micropython TypeError messages contain almost no useful information #16162
Quadrangle
started this conversation in
General
Replies: 4 comments 3 replies
-
Must be an ESP thing… |
Beta Was this translation helpful? Give feedback.
0 replies
-
Have you or anyone ever seen a TypeError on a platform other than ESP32, and line number information appeared in the message?
Sent from Yahoo Mail for iPad
On Tuesday, November 5, 2024, 8:40 AM, Norbert ***@***.***> wrote:
screen.png (view on web)
Must be an ESP thing…
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Another possibility: A lot of debug info is removed when cross compiling or freezing modules with It saves space at the cost of clarity. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using micropython 1.24 on an ESP-32, we got a TypeError message after heavily refactoring a fairly large project.
One time the message vaguely mentioned that some arguments of str and int were wrong. No function name, no line number.
After fixing that, we got a TypeError message that indicated a function takes 2 arguments but was given 3. No function name. No line number.
How was it decided mentioning the name of the function or where it was called from was unnecessary? Even just the module name would have been very helpful.
Are there any solutions other than exhaustive code inspection? Perhaps, try to "run" each module individually? Add a try catch block around everything?
This is infuriating. Imagine running a spell check on a huge document and the result was a message: "something in here is spelled incorrectly."
Beta Was this translation helpful? Give feedback.
All reactions