Skip to content

Intellisense has issues with class member definitions  #75

Open

Description

@DrKropp

I am using the QuickPID library in a project with PlatformIO and VS code on a NodeMCU 32S board. Whenever I try to use any of the class enum keywords intellisense throws a fit that the keyword is not a class member. The project still compiles even with this error, but I hate ignoring the squiggly red underline.

Even the "PID_Basic.ino" example sketch shows this error: "QuickPID::Control::automatic" is not a class memberC/C++(1022)

I am not enough of a C++ programmer to pretend to know how to fix this, but I did see a post that mentioned moving the enums before the class instead of within the class cleared it up.

Screenshot 2024-02-21 164842

Activity

  1. Nanowires commented on Feb 29, 2024

    @Nanowires

    Instead of referencing the enums from, the objects, you could reference them from the class, i.e.:
    myPID.Control::automatic -> QuickPID::Control::automatic

  2. tomelgato commented on Jun 1, 2024

    @tomelgato

    Instead of referencing the enums from, the objects, you could reference them from the class, i.e.: myPID.Control::automatic -> QuickPID::Control::automatic

    Stumbled over the same "issue". Class reference works. Its a little bit misleading cause the examples dont work out of the box on PlatformIO

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions