Использую emacs23.3 (os:Macosx),
flymake выдает вот такой статус -> switched OFF Flymake mode for buffer _name_.erl due to fatal status CFGERR, warning Configuration error has occurred while running.
Кто-нибудь знает как это вылечить?
Огромное спасибо.
-
Отправлено 1 год назад #
-
;; Flymake
(require 'flymake)
; erlang
(defun flymake-erlang-init ()
(let* ((temp-file (flymake-init-create-temp-buffer-copy
'flymake-create-temp-with-folder-structure))
;; 'flymake-create-temp-inplace))
(local-file (file-relative-name
temp-file
(file-name-directory buffer-file-name))))
(list "~/bin/eflymake" (list local-file))))(add-to-list 'flymake-allowed-file-name-masks
'("\\.erl\\'" flymake-erlang-init))Отправлено 1 год назад # -
eflymake
#!/usr/bin/env escript
-export([main/1]).main([File_Name]) ->
compile:file(File_Name, [warn_obsolete_guard,
warn_unused_import,
warn_shadow_vars,
warn_export_vars,
strong_validation,
report,
{i, "../include"},
{i, "./include"},
{outdir, "/tmp"}]).Отправлено 1 год назад # -
It might be error parsing problem. Try following steps:
M-x compile
~/eflymake~/bin/eflymake hello.erl
hello.erl:11: syntax error before: io
hello.erl:7: function hello_world/0 undefinedCompilation finished at Sun Jan 29 15:30:49
in the compile buffer
M-x re-builder"\\([a-z_]+\.erl\\):\\([0-9]+\\):\\(.*\\)"
gives you file - line - text
something like:
(push
'("\\([a-z_]+\.erl\\):\\([0-9]+\\):\\(.*\\)"
1 2 3 nil) flymake-err-line-patterns)I suspect that osX mangle error message
Отправлено 1 год назад # -
Вообщем проблема решилась - частично, на MacOsx eflymake всетаки завелся, весь свой .emacs разбил на конфигурации (спасибо отдельное alexott'у).
Теперь такая же фигня на Ubuntu...Отправлено 1 год назад #
