Skip to content

If I write preprocesor command #if and press auto-format, IDE crashes #10268

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

Closed
andz885 opened this issue May 24, 2020 · 2 comments
Closed

If I write preprocesor command #if and press auto-format, IDE crashes #10268

andz885 opened this issue May 24, 2020 · 2 comments
Labels

Comments

@andz885
Copy link

andz885 commented May 24, 2020

platform windows 10
steps:
open new sketch,
write #if
press auto-format
your IDE will crash

@facchinm
Copy link
Member

Wow, THIS is a bug 🙂
From a very fast investigation it looks like libAstyle is crashing with

terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::compare: __pos (which is 18446744073709551615) > this->size() (which is 2)

as if it was not finding the end of the file. Surely worth investigating. Thanks for reporting!

@facchinm facchinm added this to the Release 1.8.13 milestone May 25, 2020
@andz885
Copy link
Author

andz885 commented Feb 20, 2022

Totally forgot about this.

@andz885 andz885 closed this as completed Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants