Doom-emacs: (wong-type-argument-arrayp-changes:)

Created on 27 Jul 2020  路  10Comments  路  Source: hlissner/doom-emacs

What did you expect to happen?
...
get doom emacs run with org-roam normally, following the instructions mentioned below at
https://org-roam.readthedocs.io/en/master/installation/

in init.el

(doom!
      ...
      :lang
       (org +roam)
      ...
)

in config.el

(use-package! org-roam
      :hook
      (after-init . org-roam-mode)
      :custom
      (org-roam-directory "/path/to/org-files/")
      :bind (:map org-roam-mode-map
              (("C-c n l" . org-roam)
               ("C-c n f" . org-roam-find-file)
               ("C-c n j" . org-roam-jump-to-index)
               ("C-c n b" . org-roam-switch-to-buffer)
               ("C-c n g" . org-roam-graph))
              :map org-mode-map
              (("C-c n i" . org-roam-insert))))

What actually happened?
...
Error report on startup:

Failed to load magit package incrementally, because: (wrong-type-argument arrayp changes:)
Failed to load org package incrementally, because: (wrong-type-argument arrayp changes:)
Failed to load org-agenda package incrementally, because: (wrong-type-argument arrayp changes:)
Failed to load org-capture package incrementally, because: (wrong-type-argument arrayp changes:)
Failed to load org package incrementally, because: (wrong-type-argument arrayp changes:)

Additional details:

  • Include a link to your private config
    init.el

config.el

  • Include screenshots/casts of your issue

  • If you mention key sequences, include what commands they're bound to (use SPC h k KEY or C-h h k KEY to inspect keys).

  • Include any warnings or errors logged to *Messages* (use M-x view-echo-area-messages to see it).

Failed to load magit package incrementally, because: (wrong-type-argument arrayp changes:)
Failed to load org package incrementally, because: (wrong-type-argument arrayp changes:)
Failed to load org-agenda package incrementally, because: (wrong-type-argument arrayp changes:)
Failed to load org-capture package incrementally, because: (wrong-type-argument arrayp changes:)
Failed to load org package incrementally, because: (wrong-type-argument arrayp changes:)


If an error message is involved include a backtrace of it.

How to acquire a backtrace:
https://github.com/hlissner/doom-emacs/blob/develop/docs/getting_started.org#how-to-extract-a-backtrace-from-an-error

on startup:

