You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.
When opening an issue with a message that has code in backticks, ghi behaves just as expected
ghi open --message "Issue titleIssue body with \`some code\`.End example."#7: Issue title
@vitorgalvao opened this issue 0 seconds ago. open
Issue body with some code .
End example.
Opened on vitorgalvao/tmp.
$ ghi open --message "Issue titleIssue body with \`some code\`.\`\`\`And here we havea fenced code block\`\`\`End example."
/Users/vitor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- pygments (LoadError) from /Users/vitor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/local/bin/ghi:1794:in `highlighter' from /usr/local/bin/ghi:1526:in `highlight'
from /usr/local/bin/ghi:2313:in `block in format_markdown' from /usr/local/bin/ghi:2312:in `gsub!' from /usr/local/bin/ghi:2312:in `format_markdown' from /usr/local/bin/ghi:1948:in `indent'
from (erb):10:in `format_issue' from /Users/vitor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/erb.rb:864:in `eval' from /Users/vitor/.rubies/ruby-2.3.0/lib/ruby/2.3.0/erb.rb:864:in `result' from /usr/local/bin/ghi:2058:in `format_issue'
from /usr/local/bin/ghi:4171:in `execute' from /usr/local/bin/ghi:2762:in `execute' from /usr/local/bin/ghi:91:in `execute' from /usr/local/bin/ghi:4285:in `<main>'
Now, it is important to note that ghi succeeds in opening the issue correctly, everything works correctly there. It is just the displaying to the CLI part that gets screwed.
Not even sure this is as issue for you. Is ghi the culprit, or pygments?
The text was updated successfully, but these errors were encountered:
Can you run gem install pygments? What happens when you do?
Oh, right, I had done so but forgot to post the output.
$ gem install pygments
ERROR: Could not find a valid gem 'pygments' (>= 0) in any repository
ERROR: Possible alternatives: pigments, rygments, segments, pigment, rb-pygments
However, by looking at #221, I saw that the correct command was gem install pygments.rb. That worked, and solved the issue.
Shouldn’t this still be considered a bug, though? ghi should install pygments.rb if not installed, or at least warn about it instead of spewing the error message. I’ve installed ghi from the homebrew formula, if that makes a difference.
When opening an issue with a message that has code in backticks,
ghi
behaves just as expectedHowever, if the message has a fenced code block, it errors out.
Now, it is important to note that
ghi
succeeds in opening the issue correctly, everything works correctly there. It is just the displaying to the CLI part that gets screwed.Not even sure this is as issue for you. Is
ghi
the culprit, orpygments
?The text was updated successfully, but these errors were encountered: