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) How to remove library from VS or vMicro ? (Read 7627 times)
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
How to remove library from VS or vMicro ?
Mar 20th, 2018 at 2:16pm
Print Post  
Hallo,
I'm new to vMicro with Visual Studio. I had used ArduinoIDE before.
I made a new ESP32 solution and discuvered that vMicro could not find the libraries in ..espressif\esp32\libraries folder. So I used "Add library" - "Build-in". this worked fine until SD Library. This library was not apearing under Build-in but instead under User libraries. 
So, I added the SD library from User but this does not work since thats for ESP8266 projects and from different library directory.
QUESTION: How can I remove the library from vMicro or from the project solution?

Many thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12144
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to remove library from VS or vMicro ?
Reply #1 - Mar 20th, 2018 at 2:39pm
Print Post  
If you install a library they are located in mydocuments/arduino/libraries. Delete a lib folder and that is all that is required. Click rescan or restart the ide.

If you have used the "create shared lib project" or "toggle hidden files" then manually remove the short cut from your project solution by selecting it and right click delete.

  
Back to top
IP Logged
 
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
Re: How to remove library from VS or vMicro ?
Reply #2 - Mar 20th, 2018 at 3:24pm
Print Post  
ok, thanks, it worked. I renamed the folder and restart IDE.
  
Back to top
 
IP Logged
 
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
Re: How to remove library from VS or vMicro ?
Reply #3 - Mar 20th, 2018 at 6:47pm
Print Post  
Hmm, I have another question:
Why I have to add the sources in ..espressif\esp32\libraries folders to each project? I thought thats enough if I do it ones in vMicro. Whats the reason or is there any other way to add it permantly for all ESP32 projects?

Thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12144
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to remove library from VS or vMicro ?
Reply #4 - Mar 20th, 2018 at 7:18pm
Print Post  
You should not add any library sources to any project.

This is a question about arduino not about visual micro.

Arduino has official library folders you need to ensure your libraries are located in the official folders.

I already told you where one folder is.
  
Back to top
IP Logged
 
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
Re: How to remove library from VS or vMicro ?
Reply #5 - Mar 20th, 2018 at 7:32pm
Print Post  
Hey, yes, I understand BUT:
1. I have GIT clone the https://github.com/espressif/arduino-esp32. There is a "libraries" folder in there...which is official ... but vMicro does not find the libraries automatically ... only if I add for each project manually via "Add Library - Build-in".
2. I have configured my project for "M5Stack-Core-ESP32".
3. There is another problem with SD library. vMicro does not show me the SD library from ESP32 in "Add Library - Build-in". There seems to be a conflict with the custom SD library for ESP8266 which I have installed in ..projects\libraries\SD\ path. Only if I remove or rename that path vMicro shows me SD(ESP32) in "Add Library - Build-in".

So, it seems to me two bugs in vMicro. 
1. it cannot resolve the libraries path from ESp32 git clone
2. it has problems when build-in and user libs ... in different directories .. have the same name. 

Again. ArduinoIDE has not the problems. All works fine. 
This is my first day with vMicro.

Thanks for help in advance

Modify 1: Ahh, and yes I have payed the pro version today...but different email account.

Modify 2:My directory structure is as following:
..\projects\
          project1
          project2
          ...
          hardware\
                 espressif\esp32\ ... (git clone of arduino-esp32)
          libraries\
              BME280\
              ESPAsyncTCP\
              ...
              SD\
              ...
              WifiManager\
              (that are all libraries installed by Arduino library manager, for esp8266 and also esp32 .. such as M5Stack)
« Last Edit: Mar 20th, 2018 at 7:44pm by drs »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12144
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to remove library from VS or vMicro ?
Reply #6 - Mar 22nd, 2018 at 10:30am
Print Post  
I will look at why it does not find the official libraries thanks.





  
Back to top
IP Logged
 
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
Re: How to remove library from VS or vMicro ?
Reply #7 - Mar 23rd, 2018 at 6:26am
Print Post  
Thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12144
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to remove library from VS or vMicro ?
Reply #8 - Mar 26th, 2018 at 12:10pm
Print Post  
This is resolved in the latest update 1803.26

Architecture/platform libraries now have priority
Custom libraries only have priority over IDE libraries
  
Back to top
IP Logged
 
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
Re: How to remove library from VS or vMicro ?
Reply #9 - Mar 30th, 2018 at 4:56pm
Print Post  
Super! Works great so far.
I cleaned project folder from Visual Studio files and reimported. All libs have been found automatically.
Great work!

Interrestingly, I get other error from Intellisense:
register uint32_t *sp asm("a1");

"asm" is not recognized but compiles fine.

Any idea?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12144
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to remove library from VS or vMicro ?
Reply #10 - Mar 30th, 2018 at 5:02pm
Print Post  
Great

Intellisense is different to compile. Compile is correct.

VS isn't fully compatible from an intellisense perspective. You can add intellisense workarounds/fixes outside of your code but I will also try the tool chain for the next release. (VM provides automatic overrides where possible)

  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint