Skip to content

C# file incorrectly marked as Smalltalk #5636

Discussion options

You must be logged in to vote

It'll be because the final step in the detection process, the classifier, has determined the content looks more like SmallTalk than C#. This is quite common for small files as there's less likely to be anything in the files that match the samples used to train the classifier.

So why did we get this far? It's because both languages share the .cs extension and your files content didn't match the heuristic we have to try and differentiate the languages so things fell through to the classifier.

The only solution is to use an override to force the language, use a C# namespace (so the heuristic catches it) or leave it to the classifier if you plan on adding more to the file; the more content in…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lildude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants