Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
Both the go to declaration and definition functions go to the declaration (Read 8385 times)
the_reza
Newbies
*
Offline



Posts: 5
Both the go to declaration and definition functions go to the declaration
Aug 11th, 2015 at 7:04pm
 
I want to be able to find the source associated with a function (i.e. Serial.println(String)) but the IDE will only show me the declaration in the .h file, not the source.

I'm working on the ESP wifi module and being able to look at the implementation of numerous functions in the sdk would be of great value.

Thanks,
Reza
Back to top
« Last Edit: Aug 11th, 2015 at 7:04pm by the_reza »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10381
United Kingdom
Re: Both the go to declaration and definition functions go to the declaration
Reply #1 - Aug 11th, 2015 at 8:01pm
 
Hi,

This seems to be a combination of how visual studio works and the design of the esp8266 system.

If you select the project in the solution explorer then click menu "Project>Show sketch core and library sources" this will add shortcuts to most of the esp8266 sdk into the project and then F12 will work the way you want.

You can click the menu item again to remove the sources or remove them manually. They are for reference purposes only and have no effect on the compile unless you make code changes to them.

I notice that when the esp8266 core is included in the project there are a few red underlines for missing definitions. It might be possible for us to solve that in future versions but you can either live with it or remove the individual sources from the project that you might not be needing to look at.

Hope this helps
Back to top
« Last Edit: Aug 11th, 2015 at 8:03pm by Visual Micro »  
WWW  
IP Logged
 
the_reza
Newbies
*
Offline



Posts: 5
Re: Both the go to declaration and definition functions go to the declaration
Reply #2 - Aug 19th, 2015 at 7:24am
 
Visual Micro wrote on Aug 11th, 2015 at 8:01pm:
Hi,

This seems to be a combination of how visual studio works and the design of the esp8266 system.

If you select the project in the solution explorer then click menu "Project>Show sketch core and library sources" this will add shortcuts to most of the esp8266 sdk into the project and then F12 will work the way you want.


Hope this helps


When i click on project, I don't see the show sketch core and library sources.  Am I looking in the wrong place?

...
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10381
United Kingdom
Re: Both the go to declaration and definition functions go to the declaration
Reply #3 - Aug 19th, 2015 at 11:05am
 
The menu item only shows if the project is selected in the solution explorer
Back to top
 
WWW  
IP Logged
 
the_reza
Newbies
*
Offline



Posts: 5
Re: Both the go to declaration and definition functions go to the declaration
Reply #4 - Aug 19th, 2015 at 6:21pm
 
by selecting, you mean clicking on?  did that..
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10381
United Kingdom
Re: Both the go to declaration and definition functions go to the declaration
Reply #5 - Aug 19th, 2015 at 6:23pm
 
Can you please post a full screen shot of your ide and also tell me which version of Vs you are using?

Thanks
Back to top
 
WWW  
IP Logged
 
the_reza
Newbies
*
Offline



Posts: 5
Re: Both the go to declaration and definition functions go to the declaration
Reply #6 - Aug 19th, 2015 at 7:17pm
 
vs 2013 community with visual micro 15.08.1000

...

Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10381
United Kingdom
Re: Both the go to declaration and definition functions go to the declaration
Reply #7 - Aug 19th, 2015 at 7:22pm
 
Okay the screen shot shows that Visual Micro is not installed or active.

Notice the boards list on the tool bar is disabled and all the Visual Micro project propeprties are missing.

Please install the latest version of Visual Micro. There have been some installer issues due to discontinuation of support for vs2008 and I suspect your last update didn't go on properly.

Once Visual Micro is running it will manage the project include paths but it will also draw the User Interface

Thanks
Back to top
« Last Edit: Aug 19th, 2015 at 7:22pm by Visual Micro »  
WWW  
IP Logged
 
the_reza
Newbies
*
Offline



Posts: 5
Re: Both the go to declaration and definition functions go to the declaration
Reply #8 - Aug 19th, 2015 at 7:31pm
 
strange, it looks like it 'uninstalled' when i upgraded to windows 10.  just tried reinstalling and it didn't take.  anyone had problems with windows 10?
Back to top
 
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



Posts: 10381
United Kingdom
Re: Both the go to declaration and definition functions go to the declaration
Reply #9 - Aug 19th, 2015 at 7:34pm
 
No, one person had some strange setup/path issues but LOTS of people since have confirmed it works ok.

I suggest opening control panel add or remove programs.

Uninstall any visual micro entries

Install visual micro

If it doesn't appear then follow the first point in the FAQ section "for 2013 and below"
Back to top
« Last Edit: Aug 19th, 2015 at 7:35pm by Visual Micro »  
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print