pygments / pygments.rb

💎 Ruby wrapper for Pygments syntax highlighter
MIT License
572 stars 141 forks source link

resolves #130 rely on shebang for finding and error reporting #211

Closed slonopotamus closed 3 years ago

slonopotamus commented 3 years ago

Now if user doesn't have Python in PATH, they'll get something like:

/home/runner/work/pygments.rb/pygments.rb/lib/pygments/popen.rb:328:in `rescue in mentos': Broken pipe: /usr/bin/env: ‘python3’: No such file or directory (MentosError)
    from /home/runner/work/pygments.rb/pygments.rb/lib/pygments/popen.rb:293:in `mentos'
    from /home/runner/work/pygments.rb/pygments.rb/lib/pygments/popen.rb:155:in `lexers!'
    from /opt/hostedtoolcache/Ruby/2.3.8/x64/lib/ruby/2.3.0/forwardable.rb:202:in `lexers!'
    from cache-lexers.rb:6:in `<main>'