VS Arduino
>> >> Both the go to declaration and definition functions go to the declaration
https://www.visualmicro.com/forums/YaBB.pl?num=1439316243

Message started by the_reza on Aug 11th, 2015 at 6:04pm

Title: Both the go to declaration and definition functions go to the declaration
Post by the_reza on Aug 11th, 2015 at 6: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

Title: Re: Both the go to declaration and definition functions go to the declaration
Post by Visual Micro on Aug 11th, 2015 at 7: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

Title: Re: Both the go to declaration and definition functions go to the declaration
Post by the_reza on Aug 19th, 2015 at 6:24am

Tim@Visual Micro wrote on Aug 11th, 2015 at 7: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?


Title: Re: Both the go to declaration and definition functions go to the declaration
Post by Visual Micro on Aug 19th, 2015 at 10:05am
The menu item only shows if the project is selected in the solution explorer

Title: Re: Both the go to declaration and definition functions go to the declaration
Post by the_reza on Aug 19th, 2015 at 5:21pm
by selecting, you mean clicking on?  did that..

Title: Re: Both the go to declaration and definition functions go to the declaration
Post by Visual Micro on Aug 19th, 2015 at 5:23pm
Can you please post a full screen shot of your ide and also tell me which version of Vs you are using?

Thanks

Title: Re: Both the go to declaration and definition functions go to the declaration
Post by the_reza on Aug 19th, 2015 at 6:17pm
vs 2013 community with visual micro 15.08.1000




Title: Re: Both the go to declaration and definition functions go to the declaration
Post by Visual Micro on Aug 19th, 2015 at 6: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

Title: Re: Both the go to declaration and definition functions go to the declaration
Post by the_reza on Aug 19th, 2015 at 6: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?

Title: Re: Both the go to declaration and definition functions go to the declaration
Post by Visual Micro on Aug 19th, 2015 at 6: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"

VS Arduino » Powered by YaBB 2.6.12!
YaBB Forum Software © 2000-2024. All Rights Reserved.