DOOM Initializing Doom
Debug mode on
DOOM Initializing core modules
DOOM Initializing user config
DOOM Running doom hook: evil-mode
DOOM Running doom hook: +evil--init-popup-rules-h
DOOM Running doom hook: +workspaces-init-h
DOOM Running doom hook: +doom-dashboard-init-h
DOOM [ui/doom-dashboard] Reloading dashboard at 18:31:37
DOOM [ui/doom-dashboard] Changed dashboard鈥檚 PWD to ~/.doom.d/
DOOM Running doom hook: doom-init-theme-h
DOOM Running doom hook: window-divider-mode
DOOM Running doom hook: +popup-mode
Doom loaded 147 packages across 29 modules in 1.752s
DOOM Incrementally loading tree-widget
DOOM Incrementally loading recentf
DOOM Incrementally loading savehist
DOOM Incrementally loading yasnippet
DOOM [editor/evil] Initialized evil-collection-elisp-mode 
DOOM [editor/evil] Initialized evil-collection-comint 
DOOM [editor/evil] Initialized evil-collection-custom 
DOOM [editor/evil] Initialized evil-collection-help 
DOOM Incrementally loading with-editor
DOOM Incrementally loading git-commit
DOOM [editor/evil] Initialized evil-collection-epa 
DOOM [editor/evil] Initialized evil-collection-dired 
DOOM [editor/evil] Initialized evil-collection-log-edit 
DOOM Incrementally loading package
DOOM Incrementally loading lv
DOOM Incrementally loading magit
DOOM [editor/evil] Initialized evil-collection-diff-mode 
DOOM [editor/evil] Initialized evil-collection-magit 
DOOM [editor/evil] Initialized evil-collection-calendar  [2 times]
DOOM [editor/evil] Initialized evil-collection-outline 
DOOM [editor/evil] Initialized evil-collection-debug 
Entering debugger...
DOOM [editor/evil] Initialized evil-collection-flycheck 
DOOM Incrementally loading calendar
DOOM [editor/evil] Initialized evil-collection-calendar  [2 times]
DOOM Incrementally loading find-func
DOOM Incrementally loading org-macs
DOOM Incrementally loading org-compat
DOOM Incrementally loading org-faces
DOOM Incrementally loading org-entities
DOOM Incrementally loading org-list
DOOM Incrementally loading org-pcomplete
DOOM Incrementally loading org-src
DOOM Incrementally loading org-footnote
DOOM Incrementally loading org-macro
DOOM Incrementally loading ob
DOOM Incrementally loading org
DOOM [editor/evil] Initialized evil-collection-outline 
DOOM Incrementally loading org-agenda
DOOM Incrementally loading org-capture
DOOM Incrementally loading org
DOOM [editor/evil] Initialized evil-collection-outline 
Entering debugger...
DOOM Finished incremental loading
DOOM [editor/evil] Initialized evil-collection-ivy 
DOOM [editor/evil] Initialized evil-collection-compile 
DOOM [editor/evil] Initialized evil-collection-xref 
DOOM [editor/evil] Initialized evil-collection-which-key 
DOOM [editor/evil] Loading deferred package evil-snipe from doom--after-call-evil-snipe-h
DOOM [editor/evil] Loading deferred package evil-escape from doom--after-call-evil-escape-h
DOOM [editor/evil] Loading deferred package evil-easymotion from doom--after-call-evil-easymotion-h
DOOM Loading deferred package server from doom--after-call-server-h

on typing "M-x org-roam-mode"

