Author Topic: Regex Evaluator: New  (Read 761 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1825
  • Hero Points: 177
  • Text
Regex Evaluator: New
« on: September 07, 2017, 06:11:40 pm »
The NewExpression button doesn't do what it should.

It seems to cycle thru history - changing the TestCase area to previous blocks of text I've had in there.

While a proper history would be great (even, F7/F8), NewExpression isn't the place for it!


Also, the screen shot for this window in Help is out of date (as are, I suspect a lot of screen shots now given the new icons).
In this case though help is way out of date - still shows Brief and Unix Regex options.



Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4893
  • Hero Points: 398
Re: Regex Evaluator: New
« Reply #1 on: September 09, 2017, 01:11:02 am »
I can't seem to reproduce this. Try a clean config and see what happens.

When I try a clean config, the New button clears the test case and the text box.

jporkkahtc

  • Senior Community Member
  • Posts: 1825
  • Hero Points: 177
  • Text
Re: Regex Evaluator: New
« Reply #2 on: September 11, 2017, 07:39:29 pm »
I uploaded 2 videos showing the repro to support.

After the first video, I deleted vrestore.slk and restarted Slickedit.

Hm... after reopening my workspace, the "new" button regains some of the history function, though now I have different history.
See the second video.

The repro seems to be something like:
Delete vrestore.slk.
Reopen slick.
Open Regex tool.
Type some stuff into testcases.
Click new a few times.
Close regex

Open a workspace.
For me, Regex reopened automatically due to the workspace restore.

Type some more stuff into regex.
Click new a few times
Watch the old versions of regex test cases appear.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4893
  • Hero Points: 398
Re: Regex Evaluator: New
« Reply #3 on: September 11, 2017, 10:49:19 pm »
Since I was having trouble reproducing this problem I looked at the code to see what it was doing. Yep, there's a problem. There's a call to _retrieve_prev_form() which should not be called for this case.

Try loading the attached macro.

jporkkahtc

  • Senior Community Member
  • Posts: 1825
  • Hero Points: 177
  • Text
Re: Regex Evaluator: New
« Reply #4 on: September 11, 2017, 11:13:44 pm »
Cool - that fixes it, thanks!