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 Curious behaviour compiling in "portable" mode (Read 535 times)
Itsmetoo
Junior Member
**
Offline


Posts: 25
Joined: Jan 25th, 2015
Curious behaviour compiling in "portable" mode
Feb 5th, 2025 at 7:46am
Print Post  
Hello, I was able (and VERY happy) to isolate my projects in the "portable mode" following your instructions. Really this saved me so much time! Thank you 1000 times for that!

I just ran in some strange behaviour, I'm sure it's me doing something stupid, but I cannot find what. One of my project in this "portable" mode is perfectly compiling on one computer, but not on the other. It seems that some libraries are not found, but as the folders are perfect copies, it does not make sense. Any Idea? I add the success and failed compile logs. Thank you again!
« Last Edit: Feb 5th, 2025 at 3:01pm by Itsmetoo »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2708
Joined: Feb 13th, 2019
Re: Curious behaviour compiling in "portable" mode
Reply #1 - Feb 5th, 2025 at 10:46am
Print Post  
Thanks for the positive feedback, and the issue report.

The logs attached seem identical (both fail to compile).

Could you also enable vMicro > Compiler > Show Build Properties, and attach both logs again?
  
Back to top
IP Logged
 
Itsmetoo
Junior Member
**
Offline


Posts: 25
Joined: Jan 25th, 2015
Re: Curious behaviour compiling in "portable" mode
Reply #2 - Feb 5th, 2025 at 11:06am
Print Post  
sorry for the confusion, logs updated
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2708
Joined: Feb 13th, 2019
Re: Curious behaviour compiling in "portable" mode
Reply #3 - Feb 5th, 2025 at 11:48am
Print Post  
Thanks for the logs.

The failing build is using the v5.3 of the esp32-arduino-libs (from v3.1.1 of the ESP32 Board Package), whereas the successful build is using v5.1 (which is packaged with the v3.0.7 board package you are currently using).

Can you try closing Visual Studio, deleting the below folder, and then open and build the failing project again?
arduino-portable/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.3-cfea4f...

That should remove the conflicting tools, and we will investigate to find why the incorrect tool version is selected in this scenario.
« Last Edit: Feb 5th, 2025 at 11:50am by Simon@Visual Micro »  
Back to top
IP Logged
 
Itsmetoo
Junior Member
**
Offline


Posts: 25
Joined: Jan 25th, 2015
Re: Curious behaviour compiling in "portable" mode
Reply #4 - Feb 5th, 2025 at 3:00pm
Print Post  
You nailed it! thank you!
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2708
Joined: Feb 13th, 2019
Re: Curious behaviour compiling in "portable" mode
Reply #5 - Feb 6th, 2025 at 1:23pm
Print Post  
Just to update on the root cause of this, in brief it is that the arduino-portable\package_index.json file was not at the latest version, so when attempting to determine the correct tool to use for v3.0.7 it could not be found in the file, so the highest version was used (as per the Arduino Specification).

We have updated the internal file (used as a starting point for the portable setup) to resolve this.

If you suspect this is happening again in the future, you can open the Micro Explorer > Board Manager, and click "Check for Updates" which will pull the latest file from the web.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint