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.
+1
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. This work is published globally via the internet. :) Inclusion of works of previous authors is not included in the above.
View this message in context: http://forum.openscad.org/Suppressing-search-term-not-found-warning-in-search-tp12359p12360.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
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@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@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org
Thanks a million, Andrew. This would be a significant aid to my code. Am I
right that it won't be available in the nightly-build until it's merged to
the master ?
$ 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-tp12359p12364.html
Sent from the OpenSCAD mailing list archive at Nabble.com.
On 04/14/2015 06:35 AM, runsun wrote:
Thanks a million, Andrew. This would be a significant aid to my code. Am I
right that it won't be available in the nightly-build until it's merged to
the master ?
Yes, the nightly-builds are based on master.
But actually those are not really "nightly" builds, they are triggered after
commit / merge on github. So if you subscribe on the pull request, you'll
get a mail about 30 minutes before the builds are ready ;-).
ciao,
Torsten.
Strange. I get no warning. I am running version 2021.01
--
Sent from: http://forum.openscad.org/