Skip to content

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

Closed
@andz885

Description

@andz885

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

Activity

facchinm

facchinm commented on May 25, 2020

@facchinm
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!

added this to the Release 1.8.13 milestone on May 25, 2020
andz885

andz885 commented on Feb 20, 2022

@andz885
Author

Totally forgot about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      If I write preprocesor command #if and press auto-format, IDE crashes · Issue #10268 · arduino/Arduino