wakatime / legacy-python-cli

Command line interface used by all WakaTime text editor plugins.
https://wakatime.com/
BSD 3-Clause "New" or "Revised" License
1.02k stars 84 forks source link

Can't recognise ReScript Programming language #254

Open Deep-Codes opened 3 years ago

Deep-Codes commented 3 years ago

Went through Issue wakatime/vscode-wakatime#118, wakatime/vscode-wakatime#88

Enabled wakatime debug went through the logs:

logfile : wakatime.log

It says:

{"now": "2021/02/04 09:16:02 +0530", "version": "13.0.7", "plugin": "vscode/1.52.1 vscode-wakatime/5.0.0", "time": 1612410358.116768, "caller": "wakatime/dependencies/__init__.py", "lineno": 145, "file": "/Users/deepankarbhade/.wakatime.log", "level": "DEBUG", "message": "Parsing dependencies not supported for unknown.UnknownParser"}

&

{"now": "2021/02/04 09:11:13 +0530", "version": "13.0.7", "plugin": "vscode/1.52.1 vscode-wakatime/5.0.0", "time": 1612410069.4828532, "caller": "wakatime/logger.py", "lineno": 56, "file": "/Users/deepankarbhade/.wakatime.log", "level": "DEBUG", "message": "Traceback (most recent call last):\n  File \"wakatime/stats.py\", line 114, in guess_lexer_using_filename\n  File \"wakatime/stats.py\", line 334, in custom_pygments_guess_lexer_for_filename\npygments.util.ClassNotFound: no lexer for filename '.wakatime.log' found\n"}

I have never seen someone use ReScript before on wakatime but would love to have it though! Also, the programming time adds up in others category which is normal behavior i guess if it isn't recognized. because the same happened with .ipynbfiles.

jakeisnt commented 3 years ago

wakatime-vscode isn't the best place to open this issue; you need to request that the wakatime cli is updated: https://github.com/wakatime/wakatime

Deep-Codes commented 3 years ago

Makes Sense on it.

gandarez commented 3 years ago

We've been porting the current Python cli that relies on Pygments to detect languages in order to have a new cli totally rewritten in Golang that will rely on Chroma. The language has been added to our forked repo and soon will be released among with the launch of new cli.