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

Creating an implementation sometimes breaks the C++ language server? #51

Open Etherealflux opened 2 years ago

Etherealflux commented 2 years ago

Creating an implementation of a member function sometimes causes C++ features to break, in general. For example, the Problems tab no longer updates; existing errors remain highlighted even if I add or remove lines of code.

I know very little about reporting these kinds of issues, but I did see this in the Window log:

[2022-02-16 14:31:46.882] [renderer1] [warning] UNRESPONSIVE extension host, 'amiralizadeh9480.cpp-helper' took 100% of 5062.333ms, saved PROFILE here: 'file:///var/folders/tf/62gdm4xx4bddtyz106q__5340000gn/T/exthost-cdeae8.cpuprofile' [{"id":"amiralizadeh9480.cpp-helper","total":5062208,"percentage":100}]

I believe this started after the update from two days ago. I am running on MacOS Monterey. I tried removing and reinstalling the extension, but the behavior is the same.

It's not a consistent problem. I tried to reproduce it with a simple example and failed, but just had it happen again a few minutes ago.

Let me know what diagnostics I should be looking for!

pnelego commented 2 years ago

Im having this issue consistently and i am no longer able to create implementation on any of my files.

EDIT: downgrading to 2.2 solves it.

knetworx commented 1 year ago

I noticed this happening when attempting to create an implementation and the source file can't be found/created. For me, it broke the Vim plugin and basically just ignored all my key strokes. The editor is essentially locked out until I restart.

bellicapax commented 9 months ago

I have seen this happen more consistently when I have multiple classes/structs defined in a header. I haven't tested if there is a limit or threshold.