-
Notifications
You must be signed in to change notification settings - Fork 62
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 language detection for ASPX files #78
Comments
@errosan are you using visual studio? |
Looks like Pygments (the library we use for language detection) already supports detecting We might be not correctly using this information from pygments, or truncating the language name since we only support a single language while Pygments supports nested languages: Here's where we use Pygments to detect the language via |
Closing due to the lack of response, feel free to reopen @errosan. |
@gandarez Yes, Visual Studio. Please reopen. |
Here's a screenshot of our server-side language rule overrides related to asp and vb: That means we're not overwriting the language server-side. Probably what's happening is the While the So Pygments prefers |
@alanhamlett would be possible to call the api and add an extra parameter to force the language (using the parameter language)? I think the https://github.com/wakatime/wakatime/blob/master/wakatime/heartbeat.py#L39 |
Is this still happening now that we've moved from Pygments to chroma? We can have the Visual Studio extension pass |
The plugin is reporting ASPX as VB.NET language. ASPX pages have a language declaration at the beginning of the file, it would be better to use the language specified since aspx pages can be either language, vb or c#.
<%@ Page Title="" Language="C#" %>
The text was updated successfully, but these errors were encountered: