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 Browse source of included libraries (Read 4547 times)
paradajz
Newbies
*
Offline


Posts: 5
Joined: Feb 6th, 2014
Browse source of included libraries
Feb 7th, 2014 at 1:55pm
Print Post  
I'm using latest version of VM plugin for Atmel Studio 6.1 and latest Arduino IDE (1.0.5). Everything works fine, from including libraries to syntax highlighting to upload. One thing bothers me however, why the solution explorer doesn't show included libraries in sketch? I included two libraries (from Arduino/libraries folder) however I'm unable to browse source of them nor the solution explorer shows anything under dependencies (that would be logical place). So is there a way to browse those libraries?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Browse source of included libraries
Reply #1 - Feb 7th, 2014 at 3:15pm
Print Post  
Hi,

Thanks for the report.

We have an outstanding request with Atmel to provide views of the external sources. 

In Visual Studio the dependencies are automatically displayed and also the feature "Project>Show all sketch files" includes the lib and core sources directly in the project (short cuts) without affecting the compiler. This gives some great info.

Unfortunately Atmel Studio does not allow Virtual Folders with short cuts and does not automatically show dependences. 

You can right click on a header #include which should take you to the .h source code then click the "tab" or the .h in the editor to "open the file location" then drop the .cpp onto Atmel Studio. Very clunky but we will try to provide something better in the next release of Visual Micro.
  
Back to top
IP Logged
 
paradajz
Newbies
*
Offline


Posts: 5
Joined: Feb 6th, 2014
Re: Browse source of included libraries
Reply #2 - Feb 7th, 2014 at 3:25pm
Print Post  
Tim@Visual Micro wrote on Feb 7th, 2014 at 3:15pm:
You can right click on a header #include which should take you to the .h source code then click the "tab" or the .h in the editor to "open the file location" then drop the .cpp onto Atmel Studio. Very clunky but we will try to provide something better in the next release of Visual Micro.


Yeah, that's how I was doing it, pretty tiresome. Thanks for the info however.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12204
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Browse source of included libraries
Reply #3 - Feb 7th, 2014 at 3:29pm
Print Post  
One other thing you can do (I think) is add the libs you are using to the project as short cuts. 

If you create a dummy folder in the project called something like "_libraries", then add the short cuts to your libs to the new folder this will do what you need.

The compiler is separate to the Atmel Studio project/intellisense system so will not be affected by the change. 

You can add whatever you like to a project, the compiler will only look at the sources in the sketch folder, not sub folders.

Look forward to hearing if this is the solution. Thanks
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint