Description of problem: fpaste -l 'ruby' doesn't work Version-Release number of selected component (if applicable): current How reproducible: cat hello.rb | fpaste -l ruby cat hello.rb | fpaste -l rb Actual results: 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. Expected results: It should work and support all the paste.fedoraproject.org languages. Additional info:
Hi Ankur, 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. Testing: $ cat f.rb | ./fpaste.syn-patch -l ruby Uploading (0.7KiB)... http://ur1.ca/emwl7 -> http://paste.fedoraproject.org/25170/37376261
File type detection also fixed: ]$ fpaste.syn-patch f.rb Uploading (0.7KiB)... 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 Thanks, Warm regards, Ankur
We're carrying a patch in Fedora and the issue has been reported upstream. Closing
*sigh*