Author Topic: /** expansion no longer works  (Read 413 times)

jorick

  • Senior Community Member
  • Posts: 320
  • Hero Points: 15
/** expansion no longer works
« on: June 05, 2017, 01:11:10 pm »
I have the Doc Comments set up to expand /** to a function header in the C language.  This worked in previous versions but doesn't work in the most recent version.

=====

SlickEdit Pro 2016 (v21.0.3.0 64-bit)

Serial number: [redacted]
Licensed number of users: Single user
License file: C:\ProgramData\slickedit\21\slickedit.lic

Build Date: June 01, 2017
Emulation: CodeWright

OS: Windows 7 x64
OS Version: 6.01.7601  Service Pack 1
Memory: 47% Load, 13634MB/28577MB Physical, 14763MB/57152MB Page File, 891MB/8388607MB Virtual
Shell Information: C:\Windows\system32\cmd.exe /q
Screen Size: 1680 x 1050, 1680 x 1050, 1680 x 1050, 1680 x 1050, 1680 x 1050

Project Type: Cpp
Language: .c (C/C++)
Encoding: Automatic

Installation Directory: C:\Program Files\SlickEdit Pro 21.0.3\ (non-removable drive,NTFS,304896MB free)
Configuration Directory: C:\Users\rbennet\Documents\My SlickEdit Config\21.0.3\ (non-removable drive,NTFS,304896MB free)
Migrated from: C:\Users\rbennet\Documents\My SlickEdit Config\21.0.2\

Hotfixes:
C:\Users\rbennet\Documents\My SlickEdit Config\21.0.3\hotfixes\hotfix_se2103_1_cumulative.zip (Revision: 1)

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3941
  • Hero Points: 256
Re: /** expansion no longer works
« Reply #1 on: June 05, 2017, 06:26:45 pm »
I couldn't reproduce this by starting with a clean config, switching to codewright emulation and then installing the hot fix. Something is different in your config.

jorick

  • Senior Community Member
  • Posts: 320
  • Hero Points: 15
Re: /** expansion no longer works
« Reply #2 on: June 05, 2017, 06:30:32 pm »
Ooops!  Forgot to include my configuration.  Attached.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3941
  • Hero Points: 256
Re: /** expansion no longer works
« Reply #3 on: June 05, 2017, 08:27:03 pm »
Looks like you removed some keybindings for C++ mode.

If you edit your user.cfg.xml file and search for "eventtab_profiles.c" (C++ mode keybindings mods profile). Noticed 4 "d" entries which delete 4 bindings. I think you removed too many bindings. I'm guessing you only wanted to remove the "PAD-STAR" and "PAD-SLASH" entries. I'm just guessing though. You can remove some of the "d" line entries and save the file. When you save the file, you will be prompted to reload your settings. Reloading after saving your settings should do the trick. You could also use the GUI keybindings dialog but since this is a mode specific binding, it's slightly easier IMO to just edit this file. The correct binding is c-asterisk.

jorick

  • Senior Community Member
  • Posts: 320
  • Hero Points: 15
Re: /** expansion no longer works
« Reply #4 on: June 06, 2017, 01:44:34 pm »
Tried to open the file with the File Open icon.  SlickEdit popped up a dialog box saying "Error starting debugger: GDB returned an error opening the executable "C:/Projects/Applications/BTX_2001+/Display/Project/Debug/App Display: No such file or directory.""  (The path is one of my project paths)  (I don't have GDB installed)

Then it goes crazy and starts opening and closing debugger windows on its own before popping up the box again.  After 3 times, it crashed with "Unhandled exception at 0x6459bc6b in vs.exe: 0xC0000005: Acess violation reading location 0x00000000000000008."

Gave up and used drag-and-drop to open the file.

This is the first time I've tried to use the File Open icon since upgrading.

jorick

  • Senior Community Member
  • Posts: 320
  • Hero Points: 15
Re: /** expansion no longer works
« Reply #5 on: June 06, 2017, 01:52:47 pm »
It didn't work so I deleted my configuration and reloaded the one from 21.0.2.  FYI, the special characters setting isn't copied to the new configuration.

I removed all PAD-STARs like I did before and bound it to undo and both functions (undo and comment block create) work now.  I don't remember unbinding c-asterisk but it could have happened.

Things like this are happening because settings don't completely migrate from one version to the next.  It's very frustrating having to search for all the settings that got trashed.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3941
  • Hero Points: 256
Re: /** expansion no longer works
« Reply #6 on: June 06, 2017, 02:18:24 pm »
Tried to open the file with the File Open icon.  SlickEdit popped up a dialog box saying "Error starting debugger: GDB returned an error opening the executable "C:/Projects/Applications/BTX_2001+/Display/Project/Debug/App Display: No such file or directory.""  (The path is one of my project paths)  (I don't have GDB installed)

Then it goes crazy and starts opening and closing debugger windows on its own before popping up the box again.  After 3 times, it crashed with "Unhandled exception at 0x6459bc6b in vs.exe: 0xC0000005: Acess violation reading location 0x00000000000000008."

Gave up and used drag-and-drop to open the file.

This is the first time I've tried to use the File Open icon since upgrading.

I couldn't reproduce this with your config. Keep an eye out for it. I'm guessing something else happened maybe before you clicked the File Open icon. Some debug features are asynchronous so won't happen immediately.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3941
  • Hero Points: 256
Re: /** expansion no longer works
« Reply #7 on: June 06, 2017, 02:25:44 pm »
It didn't work so I deleted my configuration and reloaded the one from 21.0.2.  FYI, the special characters setting isn't copied to the new configuration.

I removed all PAD-STARs like I did before and bound it to undo and both functions (undo and comment block create) work now.  I don't remember unbinding c-asterisk but it could have happened.

Things like this are happening because settings don't completely migrate from one version to the next.  It's very frustrating having to search for all the settings that got trashed.

If you lose a setting or something doesn't migrate, lets us know. All we need is your old config to test it.

jorick

  • Senior Community Member
  • Posts: 320
  • Hero Points: 15
Re: /** expansion no longer works
« Reply #8 on: June 06, 2017, 02:58:49 pm »
My old configuration is attached for testing of the special characters settings.  My carriage return "bookend" changes to a paragraph symbol.  Other special characters get nuked as well.
« Last Edit: June 06, 2017, 03:00:55 pm by jorick »

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3941
  • Hero Points: 256
Re: /** expansion no longer works
« Reply #9 on: June 06, 2017, 05:30:23 pm »
I found an issue but I suspect it's not what you found.

Here's what I did.

I created an empty config 21.0.2 directory with just your user.cfg.xml
Ran 21.0.2 to see what line endings looked like for XML files.
Then ran 21.0.3 to see what line endings look like for XML files. Initially, they were wrong. Once I exited and restarted, then they were correct. That's a bug. The migration of settings is supposed update the the special character display settings immediately.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3941
  • Hero Points: 256
Re: /** expansion no longer works
« Reply #10 on: June 06, 2017, 05:56:55 pm »
If you're seeing something different, let me know.