mujx / hakatime

Wakatime server implementation & analytics dashboard
https://hakatime.mtx-dev.xyz
The Unlicense
611 stars 45 forks source link

Classifying other file types instead of Other. #13

Closed timvoet closed 3 years ago

timvoet commented 3 years ago

Is there something we can do to help classify the "other" bucket of file types.

I currently have the templating files (ERB, SLIM, etc ) of my ruby projects classified as "other"

mujx commented 3 years ago

The classification is done by the wakatime client. In order for these languages to be recognized the client must support it.

timvoet commented 3 years ago

Waka time recognizes the others properly as ERB files. I just checked

mujx commented 3 years ago

It doesn't seem like it's supported from this list https://github.com/wakatime/wakatime/blob/a05026c791794bdd2530d0883f63d100d4f06b47/wakatime/languages/default.json.

From the plugin logs ClassNotFound: no lexer for filename 'test.erb' found\n"

Probably the wakatime server extracts the language from the .erb extension, but the client doesn't seem to send the language name.

I believe this could be solved by either fixing it on the client or doing some guessing on the server by the extension.

timvoet commented 3 years ago

I don't know what to say, they do classify it. https://snipboard.io/wPG8xQ.jpg

this was yesterday's session.