Author Topic: SE Pro 20.0.X, WIN64, Problem with Beautify  (Read 3683 times)

mnowell129

  • Junior Community Member
  • Posts: 3
  • Hero Points: 1
SE Pro 20.0.X, WIN64, Problem with Beautify
« on: January 29, 2016, 02:27:57 PM »
Apologies if this has been dealt with before. I did a search and turned up nothing.
The problem I have is that named array initialization in C is broken when I beautify as selection or file.
What I want as a result is this:

const int myArray[10] =
{
   [7] = 1,
   [1] = 3,
   [2] = 5,
   [3] = 7,
   [4] = 9,
   [5] = 11
};

But what the beautifier produces is this:

const int myArray[10] =
{
   [7] = 1,
   [1] = 3,
[2] = 5,
[3] = 7,
[4] = 9,
[5] = 11
};

I've looked at all the beautifier options but to no avail.
Sometimes the first 2 lines are indented properly, sometimes 3, but never all.
Any ideas? Thanks in advance.
« Last Edit: January 29, 2016, 02:31:55 PM by mnowell129 »

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: SE Pro 20.0.X, WIN64, Problem with Beautify
« Reply #1 on: January 29, 2016, 02:50:20 PM »
I'll take a look - it's supposed to support that syntax, there isn't a special setting, so I suspect this is a bug that got introduced.  Thanks for the report.

mnowell129

  • Junior Community Member
  • Posts: 3
  • Hero Points: 1
Re: SE Pro 20.0.X, WIN64, Problem with Beautify
« Reply #2 on: February 06, 2016, 11:42:32 PM »
Bump?

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: SE Pro 20.0.X, WIN64, Problem with Beautify
« Reply #3 on: February 08, 2016, 02:16:26 PM »
It's definitely a bug, I have no problem reproducing it.  But it is not hot-fixable, so it will be in the next point or major version release.  I don't see any way to work around it via the settings.

mnowell129

  • Junior Community Member
  • Posts: 3
  • Hero Points: 1
Re: SE Pro 20.0.X, WIN64, Problem with Beautify
« Reply #4 on: February 08, 2016, 09:12:08 PM »
It's definitely a bug, I have no problem reproducing it.  But it is not hot-fixable, so it will be in the next point or major version release.  I don't see any way to work around it via the settings.
Thanks for looking into it. I will look forward to next release.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: SE Pro 20.0.X, WIN64, Problem with Beautify
« Reply #5 on: August 01, 2016, 05:37:31 PM »
This has been fixed for the next v21 beta.