Can't open a Project

Hey guys,

I’m new to PlatformIO and can’t quite get it to work. When I try to launch a project I get an error.

What can be causeing it?

PIO Core Call Error: "The current working directory C:\Users\schif\Documents\PlatformIO\Projects\230512-201136-nanoatmega328 will be used for the project.

The next files/directories have been created in C:\Users\schif\Documents\PlatformIO\Projects\230512-201136-nanoatmega328
include - Put project header files here
lib - Put here project specific (private) libraries
src - Put project source files here
platformio.ini - Project Configuration File
Resolving nanoatmega328 dependencies...
Already up-to-date.
Updating metadata for the vscode IDE...


Error: Processing nanoatmega328 (platform: atmelavr; board: nanoatmega328; framework: arduino)
--------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/atmelavr/nanoatmega328.html
PLATFORM: Atmel AVR (4.1.0) > Arduino Nano ATmega328
HARDWARE: ATMEGA328P 16MHz, 2KB RAM, 30KB Flash
DEBUG: Current (avr-stub) External (avr-stub, simavr)
PACKAGES: 
 - framework-arduino-avr @ 5.1.0 
 - toolchain-atmelavr @ 1.70300.191015 (7.3.0)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 5 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode

*** SyntaxError `unexpected EOF while parsing (<string>, line 1)' trying to evaluate `$DIa31128.42220'
File "C:\Users\schif\.platformio\penv\lib\site-packages\platformio\builder\tools\piointegration.py", line 160, in DumpIntegrationData
========================== [FAILED] Took 0.57 seconds =========================="

Wut? I’ve never seen that kind of error. Please do the following:

  1. Close VSCode
  2. Delete C:\Users\schif\.platformio\ fully
  3. Reopen VSCode
  4. Let PlatformIO reinstall itself
  5. Reopen the project.

Thanks, but I tried it already. It sends the same error message back.

Full platformio.ini?

This’s all that is in the .ini

; 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
; Redirecting...

[env:nanoatmega328]
platform = atmelavr
board = nanoatmega328
framework = arduino

Never seen anything like it before. The code says

So that’s just trying to find out what the compiler is (which should evaluate to avr-gcc located in C:\Users\<user>\.platformio\packages in your project).

You might have very weird environment variables or PATHs set. In a PlatformIO core CLI, please post the output of

gci env:* | sort-object name
where avr-gcc

This is what it comes back with.

PS C:\Users\schif> gci env:* | sort-object name

where avr-gcc

Name Value


ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Users\schif\AppData.…
CHROME_CRASHPAD_PIPE_NAME \.\pipe\LOCAL\crashpad…
COLORTERM truecolor
CommonProgramFiles C:\Program Files\Common…
CommonProgramFiles(x86) C:\Program Files (x86).…
CommonProgramW6432 C:\Program Files\Common…
COMPUTERNAME DESKTOP-QBJ6M5F
ComSpec C:\Windows\system32\cmd…
DriverData C:\Windows\System32\Dri…
HOMEDRIVE C:
HOMEPATH \Users\schif
LANG en_US.UTF-8
LOCALAPPDATA C:\Users\schif\AppData.…
LOGONSERVER \DESKTOP-QBJ6M5F
NUMBER_OF_PROCESSORS 12
OneDrive C:\Users\schif\OneDrive
OneDriveConsumer C:\Users\schif\OneDrive
ORIGINAL_XDG_CURRENT_DESKTOP undefined
OS Windows_NT
Path C:\Program Files (x86).…
PATHEXT .COM;.EXE;.BAT;.CMD;.VB…
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER AMD64 Family 25 Model 8…
PROCESSOR_LEVEL 25
PROCESSOR_REVISION 5000
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Users\schif\Document…
PUBLIC C:\Users\Public
SESSIONNAME Console
SystemDrive C:
SystemFolder_Omron C:\Windows\SysWOW64\Omron\
SystemRoot C:\Windows
TEMP C:\Users\schif\AppData.…
TERM_PROGRAM vscode
TERM_PROGRAM_VERSION 1.78.2
TMP C:\Users\schif\AppData.…
USERDOMAIN DESKTOP-QBJ6M5F
USERDOMAIN_ROAMINGPROFILE DESKTOP-QBJ6M5F
USERNAME schif
USERPROFILE C:\Users\schif
VSCODE_INJECTION 1
windir C:\Windows