amir9480 / vscode-cpp-helper

vscode extension to create implementation for c++ function prototypes.

Home Page:https://marketplace.visualstudio.com/items?itemName=amiralizadeh9480.cpp-helper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extension no longer working after update

Ares9323 opened this issue · comments

Hi, I've just updated the extension and NONE of the command is working..

I tried uninstalling and resetting the settings.
I Tested:

  • Create implementation (nothing happens)
  • Create implementation here (nothing happens)
  • Copy Implementation (nothing happens)
  • Create Header Guard (nothing happens)

I rolled back to previous version, If you want me to test please tell me and I will update again!
I really use this extension everyday!

Hi @Ares9323

Please check your console as described here step by step.

Hi, I already checked the console and literally nothing is posted (both launching with right click or shortcut).

DungeonRoom.h.-.PluginProject.Workspace.-.Visual.Studio.Code.2021-10-04.17-11-18.mp4

@Ares9323
I'm not sure why this happening
Can you uninstall and install the extension again?
Did you try using the extension on another machine?
If possible please send me your source code, it can be a regex problem with your code.

Probably it's a regex problem, I tried to install vscode in a new virtual machine and I'm encountering the same problem, also the "copy implementation" doesn't work so it shouldn't be a path problem.

Here are the two files I used in the video, but it doesn't work in all the project (Previous version still works perfectly)

(I had to add .txt to the extension because .cpp and .h are not accepted)

DungeonRoom.cpp.txt
DungeonRoom.h.txt

Same is happening to me after update, I'm working on Windows and it keep telling me 'Function not detected', even the simplest function like 'void foo();' keep saying Function not detected

I have the same Problem. When there is a commentary in the Header File which starts with //.
For example:
//************************************************************************
// test
//************************************************************************
void test( void );

doesn't work. It jumps into the source file and VS Code says "Function not detected".

But:
void test( void );

works fine.

it looks like this happens if there is some comment in header file. // or /**/.
vsc 1.62.0 insider.

Hi,
after update It's not working for me too, I've got "Function not detected" message.
Nothing shown in Extension console log.

PS: downgraded to version 0.2.2 - works fine

same

same for me

it looks like this happens if there is some comment in header file. // or /**/. vsc 1.62.0 insider.

That worked for me.
Removed all comments from header file and the extension worked.

it looks like this happens if there is some comment in header file. // or /**/. vsc 1.62.0 insider.

That worked for me. Removed all comments from header file and the extension worked.

Yes, we know that's the problem, but removing comments in the header Is NOT an acceptable solution, I'd rather use the older version

Please update to version 0.3.1.
If still issue exists let me know.

I checked the new version with @Ares9323 's source code and everything works fine.

Thanks for the update, it seems to work now!

Edit: It's working but only on some files, for example in these it's still having the same problem:
Test.zip

Rolled back to 2.2, feel free to contact me if you need anything