首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >arduino-mode Emacs文件规范错误

arduino-mode Emacs文件规范错误
EN

Stack Overflow用户
提问于 2019-02-23 00:06:48
回答 1查看 69关注 0票数 0

当我试图编辑Arduino Sketch (*.ino文件)时,我得到这个错误:

代码语言:javascript
复制
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:
File mode specification error: (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)))))

即使在常用的examples->basic->Blink.ino文件中也会发生这种情况。

我的.emacs.d/init.el文件包含以下行:

代码语言:javascript
复制
(setq auto-mode-alist (cons '("\\.\\(pde\\|ino\\)$" . arduino-mode) auto-mode-alist))
(autoload 'arduino-mode "arduino-mode" "Arduino editing mode." t)

我找不到'c-matchers-2‘文件。

这是Emacs 26.1。

谁能给我指个方向来修复这个错误?

提前感谢您的帮助和建议。

-Kevin

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-03-01 05:07:21

@nega,你是对的,这是一个版本问题。当我使用M-x list-packages时,我看到我已经安装了20151017.2335版本,而stardivirer最新的版本是20180509.36。arduino-mode包在melpa存储库中。

非常感谢您的帮助,为我指明了正确的方向。

-Kevin

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/54830967

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档