Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android + Termux + Emacs | Spacemacs initialization error #6262

Closed
nixmaniack opened this issue Jun 8, 2016 · 9 comments
Closed

Android + Termux + Emacs | Spacemacs initialization error #6262

nixmaniack opened this issue Jun 8, 2016 · 9 comments

Comments

@nixmaniack
Copy link
Contributor

I'm trying to use Spacemacs on my Android using Termux, but it's not going through initialization process fully. Following error is shown in *Messages* buffer.
custom-initialize-reset: Args out of range: 0

Even using --debug-init doesn't give backtrace. Any help?

I doubt emacs25 is an issue here as I'm using emacs25 on Mac without any issues.

System Info 💻

  • OS: gnu/linux
  • Emacs: 25.0.94
  • Spacemacs: 0.105.20
  • Spacemacs branch: develop (rev. 84aee08)
  • Graphic display: nil
  • Distribution: spacemacs
  • Editing style: emacs
  • Completion: helm
  • Layers:
(helm emacs-lisp)
@syl20bnr
Copy link
Owner

syl20bnr commented Jun 9, 2016

mmmmhh maybe try to bissect with message in init.el. Sorry I cannot help a lot on this one :-)

@nixmaniack
Copy link
Contributor Author

So, excluding exec-path-from-shell and using ivy instead of helm got spacemacs working. Although I'm not able to quit emacs now and throws this error.

