Author Topic: Can't copy abbreviations with 'cb share config'  (Read 10658 times)

Offline scarphin

  • Lives here!
  • ****
  • Posts: 640
Can't copy abbreviations with 'cb share config'
« on: February 27, 2012, 09:59:36 am »
Long story short I can't copy my abbreviations with 'cb share config' utility. I started with transferring my old settings to a new file with share config. When I transferred them back to the newly created 'default.conf' file abbreviations are lost although they exist in the backup file. Then I tried again with transferring the 'auto complete' settings again from the backup file to the 'default.conf' file with no luck. They revert back to their defaults when I launch CB. I also tried to copy the corresponding parts of the files by hand. When I did that they didn't revert back to their defaults but every tab character got replaced with spaces and I can't replace them with tabs again. It just won't save the changes I make. Any help? Thnx...

Edit: Sorry I forgot!
OS: Win 7
CB: Feb 11 nightly svn 7790
« Last Edit: February 27, 2012, 10:12:46 am by scarphin »

Offline scarphin

  • Lives here!
  • ****
  • Posts: 640
Re: Can't copy abbreviations with 'cb share config'
« Reply #1 on: February 27, 2012, 12:08:40 pm »
I managed to correct the 'tab' problem by replacing corresponding the spaces in the 'default.conf' file with '\t' and enabling the 'show tab character' option. When the 'show tab' option is disabled, CB saves the 'default.conf' file with replacing the the 'tabs' of abbreviations with spaces, is that intended, shouldn't it still keep the tabs in the '.conf' file? Anyway there is still the problem with 'share config' not copying 'auto complete' settings.

I'm also having this 'parentheses mismatch' issue which is annoying me for a long time. Whenever I enter one of the characters '( [ {' CB automatically inserts the corresponding closing version but with a mismatch color and the 'caret' blinking in red. Blinking and mismatch reset only when the caret passes right to the closing character. I deleted the 'default.conf' to solve this issue but didn't work. That's the reason why everything in this topic started. ;) Any ideas?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Can't copy abbreviations with 'cb share config'
« Reply #2 on: February 27, 2012, 12:57:28 pm »
Whenever I enter one of the characters '( [ {' CB automatically inserts the corresponding closing version [...]
So why don't you just disable that option? And btw: I don't experience different colours?! :-\
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline scarphin

  • Lives here!
  • ****
  • Posts: 640
Re: Can't copy abbreviations with 'cb share config'
« Reply #3 on: February 27, 2012, 01:09:08 pm »
Because it happens also when CB puts parenthesis after an auto completed function. It places the caret in the middle of the parenthesis and puts the mismatch color on the ending parenthesis and blinks the caret in red as before. Attached a screen image.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Can't copy abbreviations with 'cb share config'
« Reply #4 on: April 13, 2012, 02:25:09 pm »
I can confirm this bug. Thanks for the report in
Parenthesis mismatch issue (Red Caret).
But currently I have no idea what cause this issue. ::)

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline scarphin

  • Lives here!
  • ****
  • Posts: 640
Re: Can't copy abbreviations with 'cb share config'
« Reply #5 on: April 13, 2012, 02:56:55 pm »
I wish I could be of more help. I tested this on 2 new fresh installations of CB and OS, but it's quite strange no one had hit it before. ;/

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Can't copy abbreviations with 'cb share config'
« Reply #6 on: April 13, 2012, 03:17:52 pm »
I wish I could be of more help. I tested this on 2 new fresh installations of CB and OS, but it's quite strange no one had hit it before. ;/

I have never noticed about this tiny issue.  :)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Can't copy abbreviations with 'cb share config'
« Reply #7 on: April 13, 2012, 04:16:08 pm »
I have never noticed about this tiny issue.  :)
I maybe related to the underlying scintilla version. Because on my version -> with way more recent (wx)Scintilla <- I cannot reproduce.

So most likely once we update the (wx)Scintilla core its gone.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