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
Hot Topic (More than 8 Replies) Error running platform build action hooks.savehex.postsavehex (Read 939 times)
Jesús
Junior Member
**
Offline


Posts: 18
Joined: Jul 1st, 2021
Error running platform build action hooks.savehex.postsavehex
Jan 9th, 2026 at 7:49pm
Print Post  
After the latest VM and ESP32 board update, the following errors appear at the end of the compilation (Attached is a file with the compilation details. ) :

Program ControlCaleHA size: 1574263 bytes (used 92% of a 1703936 byte maximum) (86,78 secs)
Minimum Memory Usage: 72212 bytes (22% of a 327680 byte maximum)
 
# Export compiled binary to 'Project>Property Pages>Output Directory'
# Destination: .esp32.bin"

# recipe.hooks.savehex.postsavehex.1.pattern
powershell -Command =default' -split ':')[0..2] -join '.'; Copy-Item -ErrorAction SilentlyContinue csv' ('D:\Documentos\Arduino\ControlCaleHA\build\' + $env:FQBN_DIR + '\partitions.csv')"
Copy-Item *: No se puede encontrar una parte de la ruta de acceso
   D:\Documentos\Arduino\ControlCaleHA\build\esp32.esp32.esp32\partitions.csv
En linea*: 1 Caracter: 279
+ ...  -join .; Copy-Item -ErrorAction SilentlyContinue D*: Documentos\Ar
   +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          *: NotSpecified: (Smiley [Copy-Item], DirectoryNotFoundException
    + FullyQualifiedErrorId *: nd
Error running platform build action hooks.savehex.postsavehex


# recipe.hooks.savehex.postsavehex.2.pattern
powershell -Command =default' -split ':')[0..2] -join '.'; Copy-Item -ErrorAction SilentlyContinue 'D:\Documentos\Arduino\ControlCaleHA\obj\ARM64\Release\_\esp32_esp32\sdkconfig' ('D:\Documentos\Arduino\ControlCaleHA\build\' + $env:FQBN_DIR + '\sdkconfig')"
Copy-Item *: No se puede encontrar una parte de la ruta de acceso
   D:\Documentos\Arduino\ControlCaleHA\build\esp32.esp32.esp32\sdkconfig
En linea*: 1 Caracter: 279
+ ...  -join .; Copy-Item -ErrorAction SilentlyContinue D*: Documentos\Ar
   +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          *: NotSpecified: (Smiley [Copy-Item], DirectoryNotFoundException
    + FullyQualifiedErrorId *: nd
Error running platform build action hooks.savehex.postsavehex


# recipe.hooks.savehex.postsavehex.3.pattern
powershell -Command =default' -split ':')[0..2] -join '.'; Copy-Item -ErrorAction SilentlyContinue  ('D:\Documentos\Arduino\ControlCaleHA\build\' + $env:FQBN_DIR + '\flash_args')"
Copy-Item *: No se puede encontrar una parte de la ruta de acceso
   D:\Documentos\Arduino\ControlCaleHA\build\esp32.esp32.esp32\flash_args
En linea*: 1 Caracter: 279
+ ...  -join .; Copy-Item -ErrorAction SilentlyContinue D*: Documentos\Ar
   +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          *: NotSpecified: (Smiley [Copy-Item], DirectoryNotFoundException
    + FullyQualifiedErrorId *: nd
Error running platform build action hooks.savehex.postsavehex


# recipe.hooks.savehex.postsavehex.4.pattern
powershell -Command =default' -split ':')[0..2] -join '.'; Copy-Item -ErrorAction SilentlyContinue ls\partitions\boot_app0.bin' ('D:\Documentos\Arduino\ControlCaleHA\build\' + $env:FQBN_DIR + '\boot_app0.bin')"
Copy-Item *: No se puede encontrar una parte de la ruta de acceso
   D:\Documentos\Arduino\ControlCaleHA\build\esp32.esp32.esp32\boot_app0.bin
En linea*: 1 Caracter: 279
+ ...  -join .; Copy-Item -ErrorAction SilentlyContinue C*: Users\Jaggil
   +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          *: NotSpecified: (Smiley [Copy-Item], DirectoryNotFoundException
    + FullyQualifiedErrorId *: nd
Error running platform build action hooks.savehex.postsavehex


# recipe.hooks.savehex.postsavehex.5.pattern
powershell -Command =default' -split ':')[0..2] -join '.'; Copy-Item -ErrorAction SilentlyContinue ns.json' ('D:\Documentos\Arduino\ControlCaleHA\build\' + $env:FQBN_DIR + '\build.options.json')"
Error running platform build action hooks.savehex.postsavehex
  

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


Posts: 2953
Joined: Feb 13th, 2019
Re: Error running platform build action hooks.savehex.postsavehex
Reply #1 - Jan 9th, 2026 at 8:25pm
Print Post  
Thanks for the report and detail.

We have a fix underway for this and the files its failing to export are all available in the build folder in the interim.

We will update this thread when it is available.
  
Back to top
IP Logged
 
Christopher Cooper
Junior Member
**
Offline


Posts: 26
Joined: Jul 13th, 2020
Re: Error running platform build action hooks.savehex.postsavehex
Reply #2 - Jan 26th, 2026 at 7:15pm
Print Post  
Hi,

I seem to be suffering the same error, pleas see log attached.

It all compiles OK and I can actually upload the firmware using OTA, so the build is working. 

I have updated my ESP software and reinstalled VM, but no difference.

It has been working OK, but this problem seems to have occurred after I started to play with an Arduino Nano ESP32, which has some peculiar quirks. 

That said, sketches for that board do compile and upload correctly, after I had this help from Simon

Please see other post at:

https://www.visualmicro.com/forums/YaBB.pl?num=1768995204

Regards,

Christopher

  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Jesús
Junior Member
**
Offline


Posts: 18
Joined: Jul 1st, 2021
Re: Error running platform build action hooks.savehex.postsavehex
Reply #3 - Jul 15th, 2026 at 10:00am
Print Post  
Hello, is this issue still open or ongoing? Is there an estimated time for a resolution?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2953
Joined: Feb 13th, 2019
Re: Error running platform build action hooks.savehex.postsavehex
Reply #4 - Jul 15th, 2026 at 10:21am
Print Post  
Apologies for not updating this thread when the build was released.

The issue is now resolved since version 26.0422.00 and updating from Extension Manager or the latest release from the board below will resolve it:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
Jesús
Junior Member
**
Offline


Posts: 18
Joined: Jul 1st, 2021
Re: Error running platform build action hooks.savehex.postsavehex
Reply #5 - Jul 15th, 2026 at 7:29pm
Print Post  
Hi Simon,

I currently have version 2026.708.2201 installed, but the problem persists.

Is there a setting I might have incorrectly configured?

I've attached the log file from the last build in case it helps.

Regards
« Last Edit: Jul 15th, 2026 at 7:37pm by Jesús »  

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


Posts: 2953
Joined: Feb 13th, 2019
Re: Error running platform build action hooks.savehex.postsavehex
Reply #6 - Jul 15th, 2026 at 7:34pm
Print Post  
Yes please send the build output as I have it working here, however there may be a nuance I have missed somewhere.

Thanks for your support in resolving this.
  
Back to top
IP Logged
 
Jesús
Junior Member
**
Offline


Posts: 18
Joined: Jul 1st, 2021
Re: Error running platform build action hooks.savehex.postsavehex
Reply #7 - Jul 15th, 2026 at 7:41pm
Print Post  
I have modified my previous answer and added the compilation file.

My browser is Chrome, and I don't usually see the option to upload a file.

In case it's relevant, my system is Windows 10 in Spanish.

Regards
« Last Edit: Jul 15th, 2026 at 7:53pm by Jesús »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2953
Joined: Feb 13th, 2019
Re: Error running platform build action hooks.savehex.postsavehex
Reply #8 - Jul 15th, 2026 at 8:54pm
Print Post  
Thanks for the log and details here.

The issue with file upload on the forum should be improved recently (its an internal forum issue unrelated to browser etc).

Can you try changing your IDE selection to "Arduino 2" and then try the build again?
(Currently we have gated the ESP32 specific fixes in this area for the Arduino 2 configuration as they would not work in Arduino IDE 1.6.x to my understanding, we may just need to remove that check for simplicity for all users looking at it again).
  
Back to top
IP Logged
 
Jesús
Junior Member
**
Offline


Posts: 18
Joined: Jul 1st, 2021
Re: Error running platform build action hooks.savehex.postsavehex
Reply #9 - Jul 16th, 2026 at 7:56am
Print Post  
Hello, the problem persists even when compiling with the Arduino 2 option.

I've attached the log file.

Regards
« Last Edit: Jul 16th, 2026 at 11:43am by Jesús »  

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


Posts: 2953
Joined: Feb 13th, 2019
Re: Error running platform build action hooks.savehex.postsavehex
Reply #10 - Jul 16th, 2026 at 11:47am
Print Post  
Thanks again for the detail around this, and we have fixed the problem in the latest version (26.0708.03) which is available from the top of the below board, when using the Arduino 2 IDE Configuration:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

Let us know if you have any further issues around this.
  
Back to top
IP Logged
 
Jesús
Junior Member
**
Offline


Posts: 18
Joined: Jul 1st, 2021
Re: Error running platform build action hooks.savehex.postsavehex
Reply #11 - Jul 16th, 2026 at 6:19pm
Print Post  
Hello, the compilation with version 2026.708.2203 and Arduino 2 ends with a similar message
The log file is attached.

Regards
« Last Edit: Jul 16th, 2026 at 6:24pm by Jesús »  

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


Posts: 2953
Joined: Feb 13th, 2019
Re: Error running platform build action hooks.savehex.postsavehex
Reply #12 - Jul 16th, 2026 at 9:00pm
Print Post  
Thanks for the update, however this log looks clean now, there are no errors showing after each of the postsavehex hooks.

If you navigate to your project folder (or right click the project in Solution Explorer and click "Open Folder in File Explorer") you will see the "build" folder which below it will have the board specific folder, and within that the files copied by these hooks as per the Espressif Board Package.

Let me know if I am missing anything here regarding errors in the log of course, and thankyou again for your support resolving this issue.
  
Back to top
IP Logged
 
Jesús
Junior Member
**
Offline


Posts: 18
Joined: Jul 1st, 2021
Re: Error running platform build action hooks.savehex.postsavehex
Reply #13 - Jul 16th, 2026 at 9:19pm
Print Post  
I'm sorry, you're right.
I had glanced at the log without looking at the message details.

Thank you very much.

On another note, could you confirm that if I migrate to VS2026, my current license wouldn't work and I would have to purchase a VM upgrade?
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2953
Joined: Feb 13th, 2019
Re: Error running platform build action hooks.savehex.postsavehex
Reply #14 - Jul 17th, 2026 at 8:08am
Print Post  
Quote:
On another note, could you confirm that if I migrate to VS2026, my current license wouldn't work and I would have to purchase a VM upgrade?


Yes your license is out of its in built support period, so to move to VS2026 a new license will need to be purchased.  The 1 Year licenses are extremely cost effective, and mean you can change version easily each year as needed.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint