Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect and seemingly unrelated language detection #937

Closed
ghost opened this issue Sep 20, 2023 · 2 comments
Closed

Incorrect and seemingly unrelated language detection #937

ghost opened this issue Sep 20, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Sep 20, 2023

Version: 2022 Community 17.7.3

Issue:
Let me preface this by saying that I haven't opened any kind of Ezhil (.n) nor GDScript file (.gd) ever, not even before installing the WakaTime VS extension.

.gitignore and .sln files I've opened on Visual Studio for some reason are being shown as random languages, namely GDScript and a Tamil script programming language. Furthermore, they comprise a small percentage of time I've spent on the languages chart despite being 0 seconds. Is this a known phenomenon? I'm not super well-versed in how the language recognition/time-spent analysis works for Wakatime, but let me know if any other kind of information would be useful.

image
image
image

@alanhamlett alanhamlett transferred this issue from wakatime/visualstudio-wakatime Sep 20, 2023
@alanhamlett alanhamlett added bug Something isn't working and removed triage labels Sep 20, 2023
@alanhamlett
Copy link
Member

We recently added more involved language detection where we analyze the file contents looking for symbols matching a language syntax. It used to only use file extension, but we had some unknown languages. Now we need to make sure we're not matching languages too eagerly.

@alanhamlett
Copy link
Member

Duplicate of #943 which was just fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant