-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Remove language group recursion #5987
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
11 years? Damn.
@lildude One of the tests has started failing for an unfamiliar reason:
Would this have been caused by the changes made in this PR, you think? |
Huh‽ 😱 I've never seen that either. I don't see how my changes could have caused this as the test passed in that PR and on master since the PR was merged. I'll dig into it this week. |
Yup, this is definitely not my fault 😁 The cause is the upstream Ace repo has had a bit of restructuring in ajaxorg/ace#4851 which means we're looking in the wrong place now. They appear to have missed two files as part of this move for some reason: I've started a PR to fix this in #6002 however I'm investigating if we need to keep the |
After over 11 years within Linguist, and over 5 year of direct usage, it's been discovered
Linguist::Language
has a recursion problem that doesn't play nicely with Rails'.to_json
:Closer examination (ie doing what Rails does) shows where the recursion is:
💥 there's our recursion:
"group"=>#<Linguist::Language name=Markdown>
We don't really need this as we have a
group()
method which gets the same information as and when it is needed so all we really need is the name.This PR removes the recursive assignment.