I wrote a lexer for pygments and it works well from the console. However when I use TeXShop or TeXworks I get the following error:
(/usr/local/texlive/2012/texmf-dist/tex/latex/ae/omsaer.fd)Error: no lexer for alias 'modeljoin' found (./thesis.out.pyg)
this is really strange, because pygmentize -L lexers shows the lexer and using pdflatex generates the minted code.
I'm using python 2.7, pdfTeX V3.1415926-2.4-1.40.13