linedit icon indicating copy to clipboard operation
linedit copied to clipboard

After add linedit to .sbclrc slime crash on initialization

Open ryukinix opened this issue 6 years ago • 1 comments

Behavior

(progn (load "/home/lerax/.emacs.d/elpa/slime-20190210.1101/swank-loader.lisp" :verbose t) (funcall (read-from-string "swank-loader:init") :from-emacs t) (funcall (read-from-string "swank:start-server") "/tmp/slime.2766"))

Linedit version 0.17.6, dumb mode, ESC-h for help.

debugger invoked on a SIMPLE-ERROR in thread #<THREAD "main thread" RUNNING {10005205B3}>: BUG: You seem to have found a bug in Linedit.
Please report this incident along with directions to reproduce to
    https://github.com/sharplispers/linedit

'Invariant (LINEDIT::BACKEND-READY-P LINEDIT::BACKEND) violated.'

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [ABORT] Exit debugger, returning to top level.

((:METHOD LINEDIT::BACKEND-CLOSE (LINEDIT::TERMINAL)) #<LINEDIT::DUMB-EDITOR {100269BB03}>) [fast-method]
   source: (INVARIANT (BACKEND-READY-P BACKEND))

Slime side ^ At .sbclrc: http://ix.io/1CgK/lisp

Expected

Works calling sbcl from terminal and from slime.

ryukinix avatar Feb 28 '19 21:02 ryukinix

How about trying this in your .sbclrc?

(when (interactive-stream-p *standard-input*)
  (ql:quickload "linedit")
  (funcall (intern "INSTALL-REPL" :linedit) :wrap-current t))

khirbat avatar Mar 29 '19 04:03 khirbat