Author Topic: SE JavaDoc comment formatting broke with beautify settings  (Read 162 times)

rajkej

  • Senior Community Member
  • Posts: 257
  • Hero Points: 8
SE JavaDoc comment formatting broke with beautify settings
« on: November 13, 2017, 04:41:30 pm »
SE 22.0.0.9 with hotfix 10 on MAC.

Up until today I've been able to type in javadoc style comments in C++ code by typing '/**' and hitting return and the result would be filled in by the editor properly. After changing beautify settings, this is now broken.

For a simple example, on a variable definition within a class I would start by typing "/**", the editor would fill in the trailing "*/" with my cursor between those.

Code: [Select]
/**<cursor is here>*/
uint64_t xx;

After typing return I would get the following.

Code: [Select]
/**
 * <cursor is here>
 */
uint64_t xx;

After updating my C++ beautify settings I get the following instead.

Code: [Select]
*
 */<cursor is here>
uint64_t xx;

I tracked this down to the C/C++ Formatting->Doc comments->Javadoc->Indent and formatting settings in the attached screenshot. If I uncheck the box on the left for all 4 of those then things work as I desire and expect. But if I check any of the lower three items (I didn't test the top one) then I get the bad behavior.

Let me know if you need more information on how to reproduce or if I can help test any fixes.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 821
  • Hero Points: 46
Re: SE JavaDoc comment formatting broke with beautify settings
« Reply #1 on: November 13, 2017, 07:41:13 pm »
Something is definitely wrong there.  Looking in to it.

rajkej

  • Senior Community Member
  • Posts: 257
  • Hero Points: 8
Re: SE JavaDoc comment formatting broke with beautify settings
« Reply #2 on: December 05, 2017, 08:57:43 pm »
Were you ever able to find the source of this error and possibly fix it?

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 821
  • Hero Points: 46
Re: SE JavaDoc comment formatting broke with beautify settings
« Reply #3 on: December 06, 2017, 02:34:52 pm »
Yes.  It's not hot-fixable, but will be in the point release that's coming this month. 

rajkej

  • Senior Community Member
  • Posts: 257
  • Hero Points: 8
Re: SE JavaDoc comment formatting broke with beautify settings
« Reply #4 on: December 06, 2017, 02:37:28 pm »
Thank you for the update!