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

Nothing of C++ Helper works anymore after calling "Create Implementation" with a special constructor in your class #73

Open
Food2023 opened this issue Feb 1, 2024 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Food2023
Copy link

Food2023 commented Feb 1, 2024

If you call "Create Implementation Here" in a class with a special constructor the extension won't work anymore. No C++ helper function works until restart of VSCode.

Example: Create a *.hpp file and insert:

class StateR : public State
{
public:
    StateR(IState* f_stateHandling):
        State()
        {};
    boolean nextState();
};

Call "Create Implementation Here" on the nextState. Nothing will happen. No other "Create Implementation" methods will work anymore.

@ab503044120
Copy link

+1

@amir9480
Copy link
Owner

I guess the regex I used for parsing is broken on your code.
You can check the regex used here:

https://github.com/amir9480/vscode-cpp-helper/blob/master/src/FunctionDetails.ts#L85

@amir9480 amir9480 added bug Something isn't working help wanted Extra attention is needed labels Apr 16, 2024
@Food2023
Copy link
Author

Thanks for the feedback but I have same the regular expressions like you (in your link). I feel there is something wrong with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants