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 exception when exception has nil backtrace #451

Merged
merged 1 commit into from
Mar 15, 2024

Conversation

janbiedermann
Copy link
Contributor

Fixing:

C:/Ruby32-x64/lib/ruby/gems/3.2.0+3/gems/rake-13.0.6/lib/rake/backtrace.rb:21:in `collapse': undefined method `reject' for nil:NilClass (NoMethodError)

      backtrace.reject { |elem| elem =~ pattern }
               ^^^^^^^
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0+3/gems/rake-13.0.6/lib/rake/application.rb:249:in `display_exception_backtrace'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0+3/gems/rake-13.0.6/lib/rake/application.rb:218:in `display_exception_details'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0+3/gems/rake-13.0.6/lib/rake/application.rb:226:in `display_cause_details'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0+3/gems/rake-13.0.6/lib/rake/application.rb:219:in `display_exception_details'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0+3/gems/rake-13.0.6/lib/rake/application.rb:208:in `display_error_message'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0+3/gems/rake-13.0.6/lib/rake/application.rb:195:in `rescue in standard_exception_handling'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0+3/gems/rake-13.0.6/lib/rake/application.rb:185:in `standard_exception_handling'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0+3/gems/rake-13.0.6/lib/rake/application.rb:80:in `run'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0+3/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
        from C:/Ruby32-x64/bin/rake:33:in `load'
        from C:/Ruby32-x64/bin/rake:33:in `<main>'

@hsbt hsbt merged commit a05e1f3 into ruby:master Mar 15, 2024
xjunior referenced this pull request in powerhome/audiences Apr 8, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [rake](https://togithub.com/ruby/rake)
([changelog](https://togithub.com/ruby/rake/blob/v13.2.1/History.rdoc))
| `13.1.0` -> `13.2.1` |
[![age](https://developer.mend.io/api/mc/badges/age/rubygems/rake/13.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/rubygems/rake/13.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/rubygems/rake/13.1.0/13.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/rubygems/rake/13.1.0/13.2.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>ruby/rake (rake)</summary>

### [`v13.2.1`](https://togithub.com/ruby/rake/releases/tag/v13.2.1)

[Compare
Source](https://togithub.com/ruby/rake/compare/v13.2.0...v13.2.1)

#### What's Changed

- Suppressed "<internal:array>:52:in 'Array#each'" from backtrace by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[https://github.com/ruby/rake/pull/554](https://togithub.com/ruby/rake/pull/554)
- Bump actions/configure-pages from 4 to 5 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/ruby/rake/pull/553](https://togithub.com/ruby/rake/pull/553)

**Full Changelog**:
ruby/rake@v13.2.0...v13.2.1

### [`v13.2.0`](https://togithub.com/ruby/rake/releases/tag/v13.2.0)

[Compare
Source](https://togithub.com/ruby/rake/compare/v13.1.0...v13.2.0)

#### What's Changed

- Fix rule example to be correct by
[@&#8203;zenspider](https://togithub.com/zenspider) in
[https://github.com/ruby/rake/pull/525](https://togithub.com/ruby/rake/pull/525)
- Switch to use test-unit by [@&#8203;hsbt](https://togithub.com/hsbt)
in
[https://github.com/ruby/rake/pull/536](https://togithub.com/ruby/rake/pull/536)
- Removed redundant block by [@&#8203;hsbt](https://togithub.com/hsbt)
in
[https://github.com/ruby/rake/pull/537](https://togithub.com/ruby/rake/pull/537)
- Use Struct instead of OpenStruct. by
[@&#8203;hsbt](https://togithub.com/hsbt) in
[https://github.com/ruby/rake/pull/545](https://togithub.com/ruby/rake/pull/545)
- Accept FileList object as directory task's target by
[@&#8203;gemmaro](https://togithub.com/gemmaro) in
[https://github.com/ruby/rake/pull/530](https://togithub.com/ruby/rake/pull/530)
- Fix exception when exception has nil backtrace by
[@&#8203;janbiedermann](https://togithub.com/janbiedermann) in
[https://github.com/ruby/rake/pull/451](https://togithub.com/ruby/rake/pull/451)
- Add TruffleRuby on CI by
[@&#8203;andrykonchin](https://togithub.com/andrykonchin) in
[https://github.com/ruby/rake/pull/551](https://togithub.com/ruby/rake/pull/551)

#### New Contributors

- [@&#8203;zenspider](https://togithub.com/zenspider) made their first
contribution in
[https://github.com/ruby/rake/pull/525](https://togithub.com/ruby/rake/pull/525)
- [@&#8203;gemmaro](https://togithub.com/gemmaro) made their first
contribution in
[https://github.com/ruby/rake/pull/530](https://togithub.com/ruby/rake/pull/530)
- [@&#8203;janbiedermann](https://togithub.com/janbiedermann) made their
first contribution in
[https://github.com/ruby/rake/pull/451](https://togithub.com/ruby/rake/pull/451)
- [@&#8203;andrykonchin](https://togithub.com/andrykonchin) made their
first contribution in
[https://github.com/ruby/rake/pull/551](https://togithub.com/ruby/rake/pull/551)

**Full Changelog**:
ruby/rake@v13.1.0...v13.2.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [x] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/powerhome/audiences).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants