mohkale / vlc-rc

VLC remote control interface for emacs
12 stars 2 forks source link

error using vlc/set-stream-position #1

Open niwaka-ame opened 2 years ago

niwaka-ame commented 2 years ago

Hello! vlc/set-stream-position gives the following error:

Wrong type argument: number-or-marker-p, nil

regardless whether I provide a prefix argument or not. Calling from IELM gives the same error.

I'm using Doom Emacs v21.12.0-alpha and VLC 3.0.16 on Manjaro. Other functionalities (e.g. vlc/play) seem fine.

mohkale commented 2 years ago

@niwaka-ame

Please do M-x toggle-debug-on-error, re-raise the error and then paste a stack-trace.

niwaka-ame commented 2 years ago

@mohkale Thanks! Here it is if I choose "START":

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  vlc/set-stream-position(nil)
  funcall-interactively(vlc/set-stream-position nil)
  call-interactively(vlc/set-stream-position record nil)
  command-execute(vlc/set-stream-position record)
  counsel-M-x-action("vlc/set-stream-position")
  ivy-call()
  ivy-read("M-x " ("vlc/set-stream-position" "toggle-debug-on-error" "ielm" "vlc/pause" "vlc/add-file" "vlc/play" "vlc/stop" "calibredb" "+eval:repl" "helm-bibtex" "org-ref-helm" "indent-region" "org-ref-bibtex" "pdf-tools-install" "insert-parentheses" "vlc/set-video-crop" "evil-collection-elisp-mode-ielm-repl" "cd" "5x5" "amx" "arp" "dbx" "dig" "erc" "ert" "eww" "ftp" "gdb" "irc" "jdb" "man" "mpc" "orc" "orn" "oro" "orp" "oru" "pdb" "pwd" "rsh" "sdb" "vlc" "wos" "xdb" "=rss" "calc" "deft" "diff" "dirs" "ffap" ...) :predicate counsel--M-x-externs-predicate :require-match t :history counsel-M-x-history :action counsel-M-x-action :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910 . counsel-find-symbol)) :initial-input nil :caller counsel-M-x)
  counsel-M-x()
  funcall-interactively(counsel-M-x)
  call-interactively(counsel-M-x nil nil)
  command-execute(counsel-M-x)

Similarly, if I use 1 as prefix argument:

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil)
  vlc/set-stream-position(1)
  funcall-interactively(vlc/set-stream-position 1)
  call-interactively(vlc/set-stream-position record nil)
  command-execute(vlc/set-stream-position record)
  counsel-M-x-action("vlc/set-stream-position")
  ivy-call()
  ivy-read("1 M-x " ("toggle-debug-on-error" "vlc/set-stream-position" "ielm" "vlc/pause" "vlc/add-file" "vlc/play" "vlc/stop" "calibredb" "+eval:repl" "helm-bibtex" "org-ref-helm" "indent-region" "org-ref-bibtex" "pdf-tools-install" "insert-parentheses" "vlc/set-video-crop" "evil-collection-elisp-mode-ielm-repl" "cd" "5x5" "amx" "arp" "dbx" "dig" "erc" "ert" "eww" "ftp" "gdb" "irc" "jdb" "man" "mpc" "orc" "orn" "oro" "orp" "oru" "pdb" "pwd" "rsh" "sdb" "vlc" "wos" "xdb" "=rss" "calc" "deft" "diff" "dirs" "ffap" ...) :predicate counsel--M-x-externs-predicate :require-match t :history counsel-M-x-history :action counsel-M-x-action :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910 . counsel-find-symbol)) :initial-input nil :caller counsel-M-x)
  counsel-M-x()
  funcall-interactively(counsel-M-x)
  call-interactively(counsel-M-x nil nil)
  command-execute(counsel-M-x)