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 recipe.hooks.postbuild does not launch (Read 1096 times)
Tomin
Newbies
*
Offline


Posts: 5
Joined: Aug 7th, 2023
recipe.hooks.postbuild does not launch
Aug 8th, 2023 at 6:58am
Print Post  
Hi.

I have
Code
Select All
recipe.hooks.postbuild.1.use_shell_execute=false
recipe.hooks.postbuild.1.working_directory={build.project_path}\..
recipe.hooks.postbuild.1.create_no_window=false
recipe.hooks.postbuild.1.pattern=mergeAppAndBootload.bat
 


but my mergeAppAndBootload.bat never starts.
It worked until I upgrade Visual Micro to the last version. (I had some very old version prev.)

Now it prints on Output window:
Code
Select All
recipe.hooks.postbuild.1.pattern
mergeAppAndBootload.bat
	Process: mergeAppAndBootload.bat
"System could not find approp.file" (not exactly, translated from my Czech lang.)
Error running platform build action hooks.postbuild
 




I tried (with prebuild hook) to show what really {build.project_path}\.. contains, so I set
Code
Select All
recipe.hooks.prebuild.1.pattern=cmd.exe /c ECHO {build.project_path}\.. >>c:\temp\work.txt 



and it seems fine.
"C:\JEDNOC~1\Projekt\Triton\fw\_develop\.."
It is strange that it is in short file name form, but it could work anyway Huh

Many thanks for every tip in advance.

Tomas
« Last Edit: Aug 8th, 2023 at 10:18am by Tomin »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2441
Joined: Feb 13th, 2019
Re: recipe.hooks.postbuild does not launch
Reply #1 - Aug 8th, 2023 at 10:29am
Print Post  
Thanks for the report, we will investigate why this isn't working as expected.

In the meantime you can work around this with:
Code
Select All
recipe.hooks.postbuild.1.pattern=cmd.exe /c mergeAppAndBootload.bat 



« Last Edit: Aug 8th, 2023 at 10:30am by Simon@Visual Micro »  
Back to top
IP Logged
 
Tomin
Newbies
*
Offline


Posts: 5
Joined: Aug 7th, 2023
Re: recipe.hooks.postbuild does not launch
Reply #2 - Aug 8th, 2023 at 10:46am
Print Post  
cmd.exe /c mergeAppAndBootload.bat 
works lika a charm.  Wink

Thank you.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint