bookest / arduino-mode

Emacs major mode for editing Arduino sketches.
101 stars 42 forks source link

Can't start arduino-mode #12

Closed plantarum closed 8 years ago

plantarum commented 8 years ago

Steps to reproduce:

emacs -Q

Evaluate the following code to load arduino-mode and no other packages:

(require 'package)
(setq package-load-list
      '((arduino-mode t) ))
(package-initialize)

Turn on mode with M-x arduino-mode.

The following errors appear in Messages, and the mode doesn't start:

Eval error in the ‘c-lang-defconst’ for ‘c-constant-kwds’ in arduino-mode: Eval error in the ‘c-lang-defconst’ for ‘c-basic-matchers-before’ in arduino-mode: Eval error in the ‘c-lang-defconst’ for ‘c-matchers-2’ in arduino-mode: c-get-lang-constant: Invalid function: (append (quote ("HIGH" "LOW" "INPUT" "OUTPUT" "INPUT_PULLUP" "LED_BUILTIN" "true" "false")) (c-get-lang-constant (quote c-constant-kwds) (quote (cc-langs))))

Emacs: GNU Emacs 25.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.6) of 2015-12-29

arduino-mode (from melpa): ;; Package-Version: 20151017.2335 ;; Version: 1.0

plantarum commented 8 years ago

Turns out I had several old versions of arduino-mode installed at once. Cleaning out my elpa directory and restarting fixed the 'problem'. Sorry for the noise.