Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 VA doesn't always terminate file with linefeed

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
beylevem Posted - Jan 26 2011 : 11:24:47 AM
Which, I believe, is a violation of the C++ standard.

The easiest way to reproduce the problem is to use the outline feature to move the last method in a file above the previous one. Then go to the end of the file. The cursor will be positioned at the end of the last line which has text.
3   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Jan 27 2011 : 3:48:53 PM
*ah* The problem occurs when there is no empty line after the function which will become the last one after a re-arrangement.

case=54548

Thank you for the code sample.
beylevem Posted - Jan 27 2011 : 09:27:20 AM
Hi Accord:

Of course, when I then try to create a simple case, it doesn't always happen. My details are:

VA_X.dll file version 10.6.1837.0 built 2010.11.19
DevEnv.exe version 9.0.30729.1 Standard
msenv.dll version 9.0.30729.1
Font: Consolas 15(Pixels)
Comctl32.dll version 6.10.7600.16661
Windows 7 6.1 Build 7600
8 processors (x86-64;
WOW64)

Platform: Custom
Stable Includes:

Other Includes:

Stable Source Directories:

I managed to reproduce the problem by creating a new source file in an existing project, and then adding the code between the "====" lines. When I use the VA outline to move Func3 above Func2, the closing brace at the end of Func2 is the last character in the file - i.e. it is missing the final newline.

======================================

bool Furnace::Func1() {
}
//________________________________________________________________________________________________

bool Furnace::Func2() {
}
//________________________________________________________________________________________________

bool Furnace::Func3() {
}
=====================================================
accord Posted - Jan 26 2011 : 7:54:37 PM
Which version of Visual Assist and Visual Studio are you using?

I've just tried to reproduce this problem, but wasn't able to. I used a clean new win32 test project, and VA has always put empty line @ EOF. I even tried to manually removed it, but once I move the last function (via drag-and-drop) VA put it back to the EOF. Using VA1840 and VS2010.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000