Flymake 失败并显示“错误类型参数:symbolp,(utf-8)”
我正在尝试让 Flymake 工作,但是当我运行 flymake-mode
时,出现以下错误
switched OFF Flymake mode for buffer TdDisassemblerIde.cpp due to fatal status \
PROCERR, warning Failed to launch syntax check process 'make' with args (-s -C ./ \
CHK_SOURCES=TdDisassemblerIde_flymake.cpp SYNTAX_CHECK_MODE=1 check-syntax): Wrong type \
argument: symbolp, (utf-8)
有任何线索吗?
I'm trying to get flymake to work, but when I run flymake-mode
, I get the following error
switched OFF Flymake mode for buffer TdDisassemblerIde.cpp due to fatal status \
PROCERR, warning Failed to launch syntax check process 'make' with args (-s -C ./ \
CHK_SOURCES=TdDisassemblerIde_flymake.cpp SYNTAX_CHECK_MODE=1 check-syntax): Wrong type \
argument: symbolp, (utf-8)
Any clues?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当我遇到 Flymake 问题时,我会
Mx set-variable Flymake-log-level; 3
然后再次运行flymake (
Mx Flymake-mode
)。然后在 *Messages* 缓冲区中查找有用的错误消息。
上次发生这种情况是在大约一个小时前,我的 Flymakefile 中的检查语法目标缺少源模块;我添加了一个模块,但忘记将其添加到应该包含在 Flymake 编译中的文件列表中。修改 makefile 更正了它。 (这是针对 C# 的,但设置
flymake-log-level
也应该可以为您提供诊断。)When I have a problem with flymake, I do
M-x set-variable flymake-log-level <RET> 3
And then run flymake again (
M-x flymake-mode
).Then look in the
*Messages*
buffer for a useful error message.The last time this happened to me, about an hour ago, my check-syntax target in the flymakefile lacked a source module; I had added a module but had forgotten to add it to the list of files that should be included in a flymake compilation. Modifying the makefile corrected it. (This was for C#, but setting
flymake-log-level
should work to get a diagnosis for you too.)回答我自己的问题:问题是我设置了 process-coding-system-alist 来包含符号 utf-8 ,显然 Flymake 不喜欢这样。将 process-coding-system-alist 设置为 nil 解决了这个问题。
Answering my own question: the problem was that I had set
process-coding-system-alist
to contain the symbolutf-8
, and apparently flymake does not like that. Settingprocess-coding-system-alist
tonil
solved the problem.