platformio-vscode-ide
platformio-vscode-ide copied to clipboard
IDE shows wrong types and sizes
VSCode C/C++ extension shows wrong int size (on Arduino it is 2 bytes) and incorrect return type of sizeof (on Arduino it's unsigned int which has size of 2 bytes). Also that results in error in Serial.println function, as it doesn't have overrload for unsigned long long.
That code compiles successfully and prints correct values:
Sounds very similiar to https://github.com/microsoft/vscode-cpptools/issues/9765.
This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.