amir9480 / vscode-cpp-helper

vscode extension to create implementation for c++ function prototypes.
https://marketplace.visualstudio.com/items?itemName=amiralizadeh9480.cpp-helper
MIT License
355 stars 31 forks source link

Extension no longer working after update #41

Open Ares9323 opened 2 years ago

Ares9323 commented 2 years ago

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

I tried uninstalling and resetting the settings. I Tested:

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!

amir9480 commented 2 years ago

Hi @Ares9323

Please check your console as described here step by step.

Ares9323 commented 2 years ago

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

https://user-images.githubusercontent.com/46932745/135876983-dc4d70a0-4b7b-4eb1-9168-77084822434e.mp4

amir9480 commented 2 years ago

@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.

Ares9323 commented 2 years ago

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

taleroangel commented 2 years ago

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

Yo-Gurt123 commented 2 years ago

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.

NoevilMe commented 2 years ago

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

kolchagov commented 2 years ago

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

swq123459 commented 2 years ago

same

maidamai0 commented 2 years ago

same for me

studiosoho commented 2 years ago

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.

Ares9323 commented 2 years ago

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

amir9480 commented 2 years ago

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.

Ares9323 commented 2 years ago

Thanks for the update, it seems to work now!

Ares9323 commented 2 years ago

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