gpt4 book ai didi

python - emacs 的正确 flymake 配置是什么? (使用 Python.el)

转载 作者:行者123 更新时间:2023-12-03 10:26:33 27 4
gpt4 key购买 nike

我使用 emacs 作为 python IDE。我安装了 flymake,但是,每当我使用 .py 文件时,它都会显示以下错误

Error (flymake): Flymake: Failed to launch syntax check process 'pycheckers' with args (string-operations_flymake.py): Searching for program: no such file or directory, pycheckers. Flymake will be switched OFF



我的 flymake .emacs 配置如下:
;; flymake
(add-to-list 'load-path "~/.emacs.d/vendor")
(add-hook 'find-file-hook 'flymake-find-file-hook)
(when (load "flymake" t)
(defun flymake-pyflakes-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "pycheckers" (list local-file))))
(add-to-list 'flymake-allowed-file-name-masks
'("\\.py\\'" flymake-pyflakes-init)))
(load "~/.emacs.d/vendor/flymake-cursor.el")
(global-set-key [f10] 'flymake-goto-prev-error)
(global-set-key [f11] 'flymake-goto-next-error)

有关如何解决此问题的任何建议

最佳答案

安装 flycheck .应该开箱即用。

关于python - emacs 的正确 flymake 配置是什么? (使用 Python.el),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13894858/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com