emacs - Directory-local variables error: wrong-type-argument stringp -
emacs - Directory-local variables error: wrong-type-argument stringp -
i have next .dir-locals.el:
((c++-mode . ((irony-compile-flags-work-dir . "/home/aparulekar/developer/gameplay") (irony-compile-flags . (list "-igameplay/src" "-iexternal-deps/bullet/include" "-iexternal-deps/oggvorbis/include" "-iexternal-deps/libpng/include" "-iexternal-deps/zlib/include" "-iexternal-deps/lua/include" "-iexternal-deps/glew/include")))))
when visit file in folder, next error:
directory-local variables error: (wrong-type-argument stringp irony-compile-flags)
could please tell me why can't assign list directory-local variable?
(this https://github.com/sarcasm/irony-mode)
edit - anton's answer, plus had dir-local unsafe-variable-related suppression going on.
irony-compile-flags
defined list of strings (repeat string
) in defcustom
form.
in .dir-locals.el
, you've forgotten you're providing values, not lisp expressions evaluated. hence list
symbol redundant, , that's breaks type check: you're setting irony-compile-flags
list starting symbol list
. seek this:
((c++-mode . ((irony-compile-flags-work-dir . "/home/aparulekar/developer/gameplay") (irony-compile-flags . ("-igameplay/src" "-iexternal-deps/bullet/include" "-iexternal-deps/oggvorbis/include" "-iexternal-deps/libpng/include" "-iexternal-deps/zlib/include" "-iexternal-deps/lua/include" "-iexternal-deps/glew/include")))))
emacs elisp
Comments
Post a Comment