Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic MCP and libraries (Read 276 times)
The_Specialist
Senior Member
****
Offline


Posts: 251
Joined: Jul 1st, 2020
MCP and libraries
Oct 19th, 2026 at 4:01pm
Print Post  
I will do it in steps.

1st build using a esp32-arduino core lib

Result: No building errors
« Last Edit: Nov 3rd, 2026 at 3:10pm by Tim@Visual Micro »  

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


Posts: 251
Joined: Jul 1st, 2020
Re: VS2022 crashed on using Copilot github
Reply #1 - Oct 19th, 2026 at 5:25pm
Print Post  
Seems that the network library is missing under
vm toolbar; Add library; current platform

https://github.com/espressif/arduino-esp32/tree/master/libraries

Also the Build in drop down list is empty.

Using an external library in the shetch.ino was no problem. I used copilot, no issue so far.
« Last Edit: Oct 20th, 2026 at 12:57pm by The_Specialist »  
Back to top
 
IP Logged
 
The_Specialist
Senior Member
****
Offline


Posts: 251
Joined: Jul 1st, 2020
Missing library files
Reply #2 - Oct 20th, 2026 at 7:56am
Print Post  
Github copilot still working properly. It also tells me that

WiFiGeneric.h and NetworkEvents.h can not be found.

If we look at WiFiGeneric.h it's location is libraries/WiFi/src
We see that WiFi.h is found and WiFiGeneric.h not, still they are under the same folder. I know the library very wel and I know that is written in C and called in WiFi.h. PS: option deepsearch for labrary was on.

https://github.com/espressif/arduino-esp32/tree/master/libraries/WiFi/src

WiFiGeneric.h is and has been allways been there. For NetworkEvents.h I am not sure, but doesn't matter anymore, because I know now there is an other issue then selecting the arduino IDE 1.8 version in stead of 2.0.

And that's why my code thinks it is inherted to
void onEvent(arduino_usb_cdc_event_t event, esp_event_handler_t callback); instead of using the class of the WiFiGeneric.h
void WiFiGenericClass::_eventCallback(arduino_event_t *event) {

When I make a static void declaration of the event the program is build without errors

What I do know is that wifi.h has to be reinserted with the vmicro toolbar as a non shared project. After that it worked fine.
« Last Edit: Oct 20th, 2026 at 4:59pm by The_Specialist »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12346
Location: United Kingdom
Joined: Apr 10th, 2010
Re: MCP and libraries
Reply #3 - Nov 3rd, 2026 at 3:49pm
Print Post  
After re-adding WiFi without a shared project, what still fails? Does the project now build successfully? Is the missing-header message coming from Copilot, IntelliSense, or the compiler output? Please paste the exact remaining message.

The Built-in library list can validly be empty and is not relevant to this issue. The Network library should appear as Networking in the Current Platform library list.

Simply adding the appropriate #include for a library header directly to your code has the same effect as selecting that library from the menus.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint