Author Topic: Stack: Recursion too deep  (Read 838 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Stack: Recursion too deep
« on: September 07, 2022, 08:27:44 PM »
I accidentally saved a coverage.json report to filename.xml and opened it in slickedit.

The file didn't make it onto the File menu recents list either.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6990
  • Hero Points: 533
Re: Stack: Recursion too deep
« Reply #1 on: September 07, 2022, 09:49:56 PM »
Try loading this potential fix and then opening filename.xml.

I couldn't test this fix because I wasn't able to figure how to cause the problem. Looks like it should be easy but I couldn't get it.

This fix simply puts a maximum on the recursion.

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Stack: Recursion too deep
« Reply #2 on: September 07, 2022, 10:07:04 PM »
Seems to fix it.
Attached is a file to repro.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6990
  • Hero Points: 533
Re: Stack: Recursion too deep
« Reply #3 on: September 07, 2022, 10:14:56 PM »
Thanks for posting the file. Couldn't reproduce it with your file either. I've checked in my fix anyway. It's very simple. It just quits when the recursion reaches 400.