castwide/solargraph

Unable to locate yard docs for a Gem

KonnorRogers opened this issue · 2 comments

Hi there! I made a gem called custom_elements_manifest_parser.

I have solargraph all setup in my project, but for some reason I don't get any intellisense for my gem, but I get intellisense for other gems I have installed.

when I do yard server --gems I can see all yardoc types there for my gem.

I'm kinda stumped and not sure where to start troubleshooting. It's clearly an issue with my gem. I just don't know what. I tried adding the following to my *.gemspec

spec.metadata["yard.run"] = "yri"

and that didn't do anything. Any guidance would be appreciated, and happy to provide a reproduction as well if needed.

It appears to be picking up the Gem because when I comment out the require I can at least get a hover, but it only shows my namespace and CustomElementsManifestParser::Version, is there a guide for gem publishing with yardoc?

2023-10-30-18-46-06.mp4

Just to further update:

require "custom_elements_manifest_parser/lib/custom_elements_manifest_parser"
# ^ gets auto completion


require "custom_elements_manifest_parser"
# ^ does not get auto completion