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
 surround selection on / bug
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Mar 08 2004 :  12:05:33 PM  Show Profile
using VAX 1219 and VS .NET 2003
in one of my C++ source files, i highlighted the lines:

long CLogListViewItem::GetCount() const
{
    return m_pLogRecord->GetCount();
}


where the last line of code is the last line in the file. if i now press the / key to comment out this code, the cursor is placed at the begining of the first hightlighted line, but no /'s are inserted.

if i only select the first 3 lines of code, so that the last line in the file isnt hightlighted then / works.

there is code above this block.

even worse, if i highlight the first 3 lines in the file:


#ifndef FILE_LIST_VIEW_ITEM_H
#define FILE_LIST_VIEW_ITEM_H


where the first line is blank, and the use / to highlight this selection then these lines are left alone and the next 6 lines lines in the file are hightlighted and then commented out

zen is the art of being at one with the two'ness

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Mar 08 2004 :  12:09:25 PM  Show Profile
i was switching between a .cpp and its .h while experimenting with this via alt_o

i have just found that i have my entire .h pasted in at the bottom of the .cpp file, all commented out.

i am 99.9% certain this wasn't there when i started, which suggests that VAX inserted the .h body into the .cpp

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

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Mar 08 2004 :  12:46:06 PM  Show Profile
There are a couple of bugs along these lines. I think both your bugs are covered in thread 1424, but thread 920 may also be related.

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Mar 08 2004 :  12:52:12 PM  Show Profile
thanks, that sounds the same

i have just tried to reproduce the code from the .h turning up in the .cpp, but it isnt happening on demand. very strange.

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

support
Whole Tomato Software

5566 Posts

Posted - Mar 08 2004 :  7:55:41 PM  Show Profile
We can reproduce the problem with commenting of the last line in a file. Albeit low priority, it is on our list to fix.

Send more clues if a header appears at the bottom of your cpp.

Whole Tomato Software, Inc.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Mar 09 2004 :  06:36:09 AM  Show Profile
thats fair i would agree that this isnt normally going to be a problem. i will keep an eye out for the header into cpp problem.

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

jpizzi
Tomato Guru

USA
642 Posts

Posted - Mar 09 2004 :  6:05:38 PM  Show Profile
Just remember that the C Standard (and the C++ Standard, IIRC) REQUIRE the last line of a file to be blank. Not that most compilers follow this requirement...

Joe Pizzi
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000