Author Topic: Comment line duplicated with #include autocomplete  (Read 2354 times)

Tim Kemp

  • Senior Community Member
  • Posts: 546
  • Hero Points: 92
Comment line duplicated with #include autocomplete
« on: July 11, 2017, 02:11:51 PM »
My code started like this:
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

I placed the cursor on the blank line in the middle and typed:
#include "fl"

I got a pop-up indicating the flags.h was a choice. I selected it and hit return. Now my code looks like:
/* USER CODE BEGIN Includes */
/* USER CODE BEGIN Includes */
#include "flags.h"
/* USER CODE END Includes */

Where did the extra comment line at the top come from?

SlickEdit Pro 2016 (v21.0.3.0 32-bit)
Licensed number of users: Single user
Build Date: June 26, 2017
Emulation: CUA
OS: Windows 7 x64
Hotfix: hotfix_se2103_3_cumulative

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Comment line duplicated with #include autocomplete
« Reply #1 on: July 13, 2017, 06:08:34 PM »
Could you post your user.cfg.xml file?  I can't get that to happen with my configuration, so it's probably easiest for me to use yours and see if I can reproduce it.

My suspicion is that it's trying to format the completion, and sending an invalid source range to the beautifier.

Tim Kemp

  • Senior Community Member
  • Posts: 546
  • Hero Points: 92
Re: Comment line duplicated with #include autocomplete
« Reply #2 on: July 20, 2017, 10:33:49 AM »
I'm sorry, I've tried replicating repeatedly and have been unsuccessful. When I reported it I tried it many times to make sure I had the steps correct. I'm pretty sure I also tried restarting SlickEdit at that time, but now I can't be certain. If I see it again I'll post my configuration.

- Tim