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) After library update, deep search can't find includes. (Read 1446 times)
Wiken
Junior Member
**
Offline


Posts: 19
Joined: Jun 8th, 2023
After library update, deep search can't find includes.
Oct 16th, 2024 at 1:38pm
Print Post  
Hi.
I updated rp2040 library from 4.0.1 to 4.1.1 today, and after that it can't find lwIP libs.  Huh

Arduino 2.0 IDE can compile and upload the code, but not VC with VM. Wierd. 
I have reinstalled VM for VC-2017, restarted everything, rescanned all I can. 

I also have another anomaly: in the "Add Library"-menu, only one drop list is filled with selectables, "Current-platform" and "All-Built-In" are empty.
I also have problems to update libraries in VM, I have to use Arduino IDE to do that. 
Have anyone a clue to what has happend?
  

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


Posts: 2695
Joined: Feb 13th, 2019
Re: After library update, deep search can't find includes.
Reply #1 - Oct 16th, 2024 at 1:52pm
Print Post  
Thanks for the report.

Can you run Build > Clean Solution.

Then please attach the complete build output with the vMicro > Compiler > Show Build Properties, and vMicro > Compiler > Verbose both enabled?

If you have a simple code example which replicates the issue please also post this so we can investigate more quickly.
  
Back to top
IP Logged
 
Wiken
Junior Member
**
Offline


Posts: 19
Joined: Jun 8th, 2023
Re: After library update, deep search can't find includes.
Reply #2 - Oct 17th, 2024 at 6:23am
Print Post  
Hi. Smiley
Got everything in the zip file for you.
  

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


Posts: 19
Joined: Jun 8th, 2023
Re: After library update, deep search can't find includes.
Reply #3 - Oct 22nd, 2024 at 7:32am
Print Post  
I have been trying to find this issue, It seems to find multiple definitions:
First Error from latest build: "Ethernet_Generic.hpp: 163:6: error: multiple definition of 'enum EthernetLinkStatus
   163 | enum EthernetLinkStatus"
This is library code: Ethernet_Generic.hpp

This morning I tried to get a more clean installation, but directories with libraries are not removed when uninstalled using VM Explorer, so I need to remove them manually for the Compiler to NOT find them. 
Arduino 2.0 seems to have a problem, and Arduino 1.8x can't remove libraries at all.
I'm starting to get a sense that all this makes a hugh mess of libraries uninstalled and libraries installed.
The Compiler also seems to search for libraries that I have not in my code, so is that the reason for the multiple definitions?  Embarrassed
  
Back to top
 
IP Logged
 
Wiken
Junior Member
**
Offline


Posts: 19
Joined: Jun 8th, 2023
Re: After library update, deep search can't find includes.
Reply #4 - Oct 22nd, 2024 at 7:50am
Print Post  
Apparently my folder "C:\Users\...\AppData\Local\arduino15\libraries" was empty of standard libraries followed by the Adruino IDE.
This made the system angry.
This path has been an unfortunate thing after the 1.5 change, I think all libraries should be in one place only, I have 3 folders of libraries, and I think that's not good. Undecided

So now it seems to complile again.
Doing further testing.
« Last Edit: Oct 22nd, 2024 at 7:51am by Wiken »  
Back to top
 
IP Logged
 
Simon@Visual Micro
Administrator
*****
Offline


Posts: 2695
Joined: Feb 13th, 2019
Re: After library update, deep search can't find includes.
Reply #5 - Oct 22nd, 2024 at 9:01am
Print Post  
Quote:
Apparently my folder "C:\Users\...\AppData\Local\arduino15\libraries" was empty of standard libraries followed by the Adruino IDE.

This is the location that can be used by the Arduino 2.x IDE to install the basic libraries (which used to be included within the 1.x IDE automatically).  These can still be installed if needed from the Micro Explorer > Library Manager,  by searching for "Arduino_BuiltIn".

From your logs it appears as though you had (and possibly still have) your board packages being installed beneath the Sketchbook\Libraries folder, which will potentially create a lot of confusion.

Can you attach a screenshot of the vMicro > General > IDE Locations Screen with the Arduino 2x configuration selected?

Also if possible please attach the arduino-cli.yaml file from C:\Users\YourUserName\.arduinoIDE folder?
  
Back to top
IP Logged
 
Wiken
Junior Member
**
Offline


Posts: 19
Joined: Jun 8th, 2023
Re: After library update, deep search can't find includes.
Reply #6 - Oct 22nd, 2024 at 10:55am
Print Post  
Sorry that the window can't be made larger so the complete path can be seen.
  

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


Posts: 19
Joined: Jun 8th, 2023
Re: After library update, deep search can't find includes.
Reply #7 - Oct 22nd, 2024 at 10:58am
Print Post  
Here is the yaml file.
  

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


Posts: 2695
Joined: Feb 13th, 2019
Re: After library update, deep search can't find includes.
Reply #8 - Oct 22nd, 2024 at 11:27am
Print Post  
Thanks for the YAML and the screenshot, it seems the path we see repeatedly in previous logs isn't set there oddly.

Do you have any other IDE configurations set in Visual Micro (e.g. Arduino 1.6/1.8), especially the "Optional Physical Folder for Downloaded Board Packages" option?

One other option would be an Environment Variable for "ARDUINO_DIRECTORIES_DATA"?
  
Back to top
IP Logged
 
Wiken
Junior Member
**
Offline


Posts: 19
Joined: Jun 8th, 2023
Re: After library update, deep search can't find includes.
Reply #9 - Oct 22nd, 2024 at 11:47am
Print Post  
I have no ARDUINO_DIRECTORIES_DATA set in my variables.
But it's a very interesting info you mentioned that the sketches are placed wrong..
I use: "C:\Users\USER\OneDrive - COMPANY\Documents\Visual Studio 2017\Projects" as sketch directory.
Maybe we should consider moving our code to a "better" place? Smiley
  

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


Posts: 2695
Joined: Feb 13th, 2019
Re: After library update, deep search can't find includes.
Reply #10 - Oct 22nd, 2024 at 11:59am
Print Post  
Thanks for confirming.

Its not the project files which could be part of the problem, it is where the board package is being detected as installed.

You have the OneDrive\Arduino\Libraries folder as normal, however in the logs there is a packages folder within libraries with the RP2040 boards installed.  This is unusual and could be part of the issue.

The Arduino IDE won't be using that location, so it feels right to clean up so they both use the same locations.

If you close all Visual Micro and Arduino IDE's, and then delete the Packages folder from OneDrive\Arduino\Libraries\Packages folder, it should help clear things down and avoid any potential confusion.
  
Back to top
IP Logged
 
Wiken
Junior Member
**
Offline


Posts: 19
Joined: Jun 8th, 2023
Re: After library update, deep search can't find includes.
Reply #11 - Oct 22nd, 2024 at 12:25pm
Print Post  
I did as your recommendation, and all packages are installed on the same level as libraries. This was very good info.
Thanks for your time and professonialism, all compiles now. Cool Cool Cool Smiley Smiley
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint