discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Finding line number of warnings

CS
Chris Spencer
Sat, Apr 22, 2017 6:44 AM

When I run my script, I see lots of messages like:

WARNING: Ignoring unknown variable 'engagement_angle'.
WARNING: Ignoring unknown variable 'engagement_angle'.
WARNING: Ignoring unknown variable 'engagement_angle'.
WARNING: Ignoring unknown variable 'engagement_angle'.
WARNING: Ignoring unknown variable 'engagement_angle'.

Unfortunately, I use the variable "engagement_angle" in many modules. Is
there any way to find make OpenSCAD report the line number along with the
warning message?

When I run my script, I see lots of messages like: WARNING: Ignoring unknown variable 'engagement_angle'. WARNING: Ignoring unknown variable 'engagement_angle'. WARNING: Ignoring unknown variable 'engagement_angle'. WARNING: Ignoring unknown variable 'engagement_angle'. WARNING: Ignoring unknown variable 'engagement_angle'. Unfortunately, I use the variable "engagement_angle" in many modules. Is there any way to find make OpenSCAD report the line number along with the warning message?
M
MichaelAtOz
Sat, Apr 22, 2017 8:02 AM

It's on the  list https://github.com/openscad/openscad/issues/1843  .
Needs some redesign to be done first.


Admin - PM me if you need anything, or if I've done something stupid...

Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above.

The TPP is no simple “trade agreement.”  Fight it! http://www.ourfairdeal.org/  time is running out!

View this message in context: http://forum.openscad.org/Finding-line-number-of-warnings-tp21350p21351.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

It's on the list <https://github.com/openscad/openscad/issues/1843> . Needs some redesign to be done first. ----- Admin - PM me if you need anything, or if I've done something stupid... Unless specifically shown otherwise above, my contribution is in the Public Domain; to the extent possible under law, I have waived all copyright and related or neighbouring rights to this work. Obviously inclusion of works of previous authors is not included in the above. The TPP is no simple “trade agreement.” Fight it! http://www.ourfairdeal.org/ time is running out! -- View this message in context: http://forum.openscad.org/Finding-line-number-of-warnings-tp21350p21351.html Sent from the OpenSCAD mailing list archive at Nabble.com.