Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Collapsed source & comments problems in 1535
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mike from reFX
Junior Member

24 Posts

Posted - Oct 02 2006 :  10:00:48 AM  Show Profile  Reply with Quote
Whenever I comment a large block of code out, after a certain amount of lines/bytes (don't know which) the comment no longer uses my colors.

Also when collapsing a large function/#define-block, after a certain amount of lines/bytes, the remainder of the block is displayed, although it should be collapsed.

Certainly no show-stopper, but it would be nice to have it working properly. If it's a RAM/speed problem, then it could perhaps be a user-option? I have more than enough RAM and I guess my 3.2 GHz CPU can handle this quite well ;)

rhummer
Tomato Guru

USA
527 Posts

Posted - Oct 02 2006 :  10:19:39 AM  Show Profile  Reply with Quote
That sounds more like and IDE problem to me since the IDE handles the code collapsing and comment coloring...

What IDE are you using, and have you tried disabling VA X and seeing if the issue still occurs?

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64

Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Oct 03 2006 :  10:13:16 AM  Show Profile  Reply with Quote
what sort of size are you talking about? before now i have wrapped several thousand lines of code in a single #if 0, #endif block and all of the lines were coloured correctly.

the colouring stopping might make sense if there is some specific piece of code that upsets the IDE or VA, but as rhummer says, VA does not collapse the code, the IDE does that on its own.

zen is the art of being at one with the two'ness
Go to Top of Page

Mike from reFX
Junior Member

24 Posts

Posted - Oct 06 2006 :  08:28:28 AM  Show Profile  Reply with Quote
Sorry for the delay:

rhummer: IDE: VS 2005 C/C++ Professional in XP SP2
feline: the colouring works fine in #if 0, #endif blocks, but they are not collapsed completely. If instead of using #if 0, #endif you try to comment out that block, you will see that after a few dozen lines, the syntax-colouring for that commentet out block completely goes away, so in my case (comments have a non-white background colour to distinguish them visually faster from the rest) it becomes quite confusing and I can't tell if the block is commented out or not by a quick glance.

Haven't tried with VA X disabled, will do soon. Can't use the IDE etc. right now (new hardware etc.)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Oct 07 2006 :  1:43:08 PM  Show Profile  Reply with Quote
using VS2005 professional, C++, VA 1538
i have just taken an 85 line block of code and wrapped it in #if 0, #endif
once VS2005 caught up with this it was all coloured correctly.
collapsing and expanding the block using CTRL-M, CTRL-M also worked perfectly.

i then replaced the #if 0, #endif lines with /*, */ comments, turning the 85 lines into a single comment block. the entire block was shown in the correct comment colour for me.

when your new machine is up and running can you see if this still happens?
is it file or project specific?
does it happen before you install VA?

zen is the art of being at one with the two'ness
Go to Top of Page

Mike from reFX
Junior Member

24 Posts

Posted - Oct 08 2006 :  09:11:36 AM  Show Profile  Reply with Quote
What can I tell you: after installing 1538 it works! So either VA confused VS2005 or it was a bug/limitation of VA all along which has been fixed by now.

85 lines? Pah. I was talking more along the lines of 300-400 lines... Yeah, I know, I should use more functions etc. but sometimes one easy "if...else if" construct grows and grows over time and after 14 file-format revisions you simply want to collapse the converter-code ;)

Thanks for your help.

Cheers,
Mike
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Oct 09 2006 :  06:43:47 AM  Show Profile  Reply with Quote
I have commented out entire files, sometimes several thousand lines, with many different versions of VA, and I have never seen this problem.

I am pleased this is now fixed. I am guessing something was "upset", and installing the new version of VA, which triggers a rebuild of VA's symbol databases somehow fixed it.

zen is the art of being at one with the two'ness
Go to Top of Page

Mike from reFX
Junior Member

24 Posts

Posted - Oct 11 2006 :  3:11:28 PM  Show Profile  Reply with Quote
And now it stopped working again. Sometimes only the first 50-60 lines are collapsed :(
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Oct 12 2006 :  08:03:21 AM  Show Profile  Reply with Quote
is this effect file specific?
what, exactly, are you doing? i.e. are you wrapping a block of code in #if 0, #endif and then telling the IDE to collapse this? or are you wrapping the code in comments and collapsing the comment block?

are there collapsible blocks inside this block?

can you close the IDE and open regedit, and go to the key:

HKEY_LOCAL_MACHINE \\ SOFTWARE \\ Microsoft \\ VisualStudio \\ 8.0 \\ Addins \\ VAssistNET.Connect8 \
and change the key LoadBehavior from 1 to 0. this will stop VA from loading when you run the IDE. can you see if this makes any difference to this problem?

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000