Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Go to definition not working in VS2022 (Read 1089 times)
Henk Levels
Junior Member
**
Offline


Posts: 81
Joined: Sep 28th, 2015
Go to definition not working in VS2022
Apr 13th, 2024 at 4:25pm
Print Post  
Hi,

In VS2022 I have a sketch with a library called "Radio_Board_Lib.h" The library works fine after compiling and uploading.
However When I click with my right mouse on Get_Cmd_From_Main_Board() and press Go to definition it goes to the declaration instead.
When I do the same with Send_Packets() and press Go to definition it goes to an empty line in the cpp file.

When I go to VS2017 also with a Visual micro it seems to work fine?
What is wrong?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Go to definition not working in VS2022
Reply #1 - Apr 13th, 2024 at 7:57pm
Print Post  
Microsoft changed the way it works. If you click "vMicro>Show hidden files" that will add shortcuts to the underlying code into the project. 

That does not change how build works but because the sources are in the project the GoTo will work as expected.
  
Back to top
IP Logged
 
Henk Levels
Junior Member
**
Offline


Posts: 81
Joined: Sep 28th, 2015
Re: Go to definition not working in VS2022
Reply #2 - Apr 15th, 2024 at 9:30am
Print Post  
Tim@Visual Micro wrote on Apr 13th, 2024 at 7:57pm:
Microsoft changed the way it works. If you click "vMicro>Show hidden files" that will add shortcuts to the underlying code into the project. 

That does not change how build works but because the sources are in the project the GoTo will work as expected.


I got it to work and it jumped to the definition.
Now it suddenly does not work anymore with another function.
I toggled Show hidden files, but with no luck.
Is it perhaps better to stay on VS2017.
Some tips
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2697
Joined: Feb 13th, 2019
Re: Go to definition not working in VS2022
Reply #3 - Apr 15th, 2024 at 10:30am
Print Post  
Can you try enabling the Show Hidden Files so the shortcuts are visible in the Solution Explorer.

Then close the solution and delete the .vs folder from the Solution folder, then reopen the solution (this should clear any intellisense cache).

Does this help for the other functions?
  
Back to top
IP Logged
 
Henk Levels
Junior Member
**
Offline


Posts: 81
Joined: Sep 28th, 2015
Re: Go to definition not working in VS2022
Reply #4 - Apr 15th, 2024 at 5:29pm
Print Post  
Thanks,

deleting .vs works for now. Hopefully for ever
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint