Using VSCode/Platform IO: collect2.exe: error: ld returned 1 exit status

Hello, not sure if this is the correct place for this but I am trying to use platformIO through VS Code for my arduino as Arduino’s IDE is not letting me install the board.

I am using an ESP32-S3 TFT from adafruit and I am receiving this error from the terminal:

c:/users/nhoong/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: cannot find  Inc\Documents\Laser Bucket Alignment Fixture\Laser Bucket Tool\Laser Bucket Tool\.pio\build\adafruit_feather_esp32s3_tft\firmware.map: No such file or directory
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\adafruit_feather_esp32s3_tft\firmware.elf] Error 1

Here’s the whole log:

Processing adafruit_feather_esp32s3_tft (platform: espressif32; board: adafruit_feather_esp32s3_tft; framework: arduino)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/adafruit_feather_esp32s3_tft.html
PLATFORM: Espressif 32 (6.1.0) > Adafruit Feather ESP32-S3 TFT
HARDWARE: ESP32S3 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)   
PACKAGES:
 - framework-arduinoespressif32 @ 3.20007.0 (2.0.7)
 - tool-esptoolpy @ 1.40500.0 (4.5.0)
 - tool-mkfatfs @ 2.0.1
 - tool-mklittlefs @ 1.203.210628 (2.3)
 - tool-mkspiffs @ 2.230.0 (2.30)
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5 
 - toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
Warning! An extra UF2 bootloader image is already added!
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 33 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduinoVariant\variant.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\src\main.cpp.o
Generating partitions .pio\build\adafruit_feather_esp32s3_tft\partitions.bin
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\Esp.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\FirmwareMSC.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\FunctionalInterrupt.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\HWCDC.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\IPAddress.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\IPv6Address.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\MD5Builder.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\Print.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\Stream.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\StreamString.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\Tone.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\USB.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\USBCDC.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\USBMSC.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\WMath.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\WString.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\base64.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\cbuf.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-adc.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-bt.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-cpu.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-dac.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-gpio.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-i2c-slave.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-i2c.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-ledc.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-matrix.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-misc.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-psram.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-rgb-led.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-rmt.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-sigmadelta.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-spi.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-time.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-timer.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-tinyusb.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-touch.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\esp32-hal-uart.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\firmware_msc_fat.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\libb64\cdecode.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\libb64\cencode.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\main.cpp.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\stdlib_noniso.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\wiring_pulse.c.o
Compiling .pio\build\adafruit_feather_esp32s3_tft\FrameworkArduino\wiring_shift.c.o
Archiving .pio\build\adafruit_feather_esp32s3_tft\libFrameworkArduino.a
Linking .pio\build\adafruit_feather_esp32s3_tft\firmware.elf
c:/users/nhoong/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: cannot find  Inc\Documents\Laser Bucket Alignment Fixture\Laser Bucket Tool\Laser Bucket Tool\.pio\build\adafruit_feather_esp32s3_tft\firmware.map: No such file or directory
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\adafruit_feather_esp32s3_tft\firmware.elf] Error 1
========================================================================================= [FAILED] Took 44.97 seconds =========================================================================================

 *  The terminal process "C:\Users\nhoong\.platformio\penv\Scripts\platformio.exe 'run', '--target', 'upload'" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

The code that I am trying to compile is

#include <Arduino.h>
 
/*
  Simple Blink sketch
  simple-blink.cpp
  Use for PlatformIO demo
 
  From original Arduino Blink Sketch
  https://www.arduino.cc/en/Tutorial/Blink
  
  DroneBot Workshop 2021
  https://dronebotworkshop.com
*/
 
// Set LED_BUILTIN if undefined or not pin 13
// #define LED_BUILTIN 13
 
void setup()
{
  // Initialize LED pin as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}
 
void loop()
{
  // Set the LED HIGH
  digitalWrite(LED_BUILTIN, HIGH);
 
  // Wait for a second
  delay(1000);
 
  // Set the LED LOW
  digitalWrite(LED_BUILTIN, LOW);
 
   // Wait for a second
  delay(1000);
}

The issue was resolved by moving the project to a folder without special characters.