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
 Code Inspection - Apply Fix no-op copyright char
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mintonla
New Member

USA
6 Posts

Posted - Jan 21 2022 :  11:01:54 AM  Show Profile  Reply with Quote
Having a copyright character in a comment at the top of a file causes Apply Fix to be a no-op. For example:

/* Copyright � xxx */

Removing the character changes some of the line numbers of found issues. If I remove the character, reparse, and Apply All, then still might not apply. But if I save the file, reparse, and Apply All, then it does work.

Running 10.92440.0, VS2019.
Thanks, Larry

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Jan 24 2022 :  06:24:30 AM  Show Profile  Reply with Quote
Do you have a simple file that shows this problem on demand that you could send to me, as a zip file? If so, please send me the file via email:

[email protected]

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

So far I cannot reproduce the problem here, so I am wondering if file encoding is a factor. I was looking at a bug report recently where having a non standard ASCII character in the file caused some odd results with Code Inspection. The character compiled file in Visual Studio, but produced warnings or even errors in Clang, which we use for Code Inspection. So I am wondering if something similar is going on here.

I am using the same IDE and version of VA, and testing in a file with lots of points being picked up by Code Inspection, with the comment near the top of the file, so this should be a solid test case.

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

mintonla
New Member

USA
6 Posts

Posted - Jan 25 2022 :  09:23:08 AM  Show Profile  Reply with Quote
email sent - "repro case for Apply Fix no-op"

Edited by - mintonla on Jan 25 2022 09:24:32 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18755 Posts

Posted - Jan 25 2022 :  11:50:24 AM  Show Profile  Reply with Quote
I have the files, thank you, currently trying to make sense of this. The copyright character triggers the bug in your solution, but it does not trigger the bug outside of your solution. So there is something else at work here.

case=147740

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

Edited by - feline on Jan 25 2022 11:54:06 AM
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