Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Corresponding *h/*.cpp file not always working

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
BugTrapper Posted - Aug 07 2024 : 1:23:08 PM




If I switch between different documents *.h und *.cpp then it happens sometimes, that the button for switching to the corresponding file is grayed out.

Newest VA-Version with VS2022, newest version

In VS2019 this was working.
4   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Aug 09 2024 : 12:51:24 PM
As I said in one of the other threads, no problems for me when running VS2022 as administrator under Windows 11 for me. So whatever is going on, its not automatically happening everywhere.
BugTrapper Posted - Aug 08 2024 : 1:10:46 PM
It's working now.

I switch to a new Win11 pc. Installed everything new. I noticed, that I have fewer rights to the folders C:\Program files and C:\Program files(x86).
So I run VS2022 in administrator mode.

On the Win10 computer I run VS2022 without admin mode. But still only use every day on Win10 the old Visual Studio 2019. On Win11 I want to upgrade all my projects to VS2022.
I just noticed, that on the Win10 computer Visual Assist runs without any big problems with VS2022.

So I unchecked the "Run as administrator" of the start icon on the desktop on the Win11 PC and relaunched VS2022 again.
Now the navigation bar is working as expected, the "Goto" button is there, also switching between .h and .cpp files is working as expected.

Argh................:-)
BugTrapper Posted - Aug 08 2024 : 11:58:44 AM
If I switch between other files and come back, there is no change in the symbal bar buttons, they are still disabled.


"VAssistX->Open Corresponding File" in VA-Menu is also grayed out.

I have exactly 2 files, if I filter the VA's find dialog for files in solution. I see baudratedialog.cpp and baudratedialog.h

The only action that switches between .h and .cpp file and vice versa is clicking with right mouse key on the document, and click on the menu entry "Header/Source file switch" of the Visual Studio built in Context menu. That works always.



feline Posted - Aug 08 2024 : 09:18:04 AM
When this happens, if you change to a different file, and then come back to this file again, is the button then enabled?

What about the menu option:

VAssistX -> Open Corresponding File (h/cpp, aspx/cs)


If you look in VA's Open File in Solution dialog, Alt-Shift-O, and filter on "BaudrateDialog" how many files are shown? If there is more than 2 files, VA tries to pair them up for Alt-O, but depending on how many files there are, and what directories they are in, this can get confused.

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