Closed mraible closed 7 years ago
Same here. Some kind of feedback/resolution would be nice.
I think the mapping within copy-as-rtf/lib/grammar-mapping.coffee is incorrect. Assuming the values are Pygments, as the comments suggest, then "Bash" is not the correct value recognized by Pygments and that must be why the error is occurring.
Looking at http://pygments.org/languages/
, it's possible it should be called "Bash shell scripts".
It's worth noting that the value associated with Python in the mapping matches the website above and alt + r
does not product the same error when copying from a .py file and successfully copies to my destination.
Hi, I have just faced the same issue, it would be nice to know where the typescript lexer can be installed.
Thx in advance.
Are you all in OSX? Which is the file extension? .ts? .typescript? I have this in Windows:
Typescript lexer was introduced in pygments v1.6 (http://pygments.org/docs/lexers/). Checking the dependencies versions could be a hint.
Updating pygments to 2.1.3 did not help on OSX :-(
@ziroplu how did you proceed?
I'm getting the same error as @steak3 using the latest version of Atom and pygments on Window 10.
Similar error attempting to copy from processing sketches (via the processing-language package)
Copy-as-rtf 0.9.3, Atom 1.9.9, OSX 10.10.5
The Pull request i have just refrenced adds in a fix for the lexer issue that i and a few freinds have noticed with bash. It has been tested on MacOS and Windows thus far.
Any plans for this to be merged/released?
Facing the same issue with a TypeScript file on windows! Error-
Error calling pygmentize
: Error: no lexer for alias 'typescript' found
I have the same issue:
here is my computer:
Any fixes?
Added TypeScript
to the .atom/packages/copy-as-rtf/lib/grammar-mapping.coffee
file.
Added "TypeScript": "TypeScript"
to the .atom/packages/copy-as-rtf/node_modules/pygmentize-bundled/vendor/pygments/build-2.7/pygments/lexers/_lassobuiltins.py
file
Now I can copy .ts
files as rtf! (I know it is using the js lexer, but for right now that is good enough for me!)
Still not working for you?
I also did these steps before those when trying to fix it. I don't think they are related, but if the above steps don't work for you, you should try these:
python
on your machine (I use homebrew and already had it installed) http://cl.nicoll.co/kfRW.bashrc
(I use ohmyzsh
so I added mine to .zshrc
)
• If you already have a PATH
variable being exported, concat this to what you already have with a :
export PATH="$HOME/.rbenv/bin:/usr/local/Cellar/node/5.1.0/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/alyssanicoll/Downloads/mongodb-osx-x86_64-3.2.1/bin:$PATH:/usr/local/bin:/usr/local/lib/python2.7"
• otherwise simply add this line: export PATH="/usr/local/bin:/usr/local/lib/python2.7"
I had this problem with gemfile. The answer is to pick one of the values off of the list here. So in my case, I added this line:
"Gemfile": "ruby"
to .atom/packages/copy-as-rtf/lib/grammar-mapping.coffee
. This works as ruby
is a lexer type, whereas Gemfile
is not.
I'm using Atom 1.7.1 on OS X El Capitan, version 10.11.4 (15E65). When I try to copy Typescript code to RTF, the following error pops up in the top right corner.