Hello, my system version is ubuntu 22.04, when I installed platformIO plugin in vscode, then run the example newly created, I got the error message below. I have searched the internet for solving this, but I can’t find the solution… pls help.
#include <Arduino.h>
// put function declarations here:
int myFunction(int, int);
void setup() {
// put your setup code here, to run once:
int result = myFunction(2, 3);
}
void loop() {
// put your main code here, to run repeatedly:
}
// put function definitions here:
int myFunction(int x, int y) {
return x + y;
}
yes, the step you listed I have already tested. I also run same code in my another pc, which system version is ubuntu 20.04, and it works well. So I think may not code or environment error, may the system version mismatch… Anyway, I don’t know, and I can’t solving this yet.
Sounds like a broken platform / toolchain.
Delete the espressif32 framework and packages files and have them reinstalled automatically by rebuilding the project.
Unfortunately I don’t have linux but windows.
On Windows, the files are located at C:\Users\<username>\.platformio\framework and C:\Users\<username>\.platformio\packages
Does the firmware build when you use the PIO sidebar → Build? VSCode’s Intellisense can just be off sometimes and hallucinate a problem that does not really exist.