Debugger entered--Lisp error: (wrong-type-argument arrayp changes:)
  substring(changes: 0 1)
  file-truename(changes:)
  org-roam-db--clear-file(changes:)
  org-roam-db-build-cache()
  org-roam-mode(toggle)
  funcall-interactively(org-roam-mode toggle)
  call-interactively(org-roam-mode record nil)
  command-execute(org-roam-mode record)
  counsel-M-x-action("org-roam-mode")
  ivy-call()
  ivy-read("M-x " ("org-roam-mode" "doom/find-file-in-private-config" "org-mode" "doom/reload" "cd" "5x5" "amx" "org-occur" "arp" "dbx" "dig" "erc" "ert" "eww" "ftp" "gdb" "irc" "jdb" "man" "mpc" "pdb" "pwd" "rsh" "sdb" "xdb" "calc" "diff" "dirs" "ffap" "gnus" "grep" "help" "ielm" "info" "life" "mail" "mpuz" "ping" "pong" "talk" "term" "undo" "yank" "zone" "align" "chmod" "debug" "diary" "dired" "ediff" ...) :predicate #f(compiled-function (x) #<bytecode 0x1ff8031a91f5>) :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)

Steps to reproduce:

  1. open emacs,
  2. type "M-x org-roam-mode"

System information:

((emacs
  (version . "27.0.91")
  (features . "RSVG IMAGEMAGICK GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS PDUMPER LCMS2 GMP")
  (build . "Jul 25, 2020")
  (buildopts "--disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/usr/local/share/emacs/site-lisp --infodir=/usr/local/Cellar/emacs-plus@27/27.0.91/share/info/emacs --prefix=/usr/local/Cellar/emacs-plus@27/27.0.91 --with-xml2 --with-gnutls --without-dbus --with-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained")
  (windowsys . batch)
  (daemonp . server-running))
 (doom
  (version . "2.0.9")
  (build . "HEAD -> develop afcf56a61 2020-07-24 19:27:50 -0400")
  (dir . "~/.dotfiles/EmacsConfig/doom.d/"))
 (system
  (type . darwin)
  (config . "x86_64-apple-darwin18.5.0")
  (shell . "/bin/zsh")
  (uname . "Darwin 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64")
  (path "~/.rvm/gems/ruby-2.7.0/bin" "~/.rvm/gems/ruby-2.7.0@global/bin" "~/.rvm/rubies/ruby-2.7.0/bin" "/opt/miniconda3/envs/py37/bin" "/opt/miniconda3/condabin" "~/perl5/bin" "/opt/miniconda3/bin" "~/.emacs.d/bin" "/usr/local/opt/gnu-getopt/bin" "/usr/local/bin" "/usr/local/opt/gettext/bin" "/usr/local/sbin" "/usr/local/sbin" "/usr/local/bin" "/usr/local/bin" "/usr/bin" "/bin" "/usr/sbin" "/sbin" "~/.rvm/bin" "/usr/local/Cellar/emacs-plus@27/27.0.91/libexec/emacs/27.0.91/x86_64-apple-darwin18.5.0"))
 (config
  (envfile . envvar-file)
  (elc-files . 0)
  (modules :completion company ivy :ui doom doom-dashboard doom-quit hl-todo modeline ophints (popup +defaults) vc-gutter vi-tilde-fringe workspaces :editor (evil +everywhere) file-templates fold snippets :emacs dired electric undo vc :checkers syntax :tools (eval +overlay) lookup magit :lang emacs-lisp markdown (org +roam) sh :config (default +bindings +smartparens))
  (packages "n/a")
  (unpin "n/a")
  (elpa "n/a")))

invalid networking

Most helpful comment

    error: RPC failed; curl 18 transfer closed with outstanding read data remaining
    fatal: the remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed

This is indicative of a network issue; just have to try again.

In any case, I have mirrored your config, down to the emacs config, org files, and on a macOS vm. Still nothing.

I'm convinced it's a local build issue. Try manually deleting ~/.emacs.d/.local/straight/repos/org-roam and ~/.emacs.d/.local/straight/build/org-roam, then run doom sync. Does that change anything?

All 10 comments

(wrong-type-argument arrayp changes:)

This error seems unrelated to org-roam. At the very least, I can't reproduce it with the exact config you're using. There isn't enough information to determine anything else about the issue. Can you produce a backtrace from the error?

Also, your config links appear to be broken.

Side-note: those install instructions appear to be a bit outdated. The :lang (org +roam) module configures org-roam for you. That use-package! block isn't at all necessary.

Does doom sync && doom build fix the issue?

Nah doom sync and doom build seemed no luck...
Look, I deleted everything (I believe), and聽

  1. on the startup run, everything is fine.
  2. Then I edited the init.el, put "org +roam" there, and edited config.el, changed the org-directory to my custom directory. Then doom sync and run, no error message, but I can't find any roam related commands when typing M-x.
  3. Then I edited the config.el again, put the "use-package" stuff, then doom sync and run, startup error message, those "incremental load fail blahblah" stuff appeared.
  4. Then I edited the config.el, commented out the "use-package" stuff, then doom sync and run, no "incremental load fail" message, but "wrong type of argument" message.
    Then I realized there's a folder named "org" appeared in my home directory. I believe it was generated on the 1. startup run.
    Forgot to file the exact messages though. I'll try to see if it could be reproduced. Or what else may I do according to your perspective?

Side-note: those install instructions appear to be a bit outdated. The聽:lang (org +roam)聽module configures org-roam for you. That聽use-package!聽block isn't at all necessary.

Thx! I don't know if it'd solve the issue but this note is helpful.聽

(wrong-type-argument arrayp changes:)

This error seems unrelated to org-roam. At the very least, I can't reproduce it with the exact config you're using. There isn't enough information to determine anything else about the issue. Can you produce a backtrace from the error?

Also, your config links appear to be broken.

Side-note: those install instructions appear to be a bit outdated. The :lang (org +roam) module configures org-roam for you. That use-package! block isn't at all necessary.


Here it goes:

0. Local Setting

  • Vanilla Doom
    Installed with
git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
~/.emacs.d/bin/doom install
  • Local org forder:
    org
  • Private Config:
    only modified (org +roam) flag in init.el
    .doom.d
  • ~Doom Doctor~
    update: doom doctor, doom sync and doom build all run just fine.

1. Doom Startup

  • Message:
Doom loaded 145 packages across 29 modules in 1.092s
Failed to load magit package incrementally, because: (wrong-type-argument arrayp changes:)
Failed to load org package incrementally, because: (wrong-type-argument arrayp changes:)
Failed to load org-agenda package incrementally, because: (wrong-type-argument arrayp changes:)
Failed to load org-capture package incrementally, because: (wrong-type-argument arrayp changes:)
Failed to load org package incrementally, because: (wrong-type-argument arrayp changes:)
  • Backtrace:
    the backatrace buffer just flashed by so I had to make screenshots.

ScreenShots

Screen Shot 2020-07-29 at 05 59 32
Screen Shot 2020-07-29 at 05 59 44
Screen Shot 2020-07-29 at 05 59 50
Screen Shot 2020-07-29 at 06 00 13

2. Open test.org in Org directory

  • Command: SPC f f ("Find file")
  • Message:
File mode specification error: (wrong-type-argument arrayp changes:)
  • Backtrace:
Debugger entered--Lisp error: (wrong-type-argument arrayp changes:)
  substring(changes: 0 1)
  file-truename(changes:)
  org-roam-db--clear-file(changes:)
  org-roam-db-build-cache()
  org-roam-mode()
  run-hooks(org-load-hook)
  byte-code("\300\301\302\"\210\303\304!\210\305\306!\207" [add-hook org-mode-hook #f(compiled-function () #<bytecode 0x1ffc8d06eee5>) provide org run-hooks org-load-hook] 3)
  require(org)
  byte-code("\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\210\300\307!\210\300\310!\210\300\311!\210\300\312!\207" [require avl-tree cl-lib ol org org-compat org-entities org-footnote org-list org-macs org-table] 2)
  require(org-element)
  org-macro-initialize-templates()
  org-mode()
  set-auto-mode-0(org-mode nil)
  #f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.\n\nTo find the right major mode, this function checks for a -*- mode tag\nchecks for a `mode:' entry in the Local Variables section of the file,\nchecks if it uses an interpreter listed in `interpreter-mode-alist',\nmatches the buffer beginning against `magic-mode-alist',\ncompares the filename against the entries in `auto-mode-alist',\nthen matches the buffer beginning against `magic-fallback-mode-alist'.\n\nIf `enable-local-variables' is nil, or if the file name matches\n`inhibit-local-variables-regexps', this function does not check\nfor any mode: tag anywhere in the file.  If `local-enable-local-variables'\nis nil, then the only mode: tag that can be relevant is a -*- one.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it.  In other words\nwe don't actually set it to the same mode the buffer already has." #<bytecode 0x424b205b>)()
  apply(#f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.\n\nTo find the right major mode, this function checks for a -*- mode tag\nchecks for a `mode:' entry in the Local Variables section of the file,\nchecks if it uses an interpreter listed in `interpreter-mode-alist',\nmatches the buffer beginning against `magic-mode-alist',\ncompares the filename against the entries in `auto-mode-alist',\nthen matches the buffer beginning against `magic-fallback-mode-alist'.\n\nIf `enable-local-variables' is nil, or if the file name matches\n`inhibit-local-variables-regexps', this function does not check\nfor any mode: tag anywhere in the file.  If `local-enable-local-variables'\nis nil, then the only mode: tag that can be relevant is a -*- one.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it.  In other words\nwe don't actually set it to the same mode the buffer already has." #<bytecode 0x424b205b>) nil)
  #f(advice-wrapper :after #f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.\n\nTo find the right major mode, this function checks for a -*- mode tag\nchecks for a `mode:' entry in the Local Variables section of the file,\nchecks if it uses an interpreter listed in `interpreter-mode-alist',\nmatches the buffer beginning against `magic-mode-alist',\ncompares the filename against the entries in `auto-mode-alist',\nthen matches the buffer beginning against `magic-fallback-mode-alist'.\n\nIf `enable-local-variables' is nil, or if the file name matches\n`inhibit-local-variables-regexps', this function does not check\nfor any mode: tag anywhere in the file.  If `local-enable-local-variables'\nis nil, then the only mode: tag that can be relevant is a -*- one.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it.  In other words\nwe don't actually set it to the same mode the buffer already has." #<bytecode 0x424b205b>) auto-minor-mode-set)()
  apply(#f(advice-wrapper :after #f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.\n\nTo find the right major mode, this function checks for a -*- mode tag\nchecks for a `mode:' entry in the Local Variables section of the file,\nchecks if it uses an interpreter listed in `interpreter-mode-alist',\nmatches the buffer beginning against `magic-mode-alist',\ncompares the filename against the entries in `auto-mode-alist',\nthen matches the buffer beginning against `magic-fallback-mode-alist'.\n\nIf `enable-local-variables' is nil, or if the file name matches\n`inhibit-local-variables-regexps', this function does not check\nfor any mode: tag anywhere in the file.  If `local-enable-local-variables'\nis nil, then the only mode: tag that can be relevant is a -*- one.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it.  In other words\nwe don't actually set it to the same mode the buffer already has." #<bytecode 0x424b205b>) auto-minor-mode-set) nil)
  so-long--set-auto-mode(#f(advice-wrapper :after #f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.\n\nTo find the right major mode, this function checks for a -*- mode tag\nchecks for a `mode:' entry in the Local Variables section of the file,\nchecks if it uses an interpreter listed in `interpreter-mode-alist',\nmatches the buffer beginning against `magic-mode-alist',\ncompares the filename against the entries in `auto-mode-alist',\nthen matches the buffer beginning against `magic-fallback-mode-alist'.\n\nIf `enable-local-variables' is nil, or if the file name matches\n`inhibit-local-variables-regexps', this function does not check\nfor any mode: tag anywhere in the file.  If `local-enable-local-variables'\nis nil, then the only mode: tag that can be relevant is a -*- one.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it.  In other words\nwe don't actually set it to the same mode the buffer already has." #<bytecode 0x424b205b>) auto-minor-mode-set))
  apply(so-long--set-auto-mode #f(advice-wrapper :after #f(compiled-function (&optional keep-mode-if-same) "Select major mode appropriate for current buffer.\n\nTo find the right major mode, this function checks for a -*- mode tag\nchecks for a `mode:' entry in the Local Variables section of the file,\nchecks if it uses an interpreter listed in `interpreter-mode-alist',\nmatches the buffer beginning against `magic-mode-alist',\ncompares the filename against the entries in `auto-mode-alist',\nthen matches the buffer beginning against `magic-fallback-mode-alist'.\n\nIf `enable-local-variables' is nil, or if the file name matches\n`inhibit-local-variables-regexps', this function does not check\nfor any mode: tag anywhere in the file.  If `local-enable-local-variables'\nis nil, then the only mode: tag that can be relevant is a -*- one.\n\nIf the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that would change it.  In other words\nwe don't actually set it to the same mode the buffer already has." #<bytecode 0x424b205b>) auto-minor-mode-set) nil)
  set-auto-mode()
  normal-mode(t)
  #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.\nSets buffer mode, parses file-local and directory-local variables.\nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was an\nerror in reading the file.  WARN non-nil means warn if there\nexists an auto-save file more recent than the visited file.\nNOAUTO means don't mess with auto-save mode.\nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignored\n(see `revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions in `find-file-hook'\nunless NOMODES is non-nil." #<bytecode 0x424c4d35>)(nil t)
  apply(#f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.\nSets buffer mode, parses file-local and directory-local variables.\nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was an\nerror in reading the file.  WARN non-nil means warn if there\nexists an auto-save file more recent than the visited file.\nNOAUTO means don't mess with auto-save mode.\nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignored\n(see `revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions in `find-file-hook'\nunless NOMODES is non-nil." #<bytecode 0x424c4d35>) (nil t))
  (if (setq doom-large-file-p (and buffer-file-name (not doom-large-file-p) (file-exists-p buffer-file-name) (condition-case nil (progn (> (nth 7 (file-attributes buffer-file-name)) (* 1024 1024 (assoc-default buffer-file-name doom-large-file-size-alist ...)))) (error nil)))) (prog1 (apply orig-fn args) (if (memq major-mode doom-large-file-excluded-modes) (setq doom-large-file-p nil) (if (fboundp 'so-long-minor-mode) (progn (so-long-minor-mode 1))) (message "Large file detected! Cutting a few corners to impr..."))) (apply orig-fn args))
  doom--optimize-for-large-files-a(#f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.\nSets buffer mode, parses file-local and directory-local variables.\nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was an\nerror in reading the file.  WARN non-nil means warn if there\nexists an auto-save file more recent than the visited file.\nNOAUTO means don't mess with auto-save mode.\nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignored\n(see `revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions in `find-file-hook'\nunless NOMODES is non-nil." #<bytecode 0x424c4d35>) nil t)
  apply(doom--optimize-for-large-files-a #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.\nSets buffer mode, parses file-local and directory-local variables.\nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was an\nerror in reading the file.  WARN non-nil means warn if there\nexists an auto-save file more recent than the visited file.\nNOAUTO means don't mess with auto-save mode.\nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignored\n(see `revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions in `find-file-hook'\nunless NOMODES is non-nil." #<bytecode 0x424c4d35>) (nil t))
  #f(advice-wrapper :around #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.\nSets buffer mode, parses file-local and directory-local variables.\nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was an\nerror in reading the file.  WARN non-nil means warn if there\nexists an auto-save file more recent than the visited file.\nNOAUTO means don't mess with auto-save mode.\nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignored\n(see `revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions in `find-file-hook'\nunless NOMODES is non-nil." #<bytecode 0x424c4d35>) doom--optimize-for-large-files-a)(nil t)
  apply(#f(advice-wrapper :around #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.\nSets buffer mode, parses file-local and directory-local variables.\nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was an\nerror in reading the file.  WARN non-nil means warn if there\nexists an auto-save file more recent than the visited file.\nNOAUTO means don't mess with auto-save mode.\nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignored\n(see `revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions in `find-file-hook'\nunless NOMODES is non-nil." #<bytecode 0x424c4d35>) doom--optimize-for-large-files-a) (nil t))
  #f(advice-wrapper :before #f(advice-wrapper :around #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.\nSets buffer mode, parses file-local and directory-local variables.\nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was an\nerror in reading the file.  WARN non-nil means warn if there\nexists an auto-save file more recent than the visited file.\nNOAUTO means don't mess with auto-save mode.\nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignored\n(see `revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions in `find-file-hook'\nunless NOMODES is non-nil." #<bytecode 0x424c4d35>) doom--optimize-for-large-files-a) doom-first-file-hook-h)(nil t)
  apply(#f(advice-wrapper :before #f(advice-wrapper :around #f(compiled-function (&optional error warn noauto after-find-file-from-revert-buffer nomodes) "Called after finding a file and by the default revert function.\nSets buffer mode, parses file-local and directory-local variables.\nOptional args ERROR, WARN, and NOAUTO: ERROR non-nil means there was an\nerror in reading the file.  WARN non-nil means warn if there\nexists an auto-save file more recent than the visited file.\nNOAUTO means don't mess with auto-save mode.\nFourth arg AFTER-FIND-FILE-FROM-REVERT-BUFFER is ignored\n(see `revert-buffer-in-progress-p' for similar functionality).\nFifth arg NOMODES non-nil means don't alter the file's modes.\nFinishes by calling the functions in `find-file-hook'\nunless NOMODES is non-nil." #<bytecode 0x424c4d35>) doom--optimize-for-large-files-a) doom-first-file-hook-h) (nil t))
  after-find-file(nil t)
  find-file-noselect-1(#<buffer test.org> "~/org/test.org" nil nil "~/org/test.org" (12916482549 16777220))
  find-file-noselect("/Users/pallas/org/test.org" nil nil nil)
  find-file("/Users/pallas/org/test.org")
  counsel-find-file-action("/Users/pallas/org/test.org")
  ivy-call()
  ivy-read("Find file: " read-file-name-internal :matcher counsel--find-file-matcher :initial-input nil :action counsel-find-file-action :preselect nil :require-match confirm-after-completion :history file-name-history :keymap (keymap (remap keymap (undo . counsel-find-file-undo)) (96 lambda (&optional arg) "nil (`nil')" (interactive "p") (if (string= "" ivy-text) (execute-kbd-macro (kbd "M-o b")) (self-insert-command arg))) (C-backspace . counsel-up-directory) (67108991 . counsel-up-directory)) :caller counsel-find-file)
  counsel--find-file-1("Find file: " nil counsel-find-file-action counsel-find-file)
  counsel-find-file()
  funcall-interactively(counsel-find-file)
  call-interactively(counsel-find-file nil nil)
  command-execute(counsel-find-file)

3. Org Roam Insert

  • Command: SPC n r i (Insert)
  • Message:
s-join: Wrong type argument: sequencep, total_changes:
  • Backtrace:
Debugger entered--Lisp error: (wrong-type-argument sequencep total_changes:)
  mapconcat(identity total_changes: ",")
  s-join("," total_changes:)
  org-roam--get-title-path-completions()
  org-roam-insert(nil)
  funcall-interactively(org-roam-insert nil)
  call-interactively(org-roam-insert nil nil)
  command-execute(org-roam-insert)

I referred to Issue #3394 and did the following:

  1. Add unpin! org-roam in packages.el
  2. doom update

And encountered 'doom-package-error' when running doom update

 Type: doom-package-error
  Message:
    Error with packages
  Data:
    "org-roam"
    (error "Failed to run \"git\"; see buffer *straight-process*")
  Straight output:
    error: RPC failed; curl 18 transfer closed with outstanding read data remaining
    fatal: the remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
  1. Deleted ~/.emacs.d/.local/straight/repos/org-roam manually and run doom sync

The issue persists when restarting emacs.

    error: RPC failed; curl 18 transfer closed with outstanding read data remaining
    fatal: the remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed

This is indicative of a network issue; just have to try again.

In any case, I have mirrored your config, down to the emacs config, org files, and on a macOS vm. Still nothing.

I'm convinced it's a local build issue. Try manually deleting ~/.emacs.d/.local/straight/repos/org-roam and ~/.emacs.d/.local/straight/build/org-roam, then run doom sync. Does that change anything?

yeah I'm also suspecting it is network issue ,聽 cloning org-roam took wierdly long time
but I deleted the ~/.emacs.d/.local/straight/聽 the entire folder, then doom sync and issue still there.
Wondering if there's other method other than straight that I can do?
or is there a way I could manually install the package or something?

You could clone the package manually.

git clone https://github.com/jethrokuan/org-roam/ ~/.emacs.d/.local/straight/repos/org-roam
doom sync

Thanks! Problem solved now.
Re-installed doom again in the morning and boom! it just worked.


Useful Tips though, in case someone would need it:
Github is banned by GFW, so git clone and git push are weirdly slow. Doom uses straight which clones packages from github, instead of stuff like melpa. That's why a network issue is so annoying.
Do:

git config --global http.proxy 'blahblahblahblah'
git config --global https.proxy 'blahblahblahblah'

to set proxy for git. It will boost the spead of git clone like, from 10KiB/s to 800KiB/s .

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Vvkmnn picture Vvkmnn  路  3Comments

governorgoat picture governorgoat  路  3Comments

ashiklom picture ashiklom  路  3Comments

benjaminbauer picture benjaminbauer  路  3Comments

randomizedthinking picture randomizedthinking  路  3Comments