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 platform.txt properties (Read 3186 times)
Red Baron
Member
***
Offline


Posts: 112
Location: Germany
Joined: Jul 29th, 2015
platform.txt properties
Mar 30th, 2016 at 10:32am
Print Post  
Hi,

1. some of the examples for customizing the build process ("recipe.hooks") don't work. E.g.
  recipe.hooks.prebuild.0.pattern=echo "Hello {build.source.path}"
found here: 
  http://www.visualmicro.com/page/Visual-Micro-Product-Version-History-Fixes-and-A...
leads to an error. You have to call an executable.
  recipe.hooks.prebuild.0.pattern=notepad.exe
works.

2. Question: Is there a property like {build.path} to get the path to the project folder? I want to modify a file (increment a version number) before the sketch is build. This must be done with the original file. Doing it with the copy (via {build.path})  wan't work.

Kind regards
Red Baron
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12138
Location: United Kingdom
Joined: Apr 10th, 2010
Re: platform.txt properties
Reply #1 - Mar 31st, 2016 at 5:48pm
Print Post  
Hi,

Thanks I have changed the release notes.

If you switch on "tools>options>visual micro>compiler>show build properties" then build you will see all the properties are dumped into the output. 

{build.source.path} is an official arduino property but it includes the .ino file name

Visual micro adds a {sketch_path} variable which you could use but doubt it would work when building in the Arduino Ide.

Maybe I missed one, the build props will appear before the build status

  
Back to top
IP Logged
 
Red Baron
Member
***
Offline


Posts: 112
Location: Germany
Joined: Jul 29th, 2015
Re: platform.txt properties
Reply #2 - Apr 2nd, 2016 at 8:16am
Print Post  
Good morning!

"show build propertie"s is a very useful option! 
{sketch_path} is the variable I was looking for. Works fine!

Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint