You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to fix completion (in irb) for https://github.com/rgeo/rgeo. However, I stumbled upon an issue which once reduced to a minimal example seems to be a Rdoc bug:
# t.rbmoduleRGeomoduleFeaturemoduleSurface# YEAH YEAH YIPIYEAH YIPIYOdefcentroidputs"I can be executed"endendendendmoduleRGeomoduleFeaturemodulePolygonincludeSurfaceendendendmoduleRGeoclassGeosclassCAPIPolygonImpl# changing that for `module Geos` worksincludeFeature::Polygonendendend
$ rdoc -q -f ri --op t t.rb
$ ri --no-standard-docs -d t RGeo::Geos::CAPIPolygonImpl#centroid
Nothing known about RGeo::Geos::CAPIPolygonImpl#centroid
The code is valid ruby (you never now ^^, ruby -r./t.rb -e 'RGeo::Geos::CAPIPolygonImpl.new.centroid'). And changing the class CAPIPolygonImpl to module CAPIPolygonImpl gives the expected output:
$ ri --no-pager --no-standard-docs -d t RGeo::Geos::CAPIPolygonImpl#centroid
RGeo::Geos::CAPIPolygonImpl#centroid
(from /Users/ulysse/Dev/rgeo/rgeo/t)
Implementation from Surface
------------------------------------------------------------------------
centroid()
------------------------------------------------------------------------
YEAH YEAH YIPIYEAH YIPIYO
Do you have any hint on where it could come from?
Thank you 🙏
The text was updated successfully, but these errors were encountered:
I'm trying to fix completion (in irb) for https://github.com/rgeo/rgeo. However, I stumbled upon an issue which once reduced to a minimal example seems to be a
Rdoc
bug:The code is valid ruby (you never now ^^,
ruby -r./t.rb -e 'RGeo::Geos::CAPIPolygonImpl.new.centroid'
). And changing theclass CAPIPolygonImpl
tomodule CAPIPolygonImpl
gives the expected output:$ ri --no-pager --no-standard-docs -d t RGeo::Geos::CAPIPolygonImpl#centroid RGeo::Geos::CAPIPolygonImpl#centroid (from /Users/ulysse/Dev/rgeo/rgeo/t) Implementation from Surface ------------------------------------------------------------------------ centroid() ------------------------------------------------------------------------ YEAH YEAH YIPIYEAH YIPIYO
Do you have any hint on where it could come from?
Thank you 🙏
The text was updated successfully, but these errors were encountered: