Pistos / diakonos

Diakonos is a console text editor for the masses.
https://git.sr.ht/~pistos/diakonos
Other
137 stars 11 forks source link

Error on delete line #26

Closed pavlovt closed 10 years ago

pavlovt commented 12 years ago

Hi,

I received the following error on delete and strore line (ctrl+d ctrl+d):

Diakonos Error:

NoMethodError: undefined method `add_clip' for nil:NilClass

Probable Causes:


If you can reproduce this error, please report it at

https://github.com/Pistos/diakonos/issues !

/usr/lib/ruby/1.9.1/diakonos/functions/clipboard.rb:28:in delete_and_store_line' eval:1:inprocess_keystroke' /usr/lib/ruby/1.9.1/diakonos/keying.rb:327:in eval' /usr/lib/ruby/1.9.1/diakonos/keying.rb:327:inprocess_keystroke' /usr/lib/ruby/1.9.1/diakonos/keying.rb:343:in process_keystroke' /usr/lib/ruby/1.9.1/diakonos.rb:388:instart' /usr/bin/diakonos:6:in `

'

Pistos commented 12 years ago

Hi. Thanks for reporting. Your steps to reproduce don't produce an error for me. What is your value for the clipboard.external configuration setting?

pavlovt commented 12 years ago

Hi, Thank you for your response. All my clipboard.external settings ware disabled. Now I enabled "clipboard.external xclip" and installed xclip application (I don't use XWindow - just console) but when I try to delete a line (ctrl+d ctrl+d) I receive the same error I mentioned above.

Pistos commented 12 years ago

Hi. I tested this with a new user, a fresh Diakonos installation, in a non-xorg TTY/console. I ran into no problems. Press F11 and it will show you all the configuration files loaded. Review them all, and make sure you have no clipboard settings defined in there that should not be.

pavlovt commented 12 years ago

Hi, and thank you for your help. I was using Diakonos 0.8.14 - now installed 0.9 and still have problem but maybe it is more clear. When I press crtl-d ctrl-d the line disappears and in it's place I see the following error: Error: Can't open display: (null)dows (unless using Cygwin). Maybe the program thinks that I am using XWindow?

I don't see anything denied when I press F11:

About Diakonosn display: (null)

Licence: MIT Licence Copyright: Copyright (c) 2004-2012 Pistos

Version

                             Error: Can't open display: (null)

Version: 0.9.0 Code Date: July 31, 2011 Install Time: 2012-09-23 09:31:13 +0300

Paths

Home dir: /root/.diakonos

Installation

Prefix: /usr Executable dir: /usr/bin Help dir: /usr/share/diakonos/help System config dir: /etc System library dir: /usr/local/lib/site_ruby/1.9.1

Configuration Files

/etc/diakonos.conf /root/.diakonos/diakonos.conf

Extensions

Pistos commented 12 years ago

Could you try a fresh installation under a new, temporary Linux user, or perhaps on another server or computer? Diakonos has no reliance on XWindows, unless you explicitly specify an external clipboard. Could you go to https://gist.github.com and paste the contents of both your configuration files (assuming there is no sensitive content, such as passwords)?