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 "Library folder does not exist" while building ANY library (Read 128 times)
gj
Junior Member
**
Offline


Posts: 46
Joined: Feb 12th, 2016
"Library folder does not exist" while building ANY library
Jun 9th, 2026 at 7:47pm
Print Post  
Hello,

Thanks for all the good work on this extension.

Issue as of today:
Update VMicro extension to 2026.422.2201
VS v17.13.33
ESP Core: 3.3.10
Board: esp32_esp32c3

Simple sketch like this:
Code
Select All
#include <HX711.h> // Or any other library
void setup() {
	Serial.begin(115200);
	Serial.println("Test2");
}
void loop() { }
 


gives the error:
Using library HX711 version 0.7.5 by Bogdan Necula <bogde@bogde.ro> in folder "C:\Users\[user]\Documents\Arduino\libraries\HX711"
Library folder does not exist: C:\VMB\Test2\esp32_esp32c3\Debug\libraries\HX711
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\VMB\Test2\esp32_esp32c3\Debug\libraries\HX711'.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileSystemEnumerableIterator`1.CommonInit()
   at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
   at System.IO.DirectoryInfo.InternalGetDirectories(String searchPattern, SearchOption searchOption)
   .........


To get a good build, I can do one of these:
- remove #include (well, functionally not good of course, but at least it builds)
- create libraries/[library]-folders in debug-folder manually
- Set Debug --> Off
- Build in Release-mode

It seems the directory structure for the libraries is not created correctly.

Is this some wrong setting on my side?
Build log is in the attachment.
« Last Edit: Jun 9th, 2026 at 8:11pm by gj »  

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


Posts: 2928
Joined: Feb 13th, 2019
Re: "Library folder does not exist" while building ANY library
Reply #1 - Jun 10th, 2026 at 11:22am
Print Post  
Thanks for the report.

If you set Tools > Options > Visual Micro> Micro Debug section > Library Debugging to false, and then recompile this should work as expected.

Serial Debug of libraries currently has some issues which we will look at resolving in the near future.

If the library code is included directly in the project it can be used in the Serial Debugger.
« Last Edit: Jun 10th, 2026 at 11:37am by Simon@Visual Micro »  
Back to top
IP Logged
 
gj
Junior Member
**
Offline


Posts: 46
Joined: Feb 12th, 2016
Re: "Library folder does not exist" while building ANY library
Reply #2 - Jun 10th, 2026 at 1:48pm
Print Post  
Same error as when running as regular (non-administrator) user.
The attachment shows me running Studio as administrator.

  

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


Posts: 46
Joined: Feb 12th, 2016
Re: "Library folder does not exist" while building ANY library
Reply #3 - Jun 10th, 2026 at 1:53pm
Print Post  
It seems that setting Tools > Options > Visual Micro> Micro Debug section > Library Debugging to false does the trick.

As always, thanks for the quick response and great solution.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint