Support C-method source in `show_source` command
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Ruby
- Stars
- 478
- Forks
- 158
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 12
Description
The main challenge of this support comes from acquiring the C-method source files:
- Unless users install Ruby with
ruby-installorruby-build -k, Ruby's C source code wouldn't be preserved after Ruby is built - Between
ruby-installandruby-build -k, the location of sources are different:ruby-install:~/srcor/usr/local/srcfor the root userruby-build -k:~/.cache
- Pry uses
pry-docto serve as an installable source database
So instead of relying on the installed CRuby source, downloading the source later may be a better approach (proposed by @k0kubun).
Questions:
- Should it be
rdoc,irb, or another tool's responsibility to perform this action? - Should it install multiple Ruby versions' sources, or just 1?
- I prefer the former, like downloading all actively maintained Ruby versions at once
- TBD
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source files, tests, or entry points are named. Start by deciding whether irb, rdoc, or another tool owns C-method source acquisition, then resolve how ruby-install, ruby-build -k, and pry-doc source locations affect the supported scope and which Ruby versions should be handled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100