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 Adding a reference to a library (Read 4300 times)
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Adding a reference to a library
Mar 31st, 2014 at 9:42pm
Print Post  
Hi,

When one does Project > Add/Import Sketch Libary > Core > some_libary, instead of inserting the #include ... where the cursor sit, the insert occurs on line 1  Shocked.

Why can't the insert occur where one sets the cursor to be, it is possible to do it that way ?

Thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding a reference to a library
Reply #1 - Mar 31st, 2014 at 9:51pm
Print Post  
Hi Giles,

It might be difficult to be sure that the cursor is in a valid location especially in Atmel Studio because it does not provide a textual code model for the editor. 

In Visual Studio we insert #imports more intelligently below comments etc. This would need extra work for atmel studio but not top of the list. I'll put it on the list this post is a good reminder

  
Back to top
IP Logged
 
Gilles Plante
Full Member
***
Offline


Posts: 156
Location: Québec, Canada
Joined: Oct 31st, 2013
Re: Adding a reference to a library
Reply #2 - Mar 31st, 2014 at 10:12pm
Print Post  
Hum,

I thought AtmelStudio and VisualStudio were closer than that *scratch* *scratch*.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Adding a reference to a library
Reply #3 - Mar 31st, 2014 at 10:20pm
Print Post  
The code editor and the project properties are a major difference. 

Vs provides access to the C++ editor engine in the paid for versions of Vs but Atmel uses it's own Gcc system. So VS just provides a shell and a way to plugin everything else.

When time allows Visual Micro will use regex expressions to determine code positioning which will be a common solution for all 'vs' versions
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint