Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [Bug #19242] Prohibit circular causes to be loaded | Nobuyoshi Nakada | 2022-12-20 | 1 | -0/+4 |
| | |||||
* | Introduce `IO.new(..., path:)` and promote `File#path` to `IO#path`. (#6867) | Samuel Williams | 2022-12-08 | 1 | -4/+2 |
| | |||||
* | Reuse NIL_OR_UNDEF_P macro | S-H-GAMELINKS | 2022-12-02 | 1 | -1/+1 |
| | |||||
* | [Feature #19138] Add `SyntaxError#path` | Nobuyoshi Nakada | 2022-12-01 | 1 | -10/+28 |
| | |||||
* | Using UNDEF_P macro | S-H-GAMELINKS | 2022-11-16 | 1 | -16/+16 |
| | |||||
* | Fix and improve coroutines for Darwin (macOS) ppc/ppc64. (#5975) | Sergey Fedorov | 2022-10-19 | 1 | -1/+1 |
| | |||||
* | Fix possible use of undefined macros on very old macOS [ci skip] | Nobuyoshi Nakada | 2022-10-17 | 1 | -2/+7 |
| | |||||
* | Reuse `with_warning_string_from` macro | S.H | 2022-10-10 | 1 | -12/+6 |
| | |||||
* | Split `with_warning_string_from` for the last named parameter | Nobuyoshi Nakada | 2022-09-30 | 1 | -1/+3 |
| | |||||
* | Revert "Revert "error.c: Let Exception#inspect inspect its message"" | Yusuke Endoh | 2022-09-23 | 1 | -2/+10 |
| | | | | | | This reverts commit b9f030954a8a1572032f3548b39c5b8ac35792ce. [Bug #18170] | ||||
* | syserr_initialize: delete redundant strerror() declaration | 卜部昌平 | 2022-09-21 | 1 | -3/+0 |
| | | | | | This line issues a warning on clang. strerror is of course a part of ISO C since its dawn. We practically have never needed it. | ||||
* | Introduce with_warn_vsprintf macro | S-H-GAMELINKS | 2022-08-12 | 1 | -27/+22 |
| | |||||
* | Expand tabs [ci skip] | Takashi Kokubun | 2022-07-21 | 1 | -341/+341 |
| | | | | [Misc #18891] | ||||
* | Fix a typo (thanks @Maumagnaguagno !) | Yusuke Endoh | 2022-07-13 | 1 | -1/+1 |
| | |||||
* | Specify usable escape sequences in Exception#detailed_message | Yusuke Endoh | 2022-07-13 | 1 | -0/+22 |
| | | | | | | | | | | | | | | An error message is primarily rendered in a terminal emulator, but is also shown in a browser by converting it to a HTML fragment. However, the conversion would be unreasonably difficult if the message includes any escape sequence (such as cursor move or screen clear). This change adds a guideline about escape sequences in `Exception#detailed_message`: * Use widely-supported escape sequences: bold, underline, and basic eight foreground colors (except white and black). * Make the message readable if all escape sequences are ignored. | ||||
* | Include JIT information in crash reports | Chris Seaton | 2022-06-20 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since enabling YJIT or MJIT drastically changes what could go wrong at runtime, it's good to be front and center about whether they are enabled when dumping a crash report. Previously, `RUBY_DESCRIPTION` and the description printed when crashing can be different when a JIT is on. Introduce a new internal data global, `rb_dynamic_description`, and set it to be the same as `RUBY_DESCRIPTION` during initialization; use it when crashing. * version.c: Init_ruby_description(): Initialize and use `rb_dynamic_description`. * error.c: Change crash reports to use `rb_dynamic_description`. * ruby.c: Call `Init_ruby_description()` earlier. Slightly more work for when we exit right after printing the description but that was deemed acceptable. * include/ruby/version.h: Talk about how JIT info is not in `ruby_description`. * test/-ext-/bug_reporter/test_bug_reporter.rb: Remove handling for crash description being different from `RUBY_DESCRIPTION`. * test/ruby/test_rubyoptions.rb: ditto Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org> Co-authored-by: Alan Wu <alanwu@ruby-lang.org> | ||||
* | Allow to just warn as bool expected, without an exception | Nobuyoshi Nakada | 2022-06-20 | 1 | -1/+1 |
| | |||||
* | [DOC] RDoc now accepts other than magic numbers at `rb_attr` | Nobuyoshi Nakada | 2022-06-08 | 1 | -1/+1 |
| | |||||
* | Revert "error.c: Let Exception#inspect inspect its message" | Yusuke Endoh | 2022-06-07 | 1 | -10/+2 |
| | | | | This reverts commit 9d927204e7b86eb00bfd07a060a6383139edf741. | ||||
* | error.c: Let Exception#inspect inspect its message | Yusuke Endoh | 2022-06-07 | 1 | -2/+10 |
| | | | | | | | | | | | | ... only when the message string has a newline. `p StandardError.new("foo\nbar")` now prints `#<StandardError: "foo\nbar">' instead of: #<StandardError: bar> [Bug #18170] | ||||
* | Use RBOOL | Nobuyoshi Nakada | 2022-06-05 | 1 | -6/+1 |
| | |||||
* | No fallback to default values | Nobuyoshi Nakada | 2022-05-21 | 1 | -3/+2 |
| | |||||
* | Factor a "highlight" symbol out | Yusuke Endoh | 2022-02-22 | 1 | -7/+4 |
| | |||||
* | Let Exception#full_message pass highlight keywords to #detailed_message | Yusuke Endoh | 2022-02-22 | 1 | -0/+7 |
| | | | | .. even when the argument is not explicitly passed. | ||||
* | The default highlight arguments of Exception#detailed_message is false | Yusuke Endoh | 2022-02-22 | 1 | -5/+10 |
| | |||||
* | Exception#detailed_message is added | Yusuke Endoh | 2022-02-22 | 1 | -4/+53 |
| | | | | | | | | | | | Also, the default error printer and Exception#full_message use the method instead of `Exception#message` to get the message string. `Exception#detailed_message` calls `Exception#message`, decorates and returns the result. It adds some escape sequences to highlight, and the class name of the exception to the end of the first line of the message. [Feature #18370] | ||||
* | error.c: Refactoring | Yusuke Endoh | 2022-02-22 | 1 | -32/+60 |
| | | | | | Factor out from rb_error_write the responsibility to check if stderr is a tty. | ||||
* | Don't segfault if Warning.warn is undefined | Jeremy Evans | 2022-01-04 | 1 | -1/+2 |
| | | | | | | | Check that there is a method entry for the method before passing it to rb_method_entry_arity. Fixes [Bug #18458] | ||||
* | Remove tainted and trusted features | Nobuyoshi Nakada | 2021-12-26 | 1 | -13/+0 |
| | | | | Already these had been announced to be removed in 3.2. | ||||
* | Some codes replace to `RBOOL` macro (#5023) | S.H | 2021-11-09 | 1 | -3/+1 |
| | | | | | | | * Some code replace and using RBOOL macro * Fix indent * Using RBOOL in syserr_eqq function | ||||
* | Add `rb_mod_exc_raise` function and replace duplicate code | S.H | 2021-10-30 | 1 | -8/+13 |
| | |||||
* | Using NIL_P macro instead of `== Qnil` | S.H | 2021-10-03 | 1 | -1/+1 |
| | |||||
* | Refactor and Using RBOOL macro | S.H | 2021-09-15 | 1 | -7/+2 |
| | |||||
* | suppress GCC's -Wsuggest-attribute=format | 卜部昌平 | 2021-09-10 | 1 | -0/+5 |
| | | | | I was not aware of this because I use clang these days. | ||||
* | include/ruby/internal/error.h: add doxygen | 卜部昌平 | 2021-09-10 | 1 | -1/+1 |
| | | | | Must not be a bad idea to improve documents. | ||||
* | Show verbose error messages when single pattern match fails | Kazuki Tsujimoto | 2021-08-15 | 1 | -1/+74 |
| | | | | | | | [0] => [0, *, a] #=> [0] length mismatch (given 1, expected 2+) (NoMatchingPatternError) Ignore test failures of typeprof caused by this change for now. | ||||
* | Get rid of unintented recursion when RUBY_DEBUG | Nobuyoshi Nakada | 2021-08-14 | 1 | -1/+1 |
| | |||||
* | Mark internal class names | Nobuyoshi Nakada | 2021-08-14 | 1 | -3/+3 |
| | |||||
* | Add some "cold" marks | Nobuyoshi Nakada | 2021-08-14 | 1 | -3/+3 |
| | |||||
* | A comment for typed data in `rb_check_type` [ci skip] | Nobuyoshi Nakada | 2021-08-14 | 1 | -0/+8 |
| | |||||
* | Using RBOOL macro | S.H | 2021-08-02 | 1 | -5/+3 |
| | |||||
* | Use UNREACHABLE instead of fall through | Kazuhiro NISHIYAMA | 2021-07-20 | 1 | -1/+1 |
| | |||||
* | Add `fall through` | Kazuhiro NISHIYAMA | 2021-07-19 | 1 | -0/+1 |
| | | | | | | | | | Pointed out by Coverity Scan ``` ** CID 1487522: Control flow issues (MISSING_BREAK) /error.c: 1273 in exc_full_message() ``` | ||||
* | Make boolean expected messages more consitent | Nobuyoshi Nakada | 2021-07-18 | 1 | -2/+1 |
| | |||||
* | Specify version to remove as bare numbers | Nobuyoshi Nakada | 2021-06-30 | 1 | -2/+2 |
| | |||||
* | Show the removal version | Nobuyoshi Nakada | 2021-06-30 | 1 | -5/+7 |
| | |||||
* | rb_warn_deprecated_to_remove_at [Feature #17432] | Nobuyoshi Nakada | 2021-06-30 | 1 | -16/+31 |
| | | | | | At compilation time with RUBY_DEBUG enabled, check if the removal version has been reached. | ||||
* | Fix example for custom warn method | Adam Daniels | 2021-04-30 | 1 | -1/+1 |
| | | | | | | Regexp has a match? method. [ci skip] | ||||
* | Remove unneeded rb_ident_hash_new function declaration | S-H-GAMELINKS | 2021-03-28 | 1 | -1/+0 |
| | |||||
* | Fix segmentation fault when `Module#name` returns non string value [Bug #17754] | Kenichi Kamiya | 2021-03-28 | 1 | -1/+3 |
| | | | | | * Add test for NoMethodError#to_s does not segfault * Ensure no segfault even if Module#name is overridden |