kisstkondoros / codemetrics

VSCode extension which shows the complexity information for TypeScript class members
Other
404 stars 20 forks source link

Not working with RemoteWSL extension in VSCode #68

Closed bogdan-calapod closed 5 years ago

bogdan-calapod commented 5 years ago

Hello,

First of all, thanks a lot for this extension, I find it very useful! :)

It seems that the extensions doesn't get along very well with VSCode's WSL Remote insiders (or maybe I haven't configured something properly?)

In a WSL Workspace, the extension doesn't output anything to the debug window, but the code metrics don't show up. I have set the threshold at 0, and have toggled code metrics with the option in the Ctrl + Shift + P menu.

Any idea how I can help debug this further ?

kisstkondoros commented 5 years ago

Thanks for reporting it, I'll have a look. I suspect it has something to do with the url scheme.

kisstkondoros commented 5 years ago

I've just tested it with Remote-WSL with a docker based setup: for me it works. Could you please provide more information about your environment?

bogdan-calapod commented 5 years ago

Sorry for the late reply, I've been away for a couple of days.

I've noticed that it's pretty sporadic - sometimes it shows, sometimes not. Might it be from the cocktail of extensions I have ?

I suspect extensions that also use codelens to display info in the editor might be clashing with one another ? Culprits that I have installed might be:

I have noticed that if I disable VSCode-Jest for the workspace I'm working in CodeMetrics works more reliably. There's also an issue regarding high CPU usage with the extension - maybe something doesn't get executed in time because Jest takes up all the CPU space ?

I'll make more tests over the following days with various configs and try to track this down.

kisstkondoros commented 5 years ago

I don't think it has anything to do with that, at least it shouldn't :smile:

If you toggle codelens with the command menu they will not show up for sure (by default they are visible and you can turn them off that way).

I'm waiting for some more info then. Please try to provide a Minimal, Reproducible Example if possible. The list of installed extensions and the settings file of vscode would also be useful.

Thanks in advance!

kisstkondoros commented 5 years ago

I'll close this ticket for now, but feel free to reopen / add further details / create a new issue with more information.

bogdan-calapod commented 5 years ago

Cool - I've tested with the latest June release and can't seem to reproduce it. If it pops up again, I'll let you know.