Error 1 after compile. Even with exact copy of original working one

I am baffled. This morning I started to work on a project I was working on all week. I made no changes while I slept. I am now getting an “Error 1” after compiling. Nothing I do seems to fix it.

I decided to test the PlatformIO installation itself by compiling a previous version of my code and project. It works fine. After hours and hours I decided to do one more test. I made a complete copy of my project folder (the working one) and compiled the exact copy. “Error 1”. I then thought, perhaps its the folder name 'Marquee" vs “Marquee-New”. I then swapped the folder names. The original one (with the new name) compiles just fine. The copy of that one, with the original folder name does not.

??!!!?!?!?!

How does PlatformIO even know I switched the exact same folders??

I have no where to go. It’s like PlatformIO knows where the project is on the disk drive an will only compile the original one, even if I change the folder name, but won’t compile an exact copy. Has any seen anything like this?

Could you share your platformio.ini? Do projects use shared build or cache directories? have you tried to remove .pio (in the root of the porject) folder from both projects?

Below is my platformio.ini file.

I did erase the .pio folder on the exact copy, but I am afraid to do it on the original since there appears to be something magical about that precise location on the drive. As I am not familiar with “shared build” or “cache directories”, I believe the answer is “no.”

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:adafruit_matrix_portal_m4]
platform = atmelsam
board = adafruit_matrix_portal_m4
framework = arduino
upload_protocol = sam-ba
upload_port = COM7
monitor_port = COM7
monitor_speed = 115200
lib_deps = 
	adafruit/Adafruit Protomatter@^1.2.1
	adafruit/Adafruit ImageReader Library@^2.7.0
	adafruit/Adafruit TinyUSB Library@^1.10.0
	knolleary/PubSubClient@^2.8
	bblanchon/ArduinoJson@^6.19.2
	khoih-prog/WiFiNINA_Generic@^1.8.14-3
	adafruit/Adafruit NeoMatrix@^1.2.0
	adafruit/Adafruit NeoPixel@^1.10.4
	khoih-prog/SAMD_TimerInterrupt@^1.9.0

What exact error is shown before that? Some sort of linking error?

Here is the output from the copied folder, I had not seen the warning at the top until now. Still a bit confused why only on the copy…

