Support C-method source in `show_source` command
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
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.
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
- Dominant language
- Ruby
- Stars
- 477
- Forks
- 165
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 5
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from ruby/irb
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
Maintainers usually reply within 2 days
-
Proposal: public hook for external documentation providers in show_doc and the completion doc dialogPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 5/5 Over a week Newbie friendliness 38/100
Maintainers usually reply within 2 days
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 2 days
Similar issues
-
needs verification
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 13 days
-
🐛 bug 👩💻 équipe CE 🧑🏭 entreprises
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
betagouv/conseillers-entreprises#4808 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
yosiat/panko_serializer#250 ·