all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Is there somebody still using arduino-mode?
@ 2017-12-31 10:34 stardiviner
  0 siblings, 0 replies; 2+ messages in thread
From: stardiviner @ 2017-12-31 10:34 UTC (permalink / raw)
  To: emacs-help

I found arduino-mode and using it for a few days. But got some errors.

I found there are some issues on GitHub for a long time. and this repo 
on GitHub is not been updated for a long time. I emailed the maintainer. 
But he is not responding. And I check out some forks on GitHub of the 
original repo. I'm using the forwardest fork "mavit/arduino-mode" and 
"https://github.com/bwachter/arduino-mode".

```

(use-package arduino-mode
   :quelpa (arduino-mode :fetcher github :repo "mavit/arduino-mode")
   :bind (:map arduino-mode-map
               ("C-c C-c" . arduino-upload))
   :config
   (setq arduino-font-lock-extra-types t)
   )

```

I got this error:

```

Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’ for ‘c-known-type-key’
(fallback source eval - arduino-mode compiled with CC Mode 5.33 but 
loaded with
5.33.1): (wrong-type-argument sequencep t)
```

Hope someone can fix it. Because I'm not using the original repo and 
using a fork instead. So I don't mind use someone's fork.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Is there somebody still using arduino-mode?
       [not found] <mailman.6583.1514716477.27995.help-gnu-emacs@gnu.org>
@ 2018-01-01 20:18 ` Alan Mackenzie
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Mackenzie @ 2018-01-01 20:18 UTC (permalink / raw)
  To: help-gnu-emacs

Hello, Stardiviner.

stardiviner <numbchild@gmail.com> wrote:
> I found arduino-mode and using it for a few days. But got some errors.

> I found there are some issues on GitHub for a long time. and this repo 
> on GitHub is not been updated for a long time. I emailed the maintainer. 
> But he is not responding. And I check out some forks on GitHub of the 
> original repo. I'm using the forwardest fork "mavit/arduino-mode" and 
> "https://github.com/bwachter/arduino-mode".

> ```

> (use-package arduino-mode
> ? :quelpa (arduino-mode :fetcher github :repo "mavit/arduino-mode")
> ? :bind (:map arduino-mode-map
> ????????????? ("C-c C-c" . arduino-upload))
> ? :config
> ? (setq arduino-font-lock-extra-types t)
> ? )

> ```

> I got this error:

> ```

> Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’ for ‘c-known-type-key’
> (fallback source eval - arduino-mode compiled with CC Mode 5.33 but 
> loaded with
> 5.33.1): (wrong-type-argument sequencep t)
> ```

> Hope someone can fix it. Because I'm not using the original repo and 
> using a fork instead. So I don't mind use someone's fork.

Let me guess, you are using a recent emacs-26 pre-release version.  (The
CC Mode version number was updated to 5.33.1 a small number of weeks
ago).

I would recommend you to recompile arduino-mode in the Emacs you're
going to be running it under.  That should solve the version mismatch
error.

As for the main error, somebody (?yourself) is setting
arduino-font-lock-extra-types to t.  Almost certainly (I haven't looked
at arduino-mode's source), arduino-font-lock-extra-types needs to be a
list of, basically, arduino source identifiers[*] which should be
fontified as though they were types.  t here is not OK.  nil, (the empty
list), would be OK.

Again, almost certainly, arduino-font-lock-extra-types will have been
modelled on c-font-lock-extra-types, which can be found in
emacs/lisp/progmodes/cc-vars.c around line 1554.

[*] More precisely, this is a list of regular expressions which match
these pseudo types.

-- 
Alan Mackenzie (Nuremberg, Germany).



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-01 20:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.6583.1514716477.27995.help-gnu-emacs@gnu.org>
2018-01-01 20:18 ` Is there somebody still using arduino-mode? Alan Mackenzie
2017-12-31 10:34 stardiviner

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.