Page 1 of 1

Find\Replace capitalizing

Posted: Sun May 26, 2019 9:01 pm
by owinsloe
Product: PowerShell Studio 2019 (64 Bit)
Build: v5.6.160
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.17763.0

A very odd and frustrating issue.
I have a dict $GLBODBC.Database.Instance.Odbcserver. The keys are case sensitive as I created using System.Web.Script.Serialization.JavaScriptSerializer. I needed to check that the first character of the key was uppercase which is when I stumbled across this crazy little item..

In Find\Replace 'Find What', if you type instanc then as soon as the e is entered i becomes I (capital)
This is not the same for Database or Odbcserver.

I reproduced this in other scripts and also a new script with no content.

There's obviously some autocomplete thing happening and in a dialog that allows matching on case is probably not a good idea.

Cheers

Re: Find\Replace capitalizing

Posted: Tue May 28, 2019 7:29 am
by davidc
The combobox is matching an item from its history. If you use the dropdown, you will see that there is an entry for "Instance".
It seems to be too aggressive and we will look into this.

Re: Find\Replace capitalizing

Posted: Tue May 28, 2019 1:12 pm
by owinsloe
Ahhhh, of course...but what is even stranger it's not an exact match. I looked through the history and what I found was '$Instance' not 'Instance', so yes a wee bit aggressive. Perhaps including a facility that allows you to purge the history content may be useful?

Re: Find\Replace capitalizing

Posted: Tue May 28, 2019 1:20 pm
by davidc
The interesting part is we tell the control not to autocomplete but it still does it. Go figure.

The good news is we were able to find a workaround for the next service release. The build should be released very soon.

Re: Find\Replace capitalizing

Posted: Tue May 28, 2019 1:21 pm
by davidc
In the meantime, you can delete the following registry key to remove the history:

HKEY_CURRENT_USER\Software\SAPIEN Technologies, Inc.\PowerShell Studio 2019\Find

Re: Find\Replace capitalizing

Posted: Tue May 28, 2019 5:53 pm
by owinsloe
:D
Brilliant..thanks for that

Re: Find\Replace capitalizing

Posted: Thu May 30, 2019 11:30 am
by davidc
We released the service build. Please give it a try and let us know if it resolves the issue.

Re: Find\Replace capitalizing

Posted: Tue Jun 04, 2019 5:09 pm
by owinsloe
It certainly does...thanks David & co.