camillo / TerminatorPlugins

A set of plugins for terminator.
57 stars 15 forks source link

The log is now on one line (no LF characters) #9

Open jringoot opened 7 years ago

jringoot commented 7 years ago

I have include the output of teminator -d. You will see errors concerning the plugin, like this one:

TypeError: writelines() argument must be a sequence of strings Traceback (most recent call last): File "/home/joost/.config/terminator/plugins/TerminalExporter.py", line 175, in log_notify output_file.writelines(content) terminator-d.txt

jringoot commented 7 years ago

I tested the new plugins on debian 9, (where terminator is now also version 1.90), and I have a similar issue: The exports seem to be full of extra debugging info and don't have any linefeeds

example: ('userone@computer-02:~$ test\nuserone@computer-02:~$ ets\nbash: ets: opdracht niet gevonden\nuserone@computer-02:~$ ', attributes=[<Vte.CharAttributes object at 0x7f1a0857faa0 (void at 0x55e658c2ed50)>, <Vte.CharAttributes object at 0x7f1a0857faf8 (void at 0x55e658c2ed80)>, <Vte.CharAttributes object at 0x7f1a0857fb50 (void at 0x55e659040fe0)>, <Vte.CharAttributes object at 0x7f1a0857fba8 (void at 0x55e658fc37c0)>, <Vte.CharAttributes object at 0x7f1a0857fc00 (void at 0x55e658fbba60)>, <Vte.CharAttributes object at 0x7f1a0857fc58 (void at 0x55e658b89010)>, <Vte.CharAttributes object at 0x7f1a0857fcb0 (void at 0x55e658b8a0d0)>, <Vte.CharAttributes object at 0x7f1a0857fd08 (void at 0x55e6590513c0)>, <Vte.CharAttributes object at 0x7f1a0857fd60 (void at 0x55e658fa46c0)>, <Vte.CharAttributes object at 0x7f1a0857fdb8 (void at 0x55e658b88d70)>, <Vte.CharAttributes object at 0x7f1a0857fe10 (void at 0x55e659067850)>, <Vte.CharAttributes object at 0x7f1a0857fe68 (void at 0x55e658f0d7c0)>, <Vte.CharAttributes object at 0x7f1a0857fec0 (void at 0x55e658b8a5c0)>, <Vte.CharAttributes object at 0x7f1a0857ff18 (void at 0x55e658c2edb0)>, <Vte.CharAttributes object at 0x7f1a0857ff70 (void at 0x55e658b39ba0)>, <Vte.CharAttributes object at 0x7f1a0857ffc8 (void at 0x55e658b39bd0)>, <Vte.CharAttributes object at 0x7f1a08614050 (void at 0x55e658b85d80)>, <Vte.CharAttributes object at 0x7f1a086140a8 (void at 0x55e658b85db0)>, <Vte.CharAttributes object at 0x7f1a08614100 (void at 0x55e658b789a0)>, <Vte.CharAttributes object at 0x7f1a08614158 (void at 0x55e658b789d0)>, <Vte.CharAttributes object at 0x7f1a086141b0 (void at 0x55e658b90fa0)>, <Vte.CharAttributes object at 0x7f1a08614208 (void at 0x55e658b90fd0)>, <Vte.CharAttributes object at 0x7f1a08614260 (void at 0x55e658b3a5a0)>, <Vte.CharAttributes object at 0x7f1a086142b8 (void at 0x55e658b3a5d0)>, <Vte.CharAttributes object at 0x7f1a08614310 (void at 0x55e658beb190)>, <Vte.CharAttributes object at 0x7f1a08614368 (void at 0x55e658beb1c0)>, <Vte.CharAttributes object at 0x7f1a086143c0 (void at 0x55e65903b9f0)>, <Vte.CharAttributes object at 0x7f1a08614418 (void at 0x55e65903ba20)>, <Vte.CharAttributes object at 0x7f1a08614470 (void at 0x55e658b3a000)>, <Vte.CharAttributes object at 0x7f1a086144c8 (void at 0x55e658b3a030)>, <Vte.CharAttributes object at 0x7f1a08614520 (void at 0x55e658b3a060)>, <Vte.CharAttributes object at 0x7f1a08614578 (void at 0x55e658b3a090)>, <Vte.CharAttributes object at 0x7f1a086145d0 (void at 0x55e6590409c0)>, <Vte.CharAttributes object at 0x7f1a08614628 (void at 0x55e6590409f0)>, <Vte.CharAttributes object at 0x7f1a08614680 (void at 0x55e659040a20)>, <Vte.CharAttributes object at 0x7f1a086146d8 (void at 0x55e659040a50)>, <Vte.CharAttributes object at 0x7f1a08614730 (void at 0x55e659040a80)>, <Vte.CharAttributes object at 0x7f1a08614788 (void at 0x55e659040ab0)>, <Vte.CharAttributes object at 0x7f1a086147e0 (void at 0x55e658b35ab0)>, <Vte.CharAttributes object at 0x7f1a08614838 (void at 0x55e658b35ae0)>, <Vte.CharAttributes object at 0x7f1a08614890 (void at 0x55e658b35b10)>, <Vte.CharAttributes object at 0x7f1a086148e8 (void at 0x55e658b35b40)>, <Vte.CharAttributes object at 0x7f1a08614940 (void at 0x55e658b35b70)>, <Vte.CharAttributes object at 0x7f1a08614998 (void at 0x55e658b35ba0)>, <Vte.CharAttributes object at 0x7f1a086149f0 (void at 0x55e658b35bd0)>, <Vte.CharAttributes object at 0x7f1a08614a48 (void at 0x55e658b22090)>, <Vte.CharAttributes object at 0x7f1a08614aa0 (void at 0x55e658b220c0)>, <Vte.CharAttributes object at 0x7f1a08614af8 (void at 0x55e658b220f0)>, <Vte.CharAttributes object at 0x7f1a08614b50 (void at 0x55e658b22120)>, <Vte.CharAttributes object at 0x7f1a08614ba8 (void at 0x55e658b22150)>, <Vte.CharAttributes object at 0x7f1a08614c00 (void at 0x55e658b22180)>, <Vte.CharAttributes object at 0x7f1a08614c58 (void at 0x55e658b221b0)>, <Vte.CharAttributes object at 0x7f1a08614cb0 (void at 0x55e658b42e00)>, <Vte.CharAttributes object at 0x7f1a08614d08 (void at 0x55e658b42e30)>, <Vte.CharAttributes object at 0x7f1a08614d60 (void at 0x55e658b42e60)>, <Vte.CharAttributes object at 0x7f1a08614db8 (void at 0x55e658b42e90)>, <Vte.CharAttributes object at 0x7f1a08614e10 (void at 0x55e658b42ec0)>, <Vte.CharAttributes object at 0x7f1a08614e68 (void at 0x55e658b42ef0)>, <Vte.CharAttributes object at 0x7f1a08614ec0 (void at 0x55e658b42f20)>, <Vte.CharAttributes object at 0x7f1a08614f18 (void at 0x55e658b42f50)>, <Vte.CharAttributes object at 0x7f1a08614f70 (void at 0x55e658b42f80)>, <Vte.CharAttributes object at 0x7f1a08614fc8 (void at 0x55e658b42fb0)>, <Vte.CharAttributes object at 0x7f1a08615050 (void at 0x55e658b5d5f0)>, <Vte.CharAttributes object at 0x7f1a086150a8 (void at 0x55e658b5d620)>, <Vte.CharAttributes object at 0x7f1a08615100 (void at 0x55e658b5d650)>, <Vte.CharAttributes object at 0x7f1a08615158 (void at 0x55e658b5d680)>, <Vte.CharAttributes object at 0x7f1a086151b0 (void at 0x55e658b5d6b0)>, <Vte.CharAttributes object at 0x7f1a08615208 (void at 0x55e658b5d6e0)>, <Vte.CharAttributes object at 0x7f1a08615260 (void at 0x55e658b5d710)>, <Vte.CharAttributes object at 0x7f1a086152b8 (void at 0x55e658b5d740)>, <Vte.CharAttributes object at 0x7f1a08615310 (void at 0x55e658b5d770)>, <Vte.CharAttributes object at 0x7f1a08615368 (void at 0x55e658b5d7a0)>, <Vte.CharAttributes object at 0x7f1a086153c0 (void at 0x55e658b5d7d0)>, <Vte.CharAttributes object at 0x7f1a08615418 (void at 0x55e658b5e3c0)>, <Vte.CharAttributes object at 0x7f1a08615470 (void at 0x55e658b5e3f0)>, <Vte.CharAttributes object at 0x7f1a086154c8 (void at 0x55e658b5e420)>, <Vte.CharAttributes object at 0x7f1a08615520 (void at 0x55e658b5e450)>, <Vte.CharAttributes object at 0x7f1a08615578 (void at 0x55e658b5e480)>, <Vte.CharAttributes object at 0x7f1a086155d0 (void at 0x55e658b5e4b0)>, <Vte.CharAttributes object at 0x7f1a08615628 (void at 0x55e658b5e4e0)>, <Vte.CharAttributes object at 0x7f1a08615680 (void at 0x55e658b5e510)>, <Vte.CharAttributes object at 0x7f1a086156d8 (void at 0x55e658b5e540)>, <Vte.CharAttributes object at 0x7f1a08615730 (void at 0x55e658b5e570)>, <Vte.CharAttributes object at 0x7f1a08615788 (void at 0x55e658b5e5a0)>, <Vte.CharAttributes object at 0x7f1a086157e0 (void at 0x55e658b5e5d0)>, <Vte.CharAttributes object at 0x7f1a08615838 (void at 0x55e658b43400)>, <Vte.CharAttributes object at 0x7f1a08615890 (void at 0x55e658b43430)>, <Vte.CharAttributes object at 0x7f1a086158e8 (void at 0x55e658b43460)>, <Vte.CharAttributes object at 0x7f1a08615940 (void at 0x55e658b43490)>, <Vte.CharAttributes object at 0x7f1a08615998 (void at 0x55e658b434c0)>, <Vte.CharAttributes object at 0x7f1a086159f0 (void at 0x55e658b434f0)>, <Vte.CharAttributes object at 0x7f1a08615a48 (void at 0x55e658b43520)>, <Vte.CharAttributes object at 0x7f1a08615aa0 (void at 0x55e658b43550)>, <Vte.CharAttributes object at 0x7f1a08615af8 (void at 0x55e658b43580)>, <Vte.CharAttributes object at 0x7f1a08615b50 (void at 0x55e658b435b0)>, <Vte.CharAttributes object at 0x7f1a08615ba8 (void at 0x55e658b435e0)>, <Vte.CharAttributes object at 0x7f1a08615c00 (void at 0x55e658b43610)>, <Vte.CharAttributes object at 0x7f1a08615c58 (void at 0x55e658b43640)>, <Vte.CharAttributes object at 0x7f1a08615cb0 (void at 0x55e658b43670)>, <Vte.CharAttributes object at 0x7f1a08615d08 (void at 0x55e658b436a0)>, <Vte.CharAttributes object at 0x7f1a08615d60 (void at 0x55e658b436d0)>, <Vte.CharAttributes object at 0x7f1a08615db8 (void at 0x55e658b43700)>, <Vte.CharAttributes object at 0x7f1a08615e10 (void at 0x55e658b43730)>])

jringoot commented 7 years ago

@camillo I have now terminator 1.91 installed and TerminalExporter.py on debian 9. I still have those useless exports, full of "<Vte.CharAttributes object at 0x7f4e64084158 (void at 0x55d23f4649b0)>" style.

which versions do you use actually? BTW: I noticed that the headers of the current TerminalExporter.py, is this:

`

==> TerminalExporter.py <== """ Created on May 6, 2012

@author: Daniel Marohn """ `

Is that correct?