Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SourceFinder's constant evaluation issue #869

Merged
merged 1 commit into from
Feb 13, 2024
Merged

Conversation

st0012
Copy link
Member

@st0012 st0012 commented Feb 12, 2024

Currently, if the signature's constant part is not defined, a NameError would be raised.

irb(main):001> show_source Foo
(eval):1:in `<top (required)>': uninitialized constant Foo (NameError)

Foo
^^^
        from (irb):1:in `<main>'

This commit fixes the issue and simplifies the edit command's implementation.

@st0012 st0012 added the bug Something isn't working label Feb 12, 2024
Currently, if the signature's constant part is not defined, a NameError
would be raised.

```
irb(main):001> show_source Foo
(eval):1:in `<top (required)>': uninitialized constant Foo (NameError)

Foo
^^^
        from (irb):1:in `<main>'
```

This commit fixes the issue and simplifies the `edit` command's implementation.
@tompng tompng merged commit 8c16e02 into master Feb 13, 2024
57 checks passed
@tompng tompng deleted the fix-source-finder branch February 13, 2024 13:36
matzbot pushed a commit to ruby/ruby that referenced this pull request Feb 13, 2024
(ruby/irb#869)

Currently, if the signature's constant part is not defined, a NameError
would be raised.

```
irb(main):001> show_source Foo
(eval):1:in `<top (required)>': uninitialized constant Foo (NameError)

Foo
^^^
        from (irb):1:in `<main>'
```

This commit fixes the issue and simplifies the `edit` command's implementation.

ruby/irb@8c16e029d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

2 participants