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
 Having problems with html snippets
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

JefferyS
Senior Member

USA
32 Posts

Posted - Jul 27 2011 :  9:02:48 PM  Show Profile  Reply with Quote
So far it's just happening on .htm, .html, and .ascx files.
I left out .aspx files because it seams to work okay.

When typing "<i" the image snippet shows in the list box and I select it but it deletes the beginning "<"

The snippet is set to "<img src="$end$">

Example:
When selecting the image snippet from the list box it puts in:

img src="$end$">

It seams to happen with any of the html snippets I try to add.

Thanks,

JefferyS


feline
Whole Tomato Software

United Kingdom
18952 Posts

Posted - Jul 28 2011 :  4:47:27 PM  Show Profile  Reply with Quote
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.

So far I cannot reproduce this problem with VA 1854 in VS2005, VS2008 or VS2010.

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

JefferyS
Senior Member

USA
32 Posts

Posted - Jul 28 2011 :  6:21:37 PM  Show Profile  Reply with Quote
Here is the Copy Info:

VA_X.dll file version 10.6.1854.0 built 2011.07.18
Licensed to:
VA X: [email protected] (1-user license) Support ends 2012.07.18
DevEnv.exe version 10.0.40219.1 Ultimate
msenv.dll version 10.0.40219.1
Comctl32.dll version 6.10.7601.17514
Windows 7 6.1 Build 7601 Service Pack 1
4 processors (x86-64;
WOW64)

Platform: Project defined
Stable Includes:
C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\include;
C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\include;
C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\include;

Other Includes:

Stable Source Directories:
C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\mfc;
C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\mfcm;
C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\atl;
C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\crt\\src;


Thanks,

JefferyS
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18952 Posts

Posted - Jul 28 2011 :  9:29:47 PM  Show Profile  Reply with Quote
I still cannot reproduce this problem, checking under the same OS and version of VA.

Are you seeing this problem in all files?

Can you please export your VA and IDE settings and send them to me:

VA Options -> Performance -> Export Settings
IDE tools menu -> Import and Export Settings -> Export selected environment settings

Can you also send me your "html.tpl" file from: "%APPDATA%\\VisualAssist\\Autotext\\" and a sample .html file that shows the problem please.

Hopefully this will let me reproduce the problem here, and I can then try to work out what the trigger might be.

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

feline
Whole Tomato Software

United Kingdom
18952 Posts

Posted - Jul 29 2011 :  12:12:50 PM  Show Profile  Reply with Quote
I have the files, thank you for these. I can reproduce the problem simply by using your sample .html file, without importing any of your settings or your VA Snippets.

I have the IDE setting:

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

turned on, and when I load the document I am warned that your .html file has mixed line endings. If I leave the line endings alone then I see this problem. If I tell VS2010 to fix the line endings, and make them all Windows format then the problem goes away, and VA snippets works correctly.

Can you try the same test on your system please, and see if this fixes the problem for you?

Clearly VA should do a better job of handling mixed line endings than this:

case=59039

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

JefferyS
Senior Member

USA
32 Posts

Posted - Jul 29 2011 :  8:54:55 PM  Show Profile  Reply with Quote
Wow, thanks a lot for figuring that out. It was driving me crazy.

I turned on the line ending check and closed all documents. Opened them and found several files with that problem. Must be coming from outside documents that I'm cutting out of and pasting into VS.

I looked but couldn't find a menu item to check this without closing the document and re-opening it. If you know where it is please let me know.

Thanks again for helping me with this problem.

JefferyS
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18952 Posts

Posted - Jul 29 2011 :  10:40:53 PM  Show Profile  Reply with Quote
Unfortunately I don't know of any better method to check the line endings. Leaving this IDE setting turned on should help to catch the problem early though, since you will be warned after an IDE restart about this when the files are reloaded.

This utility might help occasionally:

http://www.stevemiller.net/puretext/

Personally I find it very helpful, since I often just want to paste "plain text", without any formatting. But I have no idea if it will also correct line endings, but it might be worth a try.

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