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 Error running platform build action hooks.prebuild (Read 1208 times)
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
Error running platform build action hooks.prebuild
Jan 7th, 2023 at 3:16pm
Print Post  
Hi,

I get this error:



Compiling 'Test' for 'M5Stack-ATOM                             (esp32_m5stack-atom)'
   Der angegebene Pfadname ist ungültig
Error running platform build action hooks.prebuild


Program size: 258637 bytes (used 20% of a 1310720 byte maximum) (3,73 secs)
Minimum Memory Usage: 22096 bytes (7% of a 327680 byte maximum)
 

Uploading 'Test' to 'M5Stack-ATOM(esp32_m5stack-atom)' using 'COM3'
...
...
...



Attached (Output.txt) is the complete output with "Show Build Properties" and "Verbose"

I guess that this in the platform.txt in the plugin directory
Code
Select All
# Ensure Partitions.csv is removed ensuring it is re-added each build
recipe.hooks.prebuild.0.pattern.windows=cmd /c if exist "{build.path}\partitions.csv" del /f "{build.path}\partitions.csv" 


causes the problem but I have no idea why it does not work.
I did a test and removed the "recipe.hooks.prebuild.0.pattern.windows" line and the error did not occur.
  

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


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Error running platform build action hooks.prebuild
Reply #1 - Jan 7th, 2023 at 8:16pm
Print Post  
Thanks for the report. The latest release should resolve and prevent the warning.

The LATEST is currently here

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
« Last Edit: Jan 7th, 2023 at 8:17pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
HCS
Junior Member
**
Offline


Posts: 32
Joined: Nov 14th, 2015
Re: Error running platform build action hooks.prebuild
Reply #2 - Jan 8th, 2023 at 7:31am
Print Post  
Thanks for the quick fix and reply.

With LATEST it works.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint