Syntax errors cause "_b_ is not defined"

17 views
Skip to first unread message

Brendan Barnwell

unread,
Nov 13, 2016, 3:06:25 AM11/13/16
to brython
I've been experimenting with Brython, which looks very cool.  One thing I notice, though, is if I have an HTML page with some Brython in a script tag, and the code has a syntax error, I don't receive any helpful error message.  Instead, the console just shows "_b_ is not defined".  What is up with that?  Am I doing something wrong?  This makes it very difficult to debug small typos because there's no information about where the error is.

Pierre Quentel

unread,
Nov 13, 2016, 3:25:51 AM11/13/16
to brython


Le dimanche 13 novembre 2016 09:06:25 UTC+1, Brendan Barnwell a écrit :
I've been experimenting with Brython, which looks very cool.  One thing I notice, though, is if I have an HTML page with some Brython in a script tag, and the code has a syntax error, I don't receive any helpful error message.  Instead, the console just shows "_b_ is not defined".  What is up with that?  Am I doing something wrong?  This makes it very difficult to debug small typos because there's no information about where the error is.
Thanks for the compliments :-)
There is a bug in version 3.2.8 that makes error messages unusable in this case. It was reported and fixed a few days ago in the current development version.
Reply all
Reply to author
Forward
0 new messages