legacy-python-cli icon indicating copy to clipboard operation
legacy-python-cli copied to clipboard

Wakatime language identification error

Open chenboshuo opened this issue 5 years ago • 4 comments

My latex class file(*.cls) was identified OpenEdge ABL

OpenEdge ABL
~/Documents/MathModels/cumcm2/cumcm_template/thesis/cumcmthesis.cls

~/Documents/latex_template/cumcm_template/thesis/cumcmthesis.cls

image

chenboshuo avatar Aug 04 '20 02:08 chenboshuo

Didn't want to open a new issue for this, but yeah, it would be really neat, if you could actually specify/modify the language somehow.

image

Say I'm working with a little-known language, and it would be really neat if I could go into settings and define something like:

*.myfiletype == My Awesome Language

egordorichev avatar Aug 05 '20 12:08 egordorichev

it would be really neat, if you could actually specify/modify the language somehow.

Yep, you can do that with a "Custom Rule" matching the end of the file: https://wakatime.com/settings/rules

alanhamlett avatar Aug 05 '20 16:08 alanhamlett

My latex class file(*.cls) was identified OpenEdge ABL

We'll fix this in a future wakatime-cli release, but for now you should use custom rules to fix the language. Let's leave this issue open until the code fix is released.

alanhamlett avatar Aug 05 '20 17:08 alanhamlett

Oh, my bad, huge thanks for pointing this feature out to me!

egordorichev avatar Aug 07 '20 07:08 egordorichev