Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Conflicts with ClangFormat extension in VS2013

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
mikhail.matrosov Posted - Oct 27 2017 : 03:49:16 AM
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
4   L A T E S T    R E P L I E S    (Newest First)
mikhail.matrosov Posted - Nov 08 2017 : 05:33:44 AM
Thank you, I will try this next time we face the problem!
accord Posted - Nov 07 2017 : 10:56:18 PM
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.
mikhail.matrosov Posted - Nov 07 2017 : 04:54:03 AM
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.
accord Posted - Oct 27 2017 : 10:32:20 AM
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?

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