Skip to content
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

Intellisense has issues with class member definitions #75

Open
DrKropp opened this issue Feb 21, 2024 · 2 comments
Open

Intellisense has issues with class member definitions #75

DrKropp opened this issue Feb 21, 2024 · 2 comments

Comments

@DrKropp
Copy link

DrKropp commented Feb 21, 2024

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
@Nanowires
Copy link

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

@tomelgato
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants