uctakeoff / vscode-counter

VS Code extension: counts blank lines, comment lines, and physical lines of source code in many programming languages.
MIT License
152 stars 20 forks source link

Is the Rust programming language supported? #41

Closed HTGAzureX1212 closed 4 years ago

HTGAzureX1212 commented 4 years ago

I tried to count lines in my Rust project. And it just doesn't work. Is the language supported?

HTGAzureX1212 commented 4 years ago

It looks like it is supported, but for some reason it doesn't work. It only outputs XML files for some reason.

HTGAzureX1212 commented 4 years ago

Info: VS Code 1.50.1 Extension Version: 2.2.0

uctakeoff commented 4 years ago

This extension makes use of other language extensions to do the aggregation. Do you have the Rust language extension installed?

You can check the supported languages with the "check available languages" command. Please try it.

HTGAzureX1212 commented 4 years ago

Yes, I do have the Rust extension installed. By running Check available languages, Rust is also included.

uctakeoff commented 4 years ago

Please tell me which Rust language extension you have installed to try it.

HTGAzureX1212 commented 4 years ago

This one: https://marketplace.visualstudio.com/items?itemName=rust-lang.rust

uctakeoff commented 4 years ago

This is done. What's the problem? Are you in a Remote Development environment? image

HTGAzureX1212 commented 4 years ago

No. I'm sure I'm not

uctakeoff commented 4 years ago

Can you open the Developer Tool and continue?

Help > Toggle Developer Tools and select Console tab.

You may get a detailed message.

HTGAzureX1212 commented 4 years ago

Hold on, lemme check

HTGAzureX1212 commented 4 years ago

image

HTGAzureX1212 commented 4 years ago

Yes - I am on Rust nightly, not stable nor beta.

HTGAzureX1212 commented 4 years ago

image

uctakeoff commented 4 years ago

There doesn't seem to be any errors on VSCodeCounter. The previous error message is bothering me, but I am not a Rust user, so I don't know what the error means.

Disabling or uninstalling the Rust extension once might solve the problem. Just an idea.

HTGAzureX1212 commented 4 years ago

Thank you - by disabling, it works now. I enabled it again and it also worked: image

Sorry - I was having my tests and I can finally reply with an update here. Thank you again!