Closed QuentinLemCode closed 1 year ago
Version 0.49.0 includes a change that drops out of super_and_sub?
when it encounters a previously tested class. I suspect I need to investigate a lower level root cause for superclasses having circular references, but this should at least avoid infinite loops.
If the problem persists, please let me know.
Great, will try it asap
Issue fixed ! Thanks
Hello Currently working on a rails project with engines There is this actual folder structure
So here is the class declaration of app/controllers/application_controller.rb
class Admin::ApplicationController < ApplicationController
And here is the class declaration of engines/platform/app/admin/application_controller.rb
class Platform::Admin::ApplicationController < Admin::ApplicationController
So, when working on controller of this engine, trying to call autocompletion on
ResqueHelpers
broke completely solargraph as it doesn't respond anymore after the first autocomplete call.I added a bunch of logging to find the issue. I found out it come from
super_and_sub?
method fromApiMap
class. https://github.com/castwide/solargraph/blob/master/lib/solargraph/api_map.rb#LC460Here is the logging I got :
For now, I have added a limit of 100 on the
until
.Can you fix this issue please ? At least add a limit to prevent infinite loops.