n00b alert! How do I recover lost libraries?

I wrote some code that works fine for my needs. I have to install a library to get it to work.
I shut down arduino IDE and left it for a day or two.

Upon reopen, it tells me it was missing the driver file

Arduino: 1.8.13 (Linux), Board: "Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

In file included from /home/user/Documents/code/wifi/wemos4.2.server/wemos4.2.server.ino:1:0:
ESP8266WiFi.h:28:36: fatal error: include/wl_definitions.h: No such file or directory
 #include "include/wl_definitions.h"
                                    ^
compilation terminated.
exit status 1
include/wl_definitions.h: No such file or directory


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I don't recall uninstalling the library. The file it is looking for is right here

/home/user/snap/arduino/50/.arduino15/packages/esp8266/hardware/esp8266/2.7.4/libraries/ESP8266WiFi/src/include/wl_definitions.h

Attempts to set the file statically leads to other errors

I'm making some n00b error when I refresh my environment.

How do I correctly recover libraries?

You can't use the esp8266 wifi library on an atmega328 AVR based chip.
Have you selected the wrong board?

That is an error, but that's not the error I am having issues with.

I swapped the board over to esp8266 generic, and I get the same error.

...I'll update the OP.

missdrew:
You can't use the esp8266 wifi library on an atmega328 AVR based chip.
Have you selected the wrong board?

Yeah, that was it.

Thank you!

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.