Author |
Topic |
|
BugTrapper
Junior Member
Germany
15 Posts |
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. |
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
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. |
zen is the art of being at one with the two'ness |
|
|
BugTrapper
Junior Member
Germany
15 Posts |
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.
|
|
|
BugTrapper
Junior Member
Germany
15 Posts |
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................:-) |
|
|
feline
Whole Tomato Software
United Kingdom
19020 Posts |
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. |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|