summaryrefslogtreecommitdiff
path: root/lib/error_highlight
AgeCommit message (Collapse)Author
2022-01-04[ruby/error_highlight] Fix the spurious TypeError.Christian Boos
When we have no backtrace locations, we can't have the highlight, so just return the message. https://github.com/ruby/error_highlight/commit/9f5c639494
2021-12-23[ruby/error_highlight] Bump versionYusuke Endoh
https://github.com/ruby/error_highlight/commit/ae3053686f
2021-12-19Manually sync ↵Yusuke Endoh
https://github.com/ruby/error_highlight/commit/d2140d795ad0a06398db81739201877d431755db
2021-12-19Make RubyVM::AbstractSyntaxTree.of raise for backtrace location in evalYusuke Endoh
This check is needed to fix a bug of error_highlight when NameError occurred in eval'ed code. https://github.com/ruby/error_highlight/pull/16 The same check for proc/method has been already introduced since 64ac984129a7a4645efe5ac57c168ef880b479b2.
2021-11-30[ruby/error_highlight] Ignore all syscall errorsYusuke Endoh
At least, Error::ENOTSUP may be raised on some extreme environments https://github.com/ruby/error_highlight/commit/2787983ff7
2021-10-27[ruby/error_highlight] Make the formatter mechanism support RactorYusuke Endoh
Now the formatter configuration is per Ractor. DefaultFormatter is used if not set. DefaultFormatter#message_for is now a class method to allow sub-Ractors to call the method. https://github.com/ruby/error_highlight/commit/9fbaa8ab7c
2021-08-20ast.c: Rename "save_script_lines" to "keep_script_lines"Yusuke Endoh
... as per ko1's preference. He is preparing to extend this feature to ISeq for his new debugger. He prefers "keep" to "save" for this wording. This API is internal and not included in any released version, so I change it in advance.
2021-07-31[ruby/error_highlight] Keep it work if paren exists after receiverMasataka Pocke Kuwabara
https://github.com/ruby/error_highlight/commit/b79d679bbd
2021-07-13[ruby/error_highlight] Support a file that has no final newlineYusuke Endoh
https://github.com/ruby/error_highlight/commit/9d671284cb
2021-07-13[ruby/error_highlight] Support hard tabsYusuke Endoh
Now, the highlight line is created by replacing non-tab characters with spaces, and keeping all hard tabs as-is. This means the highlight line has the completely same indentation as the code snippet line. Fixes #7 https://github.com/ruby/error_highlight/commit/38f20fa542
2021-07-12[ruby/error_highlight] Stop showing a code snippet if it has non-ascii ↵Yusuke Endoh
characters See https://github.com/ruby/error_highlight/issues/4 https://github.com/ruby/error_highlight/commit/c20efd3961
2021-07-02[ruby/error_highlight] Suppress SyntaxError during RubyVM::AST.ofYusuke Endoh
When the original source code is erb, RubyVM::AST.of does not work well. https://github.com/rails/rails/issues/42678. https://github.com/ruby/error_highlight/commit/b1572761a6
2021-06-30[ruby/error_highlight] Allow the development version (= master branch) of ↵Yusuke Endoh
Ruby 3.1 https://github.com/ruby/error_highlight/commit/2dca1446c9
2021-06-30Add the gemspec for error_highlightYusuke Endoh
2021-06-30[ruby/error_highlight] Bump versionYusuke Endoh
https://github.com/ruby/error_highlight/commit/8d483c251e
2021-06-30[ruby/error_highlight] Reconsider the API of ErrorHighlight.spotYusuke Endoh
https://github.com/ruby/error_highlight/commit/acb2046a82
2021-06-30[ruby/error_highlight] Experimentally support a custom formatterYusuke Endoh
https://github.com/ruby/error_highlight/commit/f40a1de20e
2021-06-30[ruby/error_highlight] Add some commentsYusuke Endoh
https://github.com/ruby/error_highlight/commit/e0c90c72c3
2021-06-29Rename error_squiggle to error_highlightYusuke Endoh
Notes: Merged: https://github.com/ruby/ruby/pull/4586