terminal_markdown_viewer
terminal_markdown_viewer copied to clipboard
NameError: name 'unichr' is not defined
unichr error has returned.
$:mdv --help
Output:
Option parsing error
...
File "/usr/local/Cellar/mdv/1.6.3_1/libexec/lib/python3.7/site-packages/mdv/markdownviewer.py", line 624, in replace_links cur += '%s ' % unichr(link_start_ord + cur_link) NameError: name 'unichr' is not defined
In Python 3 unichr is not defined. chr should be used instead.
https://stackoverflow.com/a/2352047/2227405
That should be cover avoided by this check but I'm getting the same error. https://github.com/axiros/terminal_markdown_viewer/blob/80f333ba51dc2f1dfa854e203d3374a112aecbd3/mdv/markdownviewer.py#L346-L347
I just got this error:
File "/usr/local/Cellar/mdv/1.6.3_1/libexec/lib/python3.7/site-packages/mdv/markdownviewer.py", line 624, in replace_links
cur += '%s ' % unichr(link_start_ord + cur_link)
- deleted and reinstalled and still broken
- change unichr to char, ie vim, and all worked
according to rg unichr /usr/local/Cellar/mdv/1.6.3_1/libexec/lib/python3.7/site-packages/mdv the one instance I edited was the only instance there, one change and 0 other hits. maybe a release would fix this
rg unichr /usr/local/Cellar/mdv/1.6.3_1/libexec/lib/python3.7/site-packages/mdv
@ms4720 What is rg?
Rust grep I think, enhanced look through a directory tree of files grep
Brew info rg will get you the home page on a mac
rg = ripgrep (BurntSushi/ripgrep)
released, should be fixed.