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 Problems with libraries in Micro Explorer (Read 322 times)
Acuario
Full Member
***
Offline


Posts: 248
Location: Spain
Joined: Aug 28th, 2015
Problems with libraries in Micro Explorer
Feb 12th, 2025 at 11:46am
Print Post  
Hi, several things I have come across today when trying to install a new library, in particular the EspAsyncWebServer from here: https://github.com/ESP32Async/ESPAsyncWebServer

1. It appears in the Other category in the library installer. Clicking on it to install gives an error that the source path is invalid. Exploring the pat I discover that the path does exist BUT on my (Windows) machine it is ..\Local\arduino15\... and in the error message it is ..\Local\Arduino15\... is it case sensitive?

2. I was searching initially in the list of Maintainers. If you click on the + and the maintainer only has 1 library it briefly appears then disappears. When there are 2 or more libraries they are listed (I guess all are listed and maybe not just the second, third etc?).

3. As the library installer did not work I installed the library using the Add Library/Install from ZIP. Now I have 2 libraries, ESPAsyncWebserver-main (the new one) and ESPAsyncWebserver-master (the old one). In library.properties they are both the same. So when I add a user installed library how do I know which is being used as from the dialog there is no indication?

To remove possible confusion between the 2 libraries I had previously manually moved the old library out of my libraries directory and installed the new library using add from a zip. When I checked for the library after doing a refresh it was not listed in the libraries manager or available to add from Add Library. After installing with the old library still in place it is now possible to add to the project - it also seems the newer library is the one that has been added to the project (luck or because main is alphabetically before master?)
  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2629
Joined: Feb 13th, 2019
Re: Problems with libraries in Micro Explorer
Reply #1 - Feb 12th, 2025 at 1:03pm
Print Post  
Thanks for the report, and detail around this.

1) Can you try reinstalling the library from the Micro Explorer (after moving the manually  installed copy out of the way) and capture the error message shown for us to review? (It installed correctly when we tried it here)

The path shouldn't be case sensitive as Windows is not unless specified via WSL etc...

2) We will look into this and update this thread when it is resolved.

3) One way to tell the one in use is to right click on the header file in your sketch and click Go To Document (F12).  This should yield the same result as when the sketch is compiled, and if you enable vMicro > Compiler > Verbose, you will see the full path to the library used in the output.

If both -main and -master suffixes are found in the folder names, then the -main should win as specified in the Folder Name Priority element of the Arduino specification.
  
Back to top
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 248
Location: Spain
Joined: Aug 28th, 2015
Re: Problems with libraries in Micro Explorer
Reply #2 - Feb 12th, 2025 at 2:53pm
Print Post  
ok, here is what I get.
The _e2u directory is empty

« Last Edit: Feb 12th, 2025 at 2:54pm by Acuario »  

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


Posts: 2629
Joined: Feb 13th, 2019
Re: Problems with libraries in Micro Explorer
Reply #3 - Feb 13th, 2025 at 10:53am
Print Post  
Just so we have all the environmental information, can you perform a build (on any Arduino project) in Visual Micro, with the below options set, and attach the complete output as a text file?
  • vMicro > Compiler > Verbose
  • vMicro > Compiler > Show Build Properties
  
Back to top
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 248
Location: Spain
Joined: Aug 28th, 2015
Re: Problems with libraries in Micro Explorer
Reply #4 - Feb 13th, 2025 at 5:27pm
Print Post  
Hi, here is the build file
  

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


Posts: 2629
Joined: Feb 13th, 2019
Re: Problems with libraries in Micro Explorer
Reply #5 - Feb 21st, 2025 at 6:08pm
Print Post  
The second UI issue has been resolved in the latest release (25.0120.4) which is available from the top of the below board:
https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES

We are still failing to replicate the library installation issue, however as it was previously manually installed this could be at least part of the problem.  I suspect the two versions involved may have been from different repositories online as the -master and -main (trunks in GitHub) don't appear to have changed on the current library (shown in your screenshots).

If you move both copies of the library from your Sketchbook\libraries folder, and then run "Check For Updates" on the Library Manager tab, then try installing the library again from Library Manager. The first popup checking you want to install the library should show a longer URL to the one posted previously.
  
Back to top
IP Logged
 
Acuario
Full Member
***
Offline


Posts: 248
Location: Spain
Joined: Aug 28th, 2015
Re: Problems with libraries in Micro Explorer
Reply #6 - Feb 27th, 2025 at 5:36am
Print Post  
Hi,
ok I removed both copies and ran Check For Updates.

The library now does not appear in the list of libraries (in the All node). Neither does the version by Me-No-Dev.

It does appear under ESP32Async in the list of maintainers. The Me-No-Dev version does not though.

Clicking on it and the confirmation dialog appears, clicking ok and nothing appears to happen although the Toolchain reload complete appears in Micro Build.
Checking my libraries folder and it has installed in a directory Esp_Async_Webserver.

As this is a different directory to the manual install from a zip I removed it and did a manual install using the zip link to the github file. This also worked but installs in a directory ESPAsyncWebServer-main so the 2 methods both work but are inconsistent.


  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2629
Joined: Feb 13th, 2019
Re: Problems with libraries in Micro Explorer
Reply #7 - Feb 27th, 2025 at 9:52am
Print Post  
Thanks for the update and detail.

Quote:
As this is a different directory to the manual install from a zip I removed it and did a manual install using the zip link to the github file. This also worked but installs in a directory ESPAsyncWebServer-main so the 2 methods both work but are inconsistent.


When you are downloading the version manually from GitHub you are downloading the currently selected branch/trunk version, which is where the "-main" suffix comes in from.  The versions listed in Library Manager are from the Releases Page of the repository, so are not suffixed with -main or -master.   

Quote:
It does appear under ESP32Async in the list of maintainers. The Me-No-Dev version does not though.

The Repo: https://github.com/ESP32Async/ESPAsyncWebServer
Is a fork of the original Me-No-Dev code (https://github.com/me-no-dev/ESPAsyncWebServer), which is Read-Only now, and sends users back to the URL given and used in the Library Manager.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint