syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.64k stars 4.89k forks source link

Bug in idris layer: Wrong type argument when loading file. #11097

Closed jsoo1 closed 4 years ago

jsoo1 commented 6 years ago

Description :octocat:

error in process filter: idris-filename-to-load: Wrong type argument: stringp, nil error in process filter: Wrong type argument: stringp, nil

This causes long delays in opening the holes buffer.

Reproduction guide :beetle:

Observed behaviour: :eyes: :broken_heart: See the wrong type argument error in messages. Holes buffer takes a few seconds to load.

Expected behaviour: :heart: :smile: Fast holes buffer pops up with no error.

System Info :computer:

Backtrace :paw_prints:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  file-name-directory(nil)
  idris-filename-to-load()
  idris-update-loaded-region(nil)
  #f(compiled-function (result) #<bytecode 0x415eb15d>)(nil)
  #f(compiled-function (result) #<bytecode 0x415eb191>)(nil)
  funcall(#f(compiled-function (result) #<bytecode 0x415eb191>) nil)
  (progn (set-buffer (symbol-value G11)) (funcall (symbol-value G12) result))
  (if (symbol-value G12) (progn (set-buffer (symbol-value G11)) (funcall (symbol-value G12) result)))
  (let* ((--cl-rest-- rand-8) (result (if (= (length --cl-rest--) 1) (car --cl-rest--) (signal 'wrong-number-of-arguments (list nil (length --cl-rest--)))))) (if (symbol-value G12) (progn (set-buffer (symbol-value  ;; ... elided

Additional information

Setting :noselect t for the idris buffers in idris/pre-init-popwin fixes the issue. I reported upstream in https://github.com/idris-hackers/idris-mode/issues/423 .

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!