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
 Conflicts with ClangFormat extension in VS2013
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

mikhail.matrosov
Senior Member

Russia
29 Posts

Posted - Oct 27 2017 :  03:49:16 AM  Show Profile  Reply with Quote
1. Consider Visual Studio 2013
2. Install Visual Assist on it
3. Install ClangFormat https://marketplace.visualstudio.com/items?itemName=LLVMExtensions.ClangFormat
4. There should appear items "Clang Format Document/Selection" under Tools menu in Visual Studio. Sometimes they do not appear. Let's consider the case when they don't.
5. Disable Visual Assist and restart Visual Studio
6. See how "Clang Format Document/Selection" items appeared under Tools menu

Behavior in item 4 are different for different installations of Visual Studio. We wasn't able to consistently reproduce it, but we faced it only in VS2013.

See also https://bugs.llvm.org/show_bug.cgi?id=35100

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Oct 27 2017 :  10:32:20 AM  Show Profile  Reply with Quote
What happens if you do the same but skip step 5? Since the effect is not consistent, is it possible, that sometimes restart would help even without disabling Visual Assist?

You commented:
quote:
Seems like disabling some other extensions like Visual Assist helps in some cases.

Does this mean that disabling Visual Assist does not always help?

Would it be possible to try disabling VA for a while and see if it helps consistently?

Which update you are on with Visual Studio?
Go to Top of Page

mikhail.matrosov
Senior Member

Russia
29 Posts

Posted - Nov 07 2017 :  04:54:03 AM  Show Profile  Reply with Quote
Sorry for the late reply, I was sure the forum will automatically subscribe me to the thread I created. Turned out it did not.

quote:
Originally posted by accord

What happens if you do the same but skip step 5? Since the effect is not consistent, is it possible, that sometimes restart would help even without disabling Visual Assist?


Yes, sometimes restart does help. Without disabling VA. Disabling VA does not always help. Most probably the problem is mostly on the side of ClangFormat extension, but I'm sure you guys have much more experience with Visual Studio, so maybe you can provide LLVM folks some additional information on the issue? I placed link to the bug in LLVM in the original post.

quote:
Does this mean that disabling Visual Assist does not always help?

Yes.

quote:
Would it be possible to try disabling VA for a while and see if it helps consistently?

It is quite difficult. For now it seems like either disabling VA helps immediately, or does not help at all.

quote:
Which update you are on with Visual Studio?


Visual Studio 2013 Update 4. We cannot switch to Update 5 right now, because changing compiler versions is a big deal for us.

Edited by - mikhail.matrosov on Nov 07 2017 04:55:00 AM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Nov 07 2017 :  10:56:18 PM  Show Profile  Reply with Quote
from ClangFormat bug #35100:
quote:
I tried to manually remove extension folder from "%LocalAppData%\Microsoft\VisualStudio\12.0\Extensions\", but this did not help either.

It might help to delete the extension cache files:

  • Close Visual Studio and then delete all files including sub directories:
    C:\Users\<username>\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache\*

  • and all .cache files in the following directory and its subdirectories:
    C:\Users\<username>\AppData\Local\Microsoft\VisualStudio\12.0\Extensions\*.cache

If you do this, Visual Studio will rebuild stuff at next start that might help.

You should be able to subscribe to this forum using the link at the top-right corner of this page. As you noticed it doesn't happen automatically.

Edited by - accord on Nov 07 2017 10:57:17 PM
Go to Top of Page

mikhail.matrosov
Senior Member

Russia
29 Posts

Posted - Nov 08 2017 :  05:33:44 AM  Show Profile  Reply with Quote
Thank you, I will try this next time we face the problem!
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