Skip to content

sizeof(long) with ESP32/8266 is shown wrong #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jonas-ott opened this issue Nov 13, 2020 · 3 comments
Open

sizeof(long) with ESP32/8266 is shown wrong #80

jonas-ott opened this issue Nov 13, 2020 · 3 comments
Assignees
Labels
topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project

Comments

@jonas-ott
Copy link

When moving the mousepointer above sizeof(long) with an ESP32 selected as Board the IDE shows that the value is 8. But that's wrong like shown with Serial.print. It's the same with an ESP8266 but correct with an Arduino Nano. I haven't tested other Boards.
OS: Manjaro Linux with latest Updates
Screenshot Arduino Pro IDE

@per1234
Copy link
Contributor

per1234 commented Feb 17, 2021

Hi @jonas-ott. Thanks so much for taking the time to report this!

Would you mind downloading the new 0.1.4 release of Arduino Pro IDE and letting us know whether the bug still occurs?

There have been some nice advancements since November and it is now showing the expected 4 value for me with both ESP32 and ESP8266, so I think it's fixed.

@jonas-ott
Copy link
Author

It didn't work for me (Manjaro Linux). So I decided to test it in a VM with Windows and there it's correct.

@per1234
Copy link
Contributor

per1234 commented Feb 17, 2021

Thanks for checking that for me. I was using Windows. I tried it on Linux and am getting the same results you reported on both OSes.

I notice that the Pro IDE's editor hover shows the type as unsigned long long on my Windows machine while it shows the type as unsigned long on my Linux machine (which I see is the same as in your screenshot).

@rsora rsora transferred this issue from arduino/arduino-pro-ide Mar 1, 2021
@cmaglie cmaglie removed the type: bug label Sep 16, 2021
@rsora rsora added type: imperfection Perceived defect in any part of project topic: language server Related to the Arduino Language Server labels Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: language server Related to the Arduino Language Server type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

6 participants