lucasmazza / copy-as-rtf

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

Fixed python error in script. #36

Closed knightzac19 closed 3 years ago

knightzac19 commented 7 years ago

Adjusted script to use more python code from original Sublime plugin. It now properly copies the data out and doesn't cause a fatal error in python.

asmundstavdahl commented 7 years ago

Does not work for me. Atom 1.10.2, Ubuntu 16.04

knightzac19 commented 7 years ago

This fix was for windows users only, for linux it uses the native copy function of the node plugin.

icetee commented 7 years ago

I use Windows 10, but not solved problem.

Install method: apm install https://github.com/knightzac19/copy-as-rtf

Atom versions

Atom    : 1.11.2
Electron: 0.37.8
Chrome  : 49.0.2623.75
Node    : 5.10.0

Apm versions

apm  1.12.5
npm  3.10.5
node 4.4.5
python 3.5.2
git 2.8.2.windows.1

No add document / selected code to clipboard.

knightzac19 commented 7 years ago

@icetee , How did you attempt to copy it? Also, I'm pretty certain you need python 2.7, not 3x.

icetee commented 7 years ago

@knightzac19 , I remove 3x, and install 2.7. Still not good!

I select source code and press second mouse click > Copy as RTF. I tired shortcuts and Packages commands, but not work. Console empty.

Apm versions

apm  1.12.5
npm  3.10.5
node 4.4.5
python 2.7.11
git 2.8.2.windows.1

Update: Sorry, I tired Javascript not HTML. HTML copy good.

andhikaerka commented 7 years ago

Still not work. I'am using Windows 10, Atom 1.12.5, Python 2.7 and set up a environment variable PATH, but still not working. It doesn't copied anything. I just selected the text and run alt + r or click right and Copy as RTF, but just show nothing. please help

altavir commented 7 years ago

Does not work for me. Windows 10, Atom 1.12.6, Python 3.5.1 (Anaconda).

Python is evil!