Debugger entered--Lisp error: (wrong-type-argument stringp (require . bytecomp))
  string-match("\\(\\`\\|/\\)esh-util\\(\\.elc\\|\\.el\\)?\\(\\.gz\\)?\\'" (require . bytecomp))
  load-history-filename-element("\\(\\`\\|/\\)esh-util\\(\\.elc\\|\\.el\\)?\\(\\.gz\\)?\\'")
  eval-after-load("esh-util" #[nil "\300 \210\301\302\300\"\210\301\303\304\"\207" [tramp-eshell-directory-change add-hook eshell-directory-change-hook tramp-unload-hook #[nil "\300\301\302\"\207" [remove-hook eshell-directory-change-hoo\
k tramp-eshell-directory-change] 3]] 3])
  require(tramp nil t)
  persp-tramp-save-buffer(#<buffer .spacemacs>)
  #[(b) "\30627^@\307^X \307^Z\211^[\2055^@^K@\211^R\f!\211^P\203-^@^H\310=\203$^@\311\306\307\"\210^H^MB^U\311\306\307\"\210^KA\211^S\204^N^@\307+0\207" [tmp persp-save-buffer-functions s-f --dolist-tail-- b ret --cl-block-\(quote\ pers\
p-buffer-to-savelist\)-- nil skip throw] 4](#<buffer .spacemacs>)
  mapc(#[(b) "\30627^@\307^X  \307^Z\211^[\2055^@^K@\211^R\f!\211^P\203-^@^H\310=\203$^@\311\306\307\"\210^H^MB^U\311\306\307\"\210^KA\211^S\204^N^@\307+0\207" [tmp persp-save-buffer-functions s-f --dolist-tail-- b ret --cl-block-\(quote\
\ persp-buffer-to-savelist\)-- nil skip throw] 4] (#<buffer .spacemacs> #<buffer *spacemacs*> #<buffer *scratch*> #<buffer  *Minibuf-0*> #<buffer *Messages*> #<buffer  *Echo Area 0*> #<buffer  *Echo Area 1*> #<buffer  *code-conversion-wo\
rk*> #<buffer  *http melpa.org:443*> #<buffer  *http orgmode.org:80*> #<buffer  *http elpa.gnu.org:443*> #<buffer *Compile-Log*> #<buffer  *which-key*> #<buffer  *temp*>))
  persp-buffers-to-savelist(nil)
  persp-to-savelist(nil)
  mapcar(persp-to-savelist (nil))
  persps-to-savelist(#s(hash-table size 10 test equal rehash-size 1.5 rehash-threshold 0.8 data ("Default" nil)))
  persp-save-state-to-file("/data/data/com.termux/files/home/.emacs.d/.cache/layouts/persp-auto-save" #s(hash-table size 10 test equal rehash-size 1.5 rehash-threshold 0.8 data ("Default" nil)) nil)
  persp-save-to-file-by-names("/data/data/com.termux/files/home/.emacs.d/.cache/layouts/persp-auto-save" #s(hash-table size 10 test equal rehash-size 1.5 rehash-threshold 0.8 data ("Default" nil)) ("Default") no)
  #[(gr) "^H@^HA\306^Y^Z^[\307\310\n\"\210^K\203^Z^@\311^K\f  \312$\202 ^@\311^M\f  \313$+\207" [gr names pl pfname phash p-save-file nil mapc #[(p) "\302^H! B\211^Q\207" [p names safe-persp-name] 2] persp-save-to-file-by-names yes no] 5\
]((nil nil))
  mapc(#[(gr) "^H@^HA\306^Y^Z^[\307\310\n\"\210^K\203^Z^@\311^K\f \312$\202 ^@\311^M\f  \313$+\207" [gr names pl pfname phash p-save-file nil mapc #[(p) "\302^H! B\211^Q\207" [p names safe-persp-name] 2] persp-save-to-file-by-names yes n\
o] 5] ((nil nil)))
  persp-save-state-to-file()
  persp-asave-on-exit()
  #<subr kill-emacs>(nil)
  ad-Advice-kill-emacs(#<subr kill-emacs>)
  apply(ad-Advice-kill-emacs #<subr kill-emacs> nil)
  kill-emacs()
  #[256 "\302^A\303\"\210^HC\303\304\305\306 \">\203^[^@\211\307\240\210\310\311!\205\230^@\312\313!\203\204^@\313 \307^A\203B^@\314^B@!\315>\203;^@\316^B@!\203;^@\303\262^A^AA\262^B\202$^@\211?\206^?^@\317\320!\321\322\323\324\325^F^H!\\
326\"\327\330%\331^B!\211^Y\307\211r^Bq\210\332\303!\262^A\333^C\307\"\262^B)\334^D!\203{^@^C^B^B\"\202|^@\211)\266\205\266\202\205\230^@\335\336!\205\230^@\211\242\203\226^@\211\242\337!\205\230^@\340 \207" [confirm-kill-emacs standard-\
output save-some-buffers t mapcar #[257 "\300^A!\205  ^@\301^A!\207" [buffer-file-name buffer-modified-p] 3 "\n\n(fn BUF)"] buffer-list nil yes-or-no-p "Modified buffers exist; exit anyway? " fboundp process-list process-status (run stop\
 open listen) process-query-on-exit-flag get-buffer-create "*Process List*" make-byte-code 514 "\301^B!r\302\303\304\305\306^E!\307\"\310$\216\311^A@\312\"\210\302\303\313\305\306^F^G!\314\"\315$\216\300\316\240\210\317\320!+\207" vconca\
t vector [internal--before-with-selected-window make-byte-code 0 "\301\300!\207" vconcat vector [internal--after-with-selected-window] 2 select-window norecord "\301\300!\205\n^@\302\300\303\"\207" [window-live-p quit-restore-window kill\
] 3 nil yes-or-no-p "Active processes exist; kill them and exit anyway? "] 9 "\n\n(fn WINDOW VALUE)" temp-buffer-window-setup list-processes temp-buffer-window-show functionp run-hook-with-args-until-failure kill-emacs-query-functions "R\
eally exit Emacs? " kill-emacs] 12 1953528 "P"](nil)
  ad-Advice-save-buffers-kill-emacs(#[256 "\302^A\303\"\210^HC\303\304\305\306 \">\203^[^@\211\307\240\210\310\311!\205\230^@\312\313!\203\204^@\313 \307^A\203B^@\314^B@!\315>\203;^@\316^B@!\203;^@\303\262^A^AA\262^B\202$^@\211?\206^?^@\\
317\320!\321\322\323\324\325^F^H!\326\"\327\330%\331^B!\211^Y\307\211r^Bq\210\332\303!\262^A\333^C\307\"\262^B)\334^D!\203{^@^C^B^B\"\202|^@\211)\266\205\266\202\205\230^@\335\336!\205\230^@\211\242\203\226^@\211\242\337!\205\230^@\340 \\
207" [confirm-kill-emacs standard-output save-some-buffers t mapcar #[257 "\300^A!\205  ^@\301^A!\207" [buffer-file-name buffer-modified-p] 3 "\n\n(fn BUF)"] buffer-list nil yes-or-no-p "Modified buffers exist; exit anyway? " fboundp pro\
cess-list process-status (run stop open listen) process-query-on-exit-flag get-buffer-create "*Process List*" make-byte-code 514 "\301^B!r\302\303\304\305\306^E!\307\"\310$\216\311^A@\312\"\210\302\303\313\305\306^F^G!\314\"\315$\216\300\
\316\240\210\317\320!+\207" vconcat vector [internal--before-with-selected-window make-byte-code 0 "\301\300!\207" vconcat vector [internal--after-with-selected-window] 2 select-window norecord "\301\300!\205\n^@\302\300\303\"\207" [wind\
ow-live-p quit-restore-window kill] 3 nil yes-or-no-p "Active processes exist; kill them and exit anyway? "] 9 "\n\n(fn WINDOW VALUE)" temp-buffer-window-setup list-processes temp-buffer-window-show functionp run-hook-with-args-until-fai\
lure kill-emacs-query-functions "Really exit Emacs? " kill-emacs] 12 1953528 "P"] nil)
  apply(ad-Advice-save-buffers-kill-emacs #[256 "\302^A\303\"\210^HC\303\304\305\306 \">\203^[^@\211\307\240\210\310\311!\205\230^@\312\313!\203\204^@\313 \307^A\203B^@\314^B@!\315>\203;^@\316^B@!\203;^@\303\262^A^AA\262^B\202$^@\211?\20\
6^?^@\317\320!\321\322\323\324\325^F^H!\326\"\327\330%\331^B!\211^Y\307\211r^Bq\210\332\303!\262^A\333^C\307\"\262^B)\334^D!\203{^@^C^B^B\"\202|^@\211)\266\205\266\202\205\230^@\335\336!\205\230^@\211\242\203\226^@\211\242\337!\205\230^@\
\340 \207" [confirm-kill-emacs standard-output save-some-buffers t mapcar #[257 "\300^A!\205  ^@\301^A!\207" [buffer-file-name buffer-modified-p] 3 "\n\n(fn BUF)"] buffer-list nil yes-or-no-p "Modified buffers exist; exit anyway? " fboun\
dp process-list process-status (run stop open listen) process-query-on-exit-flag get-buffer-create "*Process List*" make-byte-code 514 "\301^B!r\302\303\304\305\306^E!\307\"\310$\216\311^A@\312\"\210\302\303\313\305\306^F^G!\314\"\315$\2\
16\300\316\240\210\317\320!+\207" vconcat vector [internal--before-with-selected-window make-byte-code 0 "\301\300!\207" vconcat vector [internal--after-with-selected-window] 2 select-window norecord "\301\300!\205\n^@\302\300\303\"\207"\
 [window-live-p quit-restore-window kill] 3 nil yes-or-no-p "Active processes exist; kill them and exit anyway? "] 9 "\n\n(fn WINDOW VALUE)" temp-buffer-window-setup list-processes temp-buffer-window-show functionp run-hook-with-args-unt\
il-failure kill-emacs-query-functions "Really exit Emacs? " kill-emacs] 12 1953528 "P"] nil)
  save-buffers-kill-emacs(nil)
  save-buffers-kill-terminal(nil)
  funcall-interactively(save-buffers-kill-terminal nil)
  call-interactively(save-buffers-kill-terminal nil nil)
  command-execute(save-buffers-kill-terminal)

