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 [2]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Start commands fail, build events fail + How to reference project sources from libraries (Read 16634 times)
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: HELP! Latest VisualMicro Has Badly Broken My Solution
Reply #20 - Nov 3rd, 2016 at 4:53pm
Print Post  
Code
Select All
compile a library (from Sketchbook/libraries) that #includes a header file from the project directory 



Sorry it's not allowed (by default or supported) for arduino libraries to reference source from a project and never has been. I know it's not ideal but allowing that would cause chaos for most.

ps:
You can use the local board.txt feature to override build commands if that's easier than editing core platform.txt





  
Back to top
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: HELP! Latest VisualMicro Has Badly Broken My Solution
Reply #21 - Nov 3rd, 2016 at 4:59pm
Print Post  
Tim@Visual Micro wrote on Nov 3rd, 2016 at 4:53pm:

Sorry it's not allowed (by default or supported) for arduino libraries to reference source from a project and never has been. I know it's not ideal but allowing that would cause chaos for most.

ps:
You can use the local board.txt feature to override build commands if that's easier than editing core platform.txt


Yet it's always worked until now, because the build directory was included with -I on the compiler command line.

It appears there is a platform.user.txt file somewhere, which would seem the best place for such modifications, but I can't find anything that says WHERE it should be located.  Do you know?

Regards,
Ray L.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: HELP! Start commands fail + How to reference project sources from libraries
Reply #22 - Nov 3rd, 2016 at 5:11pm
Print Post  
Yes it's in the verbose build output you sent

Code
Select All
ardware\sam 


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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: HELP! Start commands fail + How to reference project sources from libraries
Reply #23 - Dec 1st, 2016 at 1:18am
Print Post  
Hi Ray,

I owe you a big sorry  Angry I found the recent gdb debug work was automatically switching off the "Build" checkbox in the "Build>Configuration Manager" dialog.

We don't use the VS build process for arduino but it does no harm because visual micro oervriddes the c++ build attempt. Switching off the VS build has the side effect of preventing the VS pre and post build events from running.

The latest release (1612.01) now officially supports the VS build events (again), sorry for all the confusion.

If you open a project and then open "Build>Configuration Manager". Enable the "Build" checkbox and the events should then fire again.

I know it's easier to use VS events than arduino build actions (hooks) so thought this update might help at some stage.
« Last Edit: Dec 1st, 2016 at 1:20am by Tim@Visual Micro »  
Back to top
IP Logged
 
RayLivingston
Full Member
***
Offline


Posts: 158
Location: California
Joined: Nov 24th, 2012
Re: Start commands fail, build events fail + How to reference project sources from libraries
Reply #24 - Dec 1st, 2016 at 1:40am
Print Post  
Tim,

I must have figured that out somewhere along the line, as the Build checkbox is already checked in my projects...

Regards,
Ray L.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Start commands fail, build events fail + How to reference project sources from libraries
Reply #25 - Dec 1st, 2016 at 1:47am
Print Post  
Ok thanks for the update
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint