Flymake 失败并显示“错误类型参数:symbolp,(utf-8)”

发布于 2024-10-08 17:35:53 字数 394 浏览 0 评论 0原文

我正在尝试让 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

瞳孔里扚悲伤 2024-10-15 17:35:53

当我遇到 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.)

我做我的改变 2024-10-15 17:35:53

回答我自己的问题:问题是我设置了 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 symbol utf-8, and apparently flymake does not like that. Setting process-coding-system-alist to nil solved the problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文