Author Topic: Symbol Color Issue  (Read 4894 times)

tenggui

  • Community Member
  • Posts: 26
  • Hero Points: 0
Symbol Color Issue
« on: June 17, 2014, 06:48:12 AM »
Hi, I use slickedit 18.0.2 on windows platform for C/C++ coding, the symbol color often flashes quickly when I edit for a while, but it is ok after slickedit restarted. This issue bothers me for a long time. Is it a bug? or how to solve this problem? The issue video recorded is attached. Thanks a lot!

tenggui

  • Community Member
  • Posts: 26
  • Hero Points: 0
Re: Symbol Color Issue
« Reply #1 on: June 17, 2014, 06:57:28 AM »
My slickedit version is [SlickEdit 2013 (v18.0.1.2 64-bit)], not 18.0.2

Dennis

  • Senior Community Member
  • Posts: 3998
  • Hero Points: 521
Re: Symbol Color Issue
« Reply #2 on: June 17, 2014, 03:05:17 PM »
I have not been able to reproduce this with 18.0.1.  Could you send the entire header file, maybe there is something very specific to it that I am not seeing.

We have a double-buffering algorithm in place for symbol coloring, so it should not flash.  It looks as if something is triggering your symbol coloring to be invalidated and then recalculated.  Does this tend to happen after you diff the file?  What other tool windows are you using?  Backup history?


tenggui

  • Community Member
  • Posts: 26
  • Hero Points: 0
Re: Symbol Color Issue
« Reply #3 on: May 29, 2015, 07:33:07 AM »
I update my SlickEdit to 19.0.2 and this problem seems to be reproduced more frequently. The commands I operate  frequently are "Goto Definition", "Goto Reference" and "Goto Declaration". The other tools I used are tortoisesvn and subversion
« Last Edit: May 29, 2015, 07:36:08 AM by tenggui »

Dennis

  • Senior Community Member
  • Posts: 3998
  • Hero Points: 521
Re: Symbol Color Issue
« Reply #4 on: May 29, 2015, 03:43:06 PM »
I still can't reproduce the problem.

Does this happen in a default configuration?  Start SlickEdit with a temporary configuration directory "vs +new -sc c:\temp\testvs\", then open your project and enable symbol coloring and see if it happens.

Another way to go about this is to edit the following file under your SlickEdit macros directory:  se/color/SymbolColorAnalyzer.e, after line 260, add the following statement:  _StackDump();  You may need to run SlickEdit as administrator to give yourself permission to modify this file.  Then, from the slickedit command line, type "load" to compile and load the module.

This will produce a bunch of debug output to a separate window.  Click in that window and hit Ctrl+C to cut/copy the text, and then post it here.  That should expose whatever is triggering symbol coloring to reset and redraw frequently.

Remember to remove the debugging code after you are done.

tenggui

  • Community Member
  • Posts: 26
  • Hero Points: 0
Re: Symbol Color Issue
« Reply #5 on: May 29, 2015, 11:47:07 PM »
Thank you for your reply. I will try again with default configurations and with symbol coloring debug mode on. I will post the debug information later if the problem reproduced.

tenggui

  • Community Member
  • Posts: 26
  • Hero Points: 0
Re: Symbol Color Issue
« Reply #6 on: June 12, 2015, 06:25:28 AM »
I edited macro file se/color/SymbolColorAnalyzer.e and added "_StackDump();" at line 260, but unfortunately, it seemed like resetSymbolColoring() function won't be called when the problem reproduced.
I think it's a critical problem, pelease reproduce it take more time again. The attachments are my options and a new desktop captured video.  Another important settings are two user macros are loaded, which are symbol highlighting(https://community.slickedit.com/index.php/topic,4701.0.html) and xretrace(https://community.slickedit.com/index.php/topic,4693.0.html)

Dennis

  • Senior Community Member
  • Posts: 3998
  • Hero Points: 521
Re: Symbol Color Issue
« Reply #7 on: June 12, 2015, 03:15:22 PM »
You did not respond to one of my earlier questions.  Does the problem occur in a default configuration?  (before loading those user macros)?