Skip to content

Fix SourceFinder's constant evaluation issue - #869

Merged
tompng merged 1 commit into
masterfrom
fix-source-finder
Feb 13, 2024
Merged

tompng merged 1 commit into
masterfrom
fix-source-finder

Conversation

@st0012

@st0012 st0012 commented Feb 12, 2024

Copy link
Copy Markdown
Member

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
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants