lucasmazza / copy-as-rtf

A package to export highlighted code as RTF
Other
19 stars 14 forks source link

Error calling pygmentize. Error no lexer for alias 'elm' found. #29

Closed puruzio closed 8 years ago

puruzio commented 8 years ago

Getting the above error when trying to use copy-as-rtf inside Atom.

In the terminal command line, pygmentize -l elm my_elm_file.elm prints the file with proper syntax highlighting. But I keep getting the same lexer error in Atom. I'm wondering if the Atom package (0.9.3) is outdated?

Below is some info about my laptop. OS X El Capitan Version 10.11.3

Python 2.7.10 :: Anaconda 2.4.0 (x86_64)

Thanks for your help in advance.

ora726 commented 8 years ago

Hi Puruzio, I have the same problem but noted this distinction : If I copy a text that is already hi-lighted then no problem, the package work as expected If I copy text using ALT+r from a file that has no hi-lights (For example plain text) then I get your same error. Seem the code is unable to operate on plain text while copying html or js or something else works

I am on OSX El Capitain 10.11.4 Atom is 1.60

For now I just use the normal copy/paste when copying from not hi-lighted sources. Hope this help .

-R

OvermindDL1 commented 8 years ago

Same error, what @ora726 says makes no difference, get the Error no lexer for alias 'elm' found every time.

steak3 commented 8 years ago

30