platformio-vscode-ide icon indicating copy to clipboard operation
platformio-vscode-ide copied to clipboard

IDE shows wrong types and sizes

Open adriankwiat opened this issue 1 year ago • 1 comments

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.

image image

That code compiles successfully and prints correct values: image image

adriankwiat avatar Aug 26 '24 16:08 adriankwiat

Sounds very similiar to https://github.com/microsoft/vscode-cpptools/issues/9765.

maxgerhardt avatar Sep 07 '24 17:09 maxgerhardt

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.

stale[bot] avatar Feb 25 '25 01:02 stale[bot]