Processing adafruit_matrix_portal_m4 (platform: atmelsam; board: adafruit_matrix_portal_m4; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------Library Manager: Installing Adafruit SSD1331 OLED Driver Library for Arduino
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/adafruit_matrix_portal_m4.html
PLATFORM: Atmel SAM (8.0.0) > Adafruit Matrix Portal M4
HARDWARE: SAMD51J19A 120MHz, 192KB RAM, 496KB Flash    
DEBUG: Current (atmel-ice) External (atmel-ice, jlink) 
PACKAGES:
 - framework-arduino-samd-adafruit @ 1.7.5
 - framework-cmsis @ 2.50400.181126 (5.4.0)
 - framework-cmsis-atmel @ 1.2.2
 - toolchain-gccarmnoneeabi @ 1.90301.200702 (9.3.1)   
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 54 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Adafruit Protomatter @ 1.2.1
|   |-- Adafruit GFX Library @ 1.10.13
|   |   |-- Adafruit BusIO @ 1.11.2
|   |   |   |-- Wire @ 1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- SPI @ 1.0
|   |   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Wire @ 1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|-- Adafruit ImageReader Library @ 2.7.0
|   |-- Adafruit SPIFlash @ 3.9.0
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- SdFat - Adafruit Fork @ 1.5.1
|   |   |   |-- SPI @ 1.0
|   |   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- SPI @ 1.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- SdFat - Adafruit Fork @ 1.5.1
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Adafruit GFX Library @ 1.10.13
|   |   |-- Adafruit BusIO @ 1.11.2
|   |   |   |-- Wire @ 1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- SPI @ 1.0
|   |   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Wire @ 1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Adafruit EPD @ 4.4.3
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit GFX Library @ 1.10.13
|   |   |   |-- Adafruit BusIO @ 1.11.2
|   |   |   |   |-- Wire @ 1.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |-- SPI @ 1.0
|   |   |   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Wire @ 1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- SPI @ 1.0
|   |   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit BusIO @ 1.11.2
|   |   |   |-- Wire @ 1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- SPI @ 1.0
|   |   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Adafruit BusIO @ 1.11.2
|   |   |-- Wire @ 1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|-- Adafruit TinyUSB Library @ 1.10.0
|-- PubSubClient @ 2.8.0
|-- ArduinoJson @ 6.19.2
|-- WiFiNINA_Generic @ 1.8.14-3
|   |-- SPI @ 1.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|-- Adafruit NeoMatrix @ 1.2.0
|   |-- Adafruit GFX Library @ 1.10.13
|   |   |-- Adafruit BusIO @ 1.11.2
|   |   |   |-- Wire @ 1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- SPI @ 1.0
|   |   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Wire @ 1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Adafruit NeoPixel @ 1.10.4
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|-- Adafruit NeoPixel @ 1.10.4
|   |-- Adafruit TinyUSB Library @ 1.10.0
|-- SAMD_TimerInterrupt @ 1.9.0
|-- fonts
|-- Seeed Arduino RTC @ 2.0.0
|-- Adafruit GFX Library @ 1.10.13
|   |-- Adafruit BusIO @ 1.11.2
|   |   |-- Wire @ 1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Wire @ 1.0
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- SPI @ 1.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|-- Adafruit SleepyDog Library @ 1.6.0
|-- base64
|-- SPI @ 1.0
|   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Adafruit TinyUSB Library @ 1.10.0
Building in release mode
Compiling .pio\build\adafruit_matrix_portal_m4\src\Marquee2.cpp.o
Compiling .pio\build\adafruit_matrix_portal_m4\src\Text.cpp.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\arduino\Adafruit_TinyUSB_API.cpp.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\arduino\Adafruit_USBD_CDC.cpp.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\arduino\Adafruit_USBD_Device.cpp.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\arduino\hid\Adafruit_USBD_HID.cpp.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\arduino\midi\Adafruit_USBD_MIDI.cpp.o
In file included from .pio\libdeps\adafruit_matrix_portal_m4\SAMD_TimerInterrupt\src/SAMDTimerInterrupt.h:54,
                 from src\Marquee2.cpp:14:
.pio\libdeps\adafruit_matrix_portal_m4\SAMD_TimerInterrupt\src/SAMDTimerInterrupt.hpp:137:4: warning: #warning Using SAMD51 Hardware Timer [-Wcpp]
  137 |   #warning Using SAMD51 Hardware Timer
      |    ^~~~~~~
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\arduino\msc\Adafruit_USBD_MSC.cpp.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\arduino\ports\esp32\Adafruit_TinyUSB_esp32.cpp.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\arduino\ports\nrf\Adafruit_TinyUSB_nrf.cpp.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\arduino\ports\rp2040\Adafruit_TinyUSB_rp2040.cpp.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\arduino\ports\samd\Adafruit_TinyUSB_samd.cpp.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\arduino\webusb\Adafruit_USBD_WebUSB.cpp.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\class\audio\audio_device.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\class\bth\bth_device.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\class\cdc\cdc_device.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\class\dfu\dfu_device.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\class\dfu\dfu_rt_device.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\class\hid\hid_device.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\class\midi\midi_device.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\class\msc\msc_device.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\class\net\ecm_rndis_device.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\class\net\ncm_device.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\class\usbtmc\usbtmc_device.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\class\vendor\vendor_device.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\common\tusb_fifo.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\device\usbd.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\device\usbd_control.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\portable\chipidea\ci_hs\dcd_ci_hs.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\portable\chipidea\ci_hs\hcd_ci_hs.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\portable\espressif\esp32sx\dcd_esp32sx.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\portable\microchip\samd\dcd_samd.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\portable\nordic\nrf5x\dcd_nrf5x.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\portable\raspberrypi\rp2040\dcd_rp2040.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\portable\raspberrypi\rp2040\hcd_rp2040.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\portable\raspberrypi\rp2040\rp2040_usb.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\lib6c2\Adafruit TinyUSB Library\tusb.c.o
Compiling .pio\build\adafruit_matrix_portal_m4\libb10\Wire\Wire.cpp.o
*** [.pio\build\adafruit_matrix_portal_m4\src\Marquee2.cpp.o] Error 1
====================================================== [FAILED] Took 26.88 seconds ======================================================The terminal process "C:\Users\Stuart\.platformio\penv\Scripts\platformio.exe 'run'" terminated with exit code: 1.

Terminal will be reused by tasks, press any key to close it.

For comparison, the same files in the original folder yield this output:

Processing adafruit_matrix_portal_m4 (platform: atmelsam; board: adafruit_matrix_portal_m4; framework: arduino)
---------------------------------------------------------------------------------------------------------Library Manager: Installing Adafruit SSD1331 OLED Driver Library for Arduino
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelsam/adafruit_matrix_portal_m4.html
PLATFORM: Atmel SAM (8.0.0) > Adafruit Matrix Portal M4
HARDWARE: SAMD51J19A 120MHz, 192KB RAM, 496KB Flash    
DEBUG: Current (atmel-ice) External (atmel-ice, jlink) 
PACKAGES:
 - framework-arduino-samd-adafruit @ 1.7.5
 - framework-cmsis @ 2.50400.181126 (5.4.0)
 - framework-cmsis-atmel @ 1.2.2
 - toolchain-gccarmnoneeabi @ 1.90301.200702 (9.3.1)   
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 54 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Adafruit Protomatter @ 1.2.1
|   |-- Adafruit GFX Library @ 1.10.13
|   |   |-- Adafruit BusIO @ 1.11.2
|   |   |   |-- Wire @ 1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- SPI @ 1.0
|   |   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Wire @ 1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|-- Adafruit ImageReader Library @ 2.7.0
|   |-- Adafruit SPIFlash @ 3.9.0
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- SdFat - Adafruit Fork @ 1.5.1
|   |   |   |-- SPI @ 1.0
|   |   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- SPI @ 1.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- SdFat - Adafruit Fork @ 1.5.1
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Adafruit GFX Library @ 1.10.13
|   |   |-- Adafruit BusIO @ 1.11.2
|   |   |   |-- Wire @ 1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- SPI @ 1.0
|   |   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Wire @ 1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Adafruit EPD @ 4.4.3
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit GFX Library @ 1.10.13
|   |   |   |-- Adafruit BusIO @ 1.11.2
|   |   |   |   |-- Wire @ 1.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |-- SPI @ 1.0
|   |   |   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Wire @ 1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- SPI @ 1.0
|   |   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit BusIO @ 1.11.2
|   |   |   |-- Wire @ 1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- SPI @ 1.0
|   |   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Adafruit BusIO @ 1.11.2
|   |   |-- Wire @ 1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|-- Adafruit TinyUSB Library @ 1.10.0
|-- PubSubClient @ 2.8.0
|-- ArduinoJson @ 6.19.2
|-- WiFiNINA_Generic @ 1.8.14-3
|   |-- SPI @ 1.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|-- Adafruit NeoMatrix @ 1.2.0
|   |-- Adafruit GFX Library @ 1.10.13
|   |   |-- Adafruit BusIO @ 1.11.2
|   |   |   |-- Wire @ 1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- SPI @ 1.0
|   |   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Wire @ 1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Adafruit NeoPixel @ 1.10.4
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|-- Adafruit NeoPixel @ 1.10.4
|   |-- Adafruit TinyUSB Library @ 1.10.0
|-- SAMD_TimerInterrupt @ 1.9.0
|-- fonts
|-- Seeed Arduino RTC @ 2.0.0
|-- Adafruit GFX Library @ 1.10.13
|   |-- Adafruit BusIO @ 1.11.2
|   |   |-- Wire @ 1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- SPI @ 1.0
|   |   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Wire @ 1.0
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- SPI @ 1.0
|   |   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|-- Adafruit SleepyDog Library @ 1.6.0
|-- base64
|-- SPI @ 1.0
|   |-- Adafruit Zero DMA Library @ 1.1.0
|   |   |-- Adafruit TinyUSB Library @ 1.10.0
|   |-- Adafruit TinyUSB Library @ 1.10.0
Building in release mode
Checking size .pio\build\adafruit_matrix_portal_m4\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [===       ]  25.9% (used 51012 bytes from 196608 bytes)
Flash: [==        ]  16.5% (used 83960 bytes from 507904 bytes)
===================================== [SUCCESS] Took 23.99 seconds =====================================

Terminal will be reused by tasks, press any key to close it.

Well here it didn’t rebuild anything so, if you use the “Clean” task and then the build task again for a clean rebuild, you might get the same error.

Sad that it doesn’t show more information.

Since the paths might be getting rather long, can you make sure to activate https://www.thewindowsclub.com/how-to-enable-or-disable-win32-long-paths-in-windows-11-10? Does it work thereafter?

Is any antivirus active that could interfer?

Is the harddrive or RAM full?

When you go into the nonworking project and execute pio run -j1 -v in the CLI, what are the last few lines before the error messages?

Update:

I checked and see that I do already have the long names enabled.

Running that command pio -j1 -v wanted me to update platformio. I did what it recommended. Now both the original and copy suffer from the same fate. At least we’re out of the twilight zone. I am now following online guides telling me to remove all python intepreters and double platformio installations (which I did not know I had). I will reply again with the results of all of this.

Incidentally, all my other projects appear to be unaffected. I think it must have something to do with the specific chip and adafruit libraries…

Update:
Well, I am not sure what to say. I basically uninstalled Python and PlatformIO and then reinstalled them yesterday. it did not make a difference. I gave up and just copied my project over to my mac. It compiled without an issue there.

This morning, for the heck of it, I tried one more time compiling on my windows machine. It now works. I give up. I imagine something’s being updated somewhere, but I power down my laptop at night. So just like the problem occurred overnight, it went away overnight.

I have seen “eratic” behavior due to Antivirus blocking things one day and not blocking it the next… Or Windows defender acting up.

Very well could be. I also realized that since I power down my laptop at night, that a reboot might have solved the problem. I had not tried that yesterday.