EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: CaSe-IndepeDent Menu SEARches?
From: Michael Davidsaver via Core-talk <core-talk at aps.anl.gov>
To: "Johnson, Andrew N." <anj at anl.gov>
Cc: EPICS core-talk <core-talk at aps.anl.gov>
Date: Thu, 4 Feb 2021 10:52:51 -0800
On 2/3/21 5:23 PM, Michael Davidsaver wrote:
...
> How about improving the error message by printing the choices list from
> dbPutString() in a way which invites copy+paste?
> 
>> Can't set "foo.SCAN" to "10 seconds" Extraneous characters
>> Error at or before ")" in path "."  file "badchoice.db" line 2
>> dbLoadRecords: failed to load 'badchoice.db'
>> Error: Failed to load: badchoice.db
> 
> might become

Ok, this is the best I have time for today.  Not perfect, as you can see
it gets my "Pensive" wrong.  Maybe someone knows a better similarity algorithm?

https://github.com/epics-base/epics-base/pull/104

> Can't set "bar.DTYP" to "Soft Chanel" Not devsup for ai : No digits to convert
>     Did you mean "Soft Channel"?
> Error at or before ")" in path "."  file "badchoice.db" line 2
> Can't set "baz.IVOA" to "Set output To IVOV" using menuIvoa.dbd : No digits to convert
>     Did you mean "Set output to IVOV"?
> ErrorCan't set "foo.SCAN" to "Pensive" using menuScan.dbd : No digits to convert
>     Did you mean "I/O Intr"?

Replies:
Re: CaSe-IndepeDent Menu SEARches? Michael Davidsaver via Core-talk
References:
CaSe-IndepeDent Menu SEARches? Johnson, Andrew N. via Core-talk
Re: CaSe-IndepeDent Menu SEARches? Michael Davidsaver via Core-talk

Navigate by Date:
Prev: Re: CaSe-IndepeDent Menu SEARches? Ralph Lange via Core-talk
Next: Re: CaSe-IndepeDent Menu SEARches? Timo Korhonen via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: CaSe-IndepeDent Menu SEARches? Michael Davidsaver via Core-talk
Next: Re: CaSe-IndepeDent Menu SEARches? Michael Davidsaver via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  <20212022  2023  2024 
ANJ, 05 Feb 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·