Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 [1727]A bug of "Surround With Comment"

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
wondering Posted - Jul 28 2009 : 10:05:29 PM
Recently, my VA doesn't work well for "Surround With Comment" often, look at the snapshot:






Some lines can't be commented always. I didn't find out any laws for this problem.
7   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 04 2009 : 12:54:41 PM
It is possible the mixed line endings appear when you are copy and pasting text from a different program. Simply editing the file normally inside the IDE should not introduce mixed line endings.
wondering Posted - Aug 03 2009 : 9:11:15 PM
Thank you for help. It's strange that there are inconsistent line endings in my code.
All of the code is written by myself in VS2008 on Windows OS.
Why some line endings are inconsistent? Do you have any experience?
Under this case, IDE debug and VA comment works abnormally, why?

When I turn on "Check for consistent line endings on load" and load the test project again,
my IDE corrects the line endings and VA comment works normally.
However, the WTL listbox problem is also unresolved. I can't see any change for it.
I think the line ending problem isn't a factor for WTL listbox problem,
because the test project you gave me don't have the line ending problem.
feline Posted - Aug 03 2009 : 1:10:07 PM
I have a zip file, thank you for this. I think I have found the problem. When I opened the file "wtl_listbox_test.cpp" VS2008 gives me a message box telling me that the line endings are inconsistent. If I say "No" and tell the IDE to leave the line endings alone, so they are inconsistent, then this problem shows up.

But if I say yes and let the IDE correct the line endings so they are all the same then the problem does not show up.

Are you getting this warning on your system? You may need to turn On:

IDE tools menu -> Options -> Environment -> Documents -> Check for consistent line endings on load

case=30400


It is possible these inconsistent line endings are a factor in the WTL listbox problem.
wondering Posted - Aug 02 2009 : 03:24:39 AM
I have submitted my test project to you.
This project shows the same problem on other machines with different OS of my team members.
If you couldn't reproduce the problem in my test project, I suggest you importing the settings of my IDE, which has been sent to you several days before for another VA problem.
feline Posted - Jul 31 2009 : 12:11:40 PM
If you copy one of these problem sections into a new, empty code file do you get the same problem?

Can you please send me a file that shows the problem, as a zip file? Please submit the files via the form:

http://www.wholetomato.com/support/contact.asp

including this thread ID or URL in the description, so we can match it up.

I can then try to reproduce the problem here.
wondering Posted - Jul 31 2009 : 06:08:36 AM
It's no effect when I press ctrl+shift+8, my IDE is VS2008, the command of key map ctrl+shift+8 is View.PopBrowseContext. Where I can set "show all characters"?

Yes, of course I select all.

No, I don't turn on word wrapping.

I have another clue of this problem. When I debug the code and press F10 to step over, The line with problem is ignored.
eg, when it seems stepping on line 4, in fact line 4 has been stepped over, has been run, it steps on line 5 actually, but the cursor is on line 4.
It seems that the line 3 and line 4 has combined to one line.

	1.XMLParser xml;
	2.pRootTag = new XMLTag("Msg");
	3.CR_ASSERT(pRootTag != NULL);
	4.pRootTag->AddAttribute("Name", "QueryPUIDSetsRsp"); // with problem
	5.xml.SetRootTag(pRootTag);
	6.pSubTag = new XMLTag("Result");                     // with problem
	7.CR_ASSERT(pSubTag != NULL);
	8.pRootTag->AddEmbeddedTag(pSubTag);

Maybe you couldn't understand it, I have made a record of the debug process for explain this problem.
You can pay attention to the line the cursor steps on and the variable value in the watch view.
The record download url is: http://www.crearo.com/~dywang/other/VA-Comment-090731.rar


My system info:
VA_X.dll file version 10.5.1727.0 built 2009.06.12
Licensed to:
VA X: terry
VA.NET 7.1: terry
DevEnv.exe version 9.0.30729.1
msenv.dll version 9.0.30729.1
Font: +?+?+?+?+?+? 12(Pixels)
Comctl32.dll version 6.10.6002.18005
Windows Vista 6.0 Build 6002 S
2 processors (x86)

Platform: Win32
Stable Includes:
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\include;
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\include;
D:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\include;
D:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\include;
E:\\SDK\\WTL8.1\\Include;
E:\\SDK\\boost_1_39_0;

Other Includes:

Stable Source Directories:
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\mfc;
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\mfcm;
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\atlmfc\\src\\atl;
D:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\crt\\src;
feline Posted - Jul 29 2009 : 1:33:27 PM
If you turn on show all characters in the IDE, CTRL-SHIFT-8 on my system, can you see any possible pattern to this, anything that is different about these lines?

Did you select all of the highlighted lines and then press / ? I am assuming you did, but it is good to check these things.

Do you have work wrapping turned on in the IDE?

Can you please go to:

VA Options -> System Info -> Copy Info

and paste the details (from the clipboard) into your reply. This will give us the basic information about your setup.

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