Red Hat Bugzilla – Bug 984211
fpaste -l doesn't work with the new paste.fedoraproject.org
Last modified: 2013-10-11 03:20:49 EDT
Description of problem:
fpaste -l 'ruby' doesn't work
Version-Release number of selected component (if applicable):
cat hello.rb | fpaste -l ruby
cat hello.rb | fpaste -l rb
it complains about not knowing what "ruby" is and, when one chooses rb, paste.fedoraproject.org doesn't highlight it.
But, when you set Ruby @ paste.fedoraproject.org as the language, it works fine.
It should work and support all the paste.fedoraproject.org languages.
We did not check 'validSyntaxOpts' list and 'ext2lang_map' mapping, when we moved to the new pastebin server, they still use the old values.
Il'll attach valid file type/syntax highlighting values in a moment.
Created attachment 773206 [details]
A patch to fix syntax highlighting
I've attached a patch to fix this issue.
$ cat f.rb | ./fpaste.syn-patch -l ruby
http://ur1.ca/emwl7 -> http://paste.fedoraproject.org/25170/37376261
File type detection also fixed:
]$ fpaste.syn-patch f.rb
http://ur1.ca/emwm1 -> http://paste.fedoraproject.org/25172/73762746
That was fast, dude. When can we expect the update? ;)
(In reply to Renich Bon Ciric from comment #4)
> That was fast, dude. When can we expect the update? ;)
If I find the time, tomorrow ;)
Thanks for the patch Athmane. Can you please open a ticket upstream too, so that they have a copy of the patch too? https://fedorahosted.org/fpaste
We're carrying a patch in Fedora and the issue has been reported upstream. Closing