I have to kill -9 from terminal for now.

@nixmaniack
Copy link
Contributor Author

Some more errors. Org mode works only when org-mode packages are freshly installed(I think before byte-compiling) after that it throws following error.

Debugger entered--Lisp error: (wrong-type-argument stringp (require . bytecomp))
  string-match("\\(\\`\\|/\\)imenu\\(\\.elc\\|\\.el\\)?\\(\\.gz\\)?\\'" (require . bytecomp))
  load-history-filename-element("\\(\\`\\|/\\)imenu\\(\\.elc\\|\\.el\\)?\\(\\.gz\\)?\\'")
  eval-after-load("imenu" #[nil "\300\301\302\"\207" [add-hook imenu-after-jump-hook #[nil "\300\301!\205 ^@\302\303!\207" [derived-mode-p org-mode org-show-$
  autoload-do-load((autoload "org" "Outline-based notes management and organizer, alias\n\"Carsten's outline-mode for keeping track of everything.\"\n\nOrg-m$
  command-execute(org-mode record)
  #[257 "\303\304!\203\f^@\305\306^B!!\210^H\306^B!^Y^Z\307\306^B!\310\"*\207" [current-prefix-arg this-command prefix-arg featurep smex smex-rank intern com$
  ivy-call()
  ivy-read("M-x " ("describe-face" "list-fontsets" "find-library" "describe-font" "list-faces-display" "helm-select-xfont" "menu-set-font" "rgrep" "getenv" "$
  counsel-M-x()
  funcall-interactively(counsel-M-x)
  call-interactively(counsel-M-x nil nil)
  command-execute(counsel-M-x)

Also, the colors of far left indicators seems mismatched. Any way to fix it? Is it because of daemon mode?
image

@TheBB
Copy link
Collaborator

TheBB commented Jun 19, 2016

Pretty sure we fixed that in develop. You're running master?

@nixmaniack
Copy link
Contributor Author

I'm on develop.

@bergmannf
Copy link

I get them same error as @nixmaniack - org-mode work when it's updated, but once you restart it will run into the (require . bytecomp) error again.

I tried removing all *.elc files to check if maybe it has something to with the files having been byte-compiled, but that didn't help either.

@tidux
Copy link

tidux commented Aug 23, 2016

I've noticed some errors about parsing and reaching EOF when Spacemacs initializes under Termux. These may be related, especially if the long prefix that ~ resolves to under Termux is causing path-too-long errors.

@Compro-Prasad
Copy link
Contributor

@nixmaniack Any updates on this one?

@nixmaniack
Copy link
Contributor Author

Looks like it is working fine these days. Although Emacs version is 26 in Termux repo. Not sure what fixed it though. I'll close this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants