[OpenSCAD] Suppressing "search term not found" warning in search( ) ???

Andrew Plumb andrew at plumb.org
Mon Apr 13 18:48:21 EDT 2015


Sounds reasonable.

Simple fix+pull request created: https://github.com/openscad/openscad/pull/1312 <https://github.com/openscad/openscad/pull/1312>

Andrew.

> On Apr 13, 2015, at 5:39 PM, runsun <runsun at gmail.com> wrote:
> 
> When using search( ), the console pops out a "Warning: search term not found:
> ..." when the searched term not found.
> 
> Is there any way to suppress this warning ?
> 
> Here is the story:
> 
> I wanna use search( ) to build up a hash( ) function for parameter settings.
> Users have the freedom to set some parameters, or not. 
> 
> When a parameter is not set by users, the hash( ) function has a default
> mechanism to handle it. This is considered normal (so shouldn't be
> "warned").
> 
> With the warning, however, no matter whether the not-found is dealt with, it
> always pops up the warning. As a result, it could end up a long list of
> unnecessary warnings in the console. This is unacceptable in my case. 
> 
> 
> 
> 
> 
> -----
> 
> $  Runsun Pan, PhD 
> 
> $ -- OpenScad_DocTest: doc and unit test ( Github , Thingiverse  ) 
> 
> $ -- hash parameter model: here , here 
> 
> $ -- Linux Mint 17.1 Rebecca x64  + OpenSCAD 2015.03.15/2015.04.01.nightly 
> 
> 
> 
> 
> --
> View this message in context: http://forum.openscad.org/Suppressing-search-term-not-found-warning-in-search-tp12359.html
> Sent from the OpenSCAD mailing list archive at Nabble.com.
> 
> _______________________________________________
> OpenSCAD mailing list
> Discuss at lists.openscad.org
> http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscad.org/pipermail/discuss_lists.openscad.org/attachments/20150413/1311310d/attachment-0002.html>


More information about the Discuss mailing list