kotct / dot

A collaborative configuration for various tools.
MIT License
3 stars 2 forks source link

Rust variable undefined #147

Closed samontea closed 4 years ago

samontea commented 4 years ago
Debugger entered--Lisp error: (void-variable rust)
  byte-code("\305\306!\210\307\310\10\"\210\311\11B\21\312\n\13\313 #\210\314\303\315\"\210\316\302!\210\317\24\320\302!\207" [global-tab-width kotct/tab-variable-setters rust rust-mode-hook rust-indent-where-clause require indentation set-default rust-indent-offset (rust-indent-offset . setq-default) smart-tabs-add-language-support (rust-mode-indent-line . rust-indent-offset) add-hook #f(compiled-function () #<bytecode 0x1fe3c8ec89b5>) smart-tabs-insinuate nil provide] 4)
  require(rust)
  (while --dolist-tail-- (setq feature (car --dolist-tail--)) (setq to-compile (cons (concat (file-name-directory load-file-name) (symbol-name feature) ".el") to-compile)) (require feature) (setq --dolist-tail-- (cdr --dolist-tail--)))
  (let ((--dolist-tail-- languages) feature) (while --dolist-tail-- (setq feature (car --dolist-tail--)) (setq to-compile (cons (concat (file-name-directory load-file-name) (symbol-name feature) ".el") to-compile)) (require feature) (setq --dolist-tail-- (cdr --dolist-tail--))))
  (let ((to-compile nil)) (let ((--dolist-tail-- languages) feature) (while --dolist-tail-- (setq feature (car --dolist-tail--)) (setq to-compile (cons (concat (file-name-directory load-file-name) (symbol-name feature) ".el") to-compile)) (require feature) (setq --dolist-tail-- (cdr --dolist-tail--)))) (setq kotct/files-to-compile (append kotct/files-to-compile to-compile)))
  eval-buffer(#<buffer  *load*-101171> nil "/Users/sam/.emacs.d/lisp/code/languages/language-h..." nil t)  ; Reading at buffer position 455
  load-with-code-conversion("/Users/sam/.emacs.d/lisp/code/languages/language-h..." "/Users/sam/.emacs.d/lisp/code/languages/language-h..." nil t)
  require(language-hub)
  eval-buffer(#<buffer  *load*-274565> nil "/Users/sam/.emacs.d/lisp/code/code-hub.el" nil t)  ; Reading at buffer position 306
  load-with-code-conversion("/Users/sam/.emacs.d/lisp/code/code-hub.el" "/Users/sam/.emacs.d/lisp/code/code-hub.el" nil t)
  require(code-hub)
  (lambda (hub) (require (intern (concat hub "-hub"))))("code")
  mapc((lambda (hub) (require (intern (concat hub "-hub")))) ("package" "file" "visual" "behavior" "code" "system" "user"))
  (let ((load-prefer-newer t)) (if frame (progn (select-frame frame) (kotct/check-dependency-list frame) (remove-hook 'after-make-frame-functions #'kotct/load-hubs))) (mapc #'(lambda (hub) (require (intern (concat hub "-hub")))) kotct/hub-list) (require 'kotct-loaddefs))
  kotct/load-hubs()
  (catch 'daemon-mode (kotct/load-hubs))
  (eq 'daemon-mode (catch 'daemon-mode (kotct/load-hubs)))
  (if (eq 'daemon-mode (catch 'daemon-mode (kotct/load-hubs))) (add-hook 'after-make-frame-functions #'kotct/load-hubs))
  eval-buffer(#<buffer  *load*> nil "/Users/sam/.emacs.d/init.el" nil t)  ; Reading at buffer position 3211
  load-with-code-conversion("/Users/sam/.emacs.d/init.el" "/Users/sam/.emacs.d/init.el" t t)
  load("/Users/sam/.emacs.d/init" noerror nomessage)
  startup--load-user-init-file(#f(compiled-function () #<bytecode 0x1fe3c8e2ca55>) #f(compiled-function () #<bytecode 0x1fe3c8e2ca6d>) t)
  command-line()
  normal-top-level()

I get this error occasionally after #145 got merged. I think all we need to do is require rust-mode at the start of rust.el. Alternatively, we could eventually wrap up #134 and that would solve this issue.