[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1106291: elpa-haskell-mode: (void-variable flymake-allowed-file-name-masks)



Hi Frederic-Emmanuel,

Frederic-Emmanuel Picca <picca@debian.org> writes:

> Package: elpa-haskell-mode
> Version: 17.5-2
> Severity: normal
> X-Debbugs-Cc: picca@debian.org
>
> Dear Maintainer,
>
> While trying to open an haskell file, I get a error in the consol
>
> Symbol’s value as variable is void: flymake-allowed-file-name-masks
>
> When starting emacs -q and enabling the debug on error
>
> I get this
>
> Debugger entered--Lisp error: (void-variable flymake-allowed-file-name-masks)
>   add-to-list(flymake-allowed-file-name-masks ("\\.l?hs\\'" haskell-flymake-init))
>   load-library("haskell-mode")
>   funcall-interactively(load-library "haskell-mode")
>   command-execute(load-library record)
>   execute-extended-command(nil "load-library" "load-libraryhas")
>   funcall-interactively(execute-extended-command nil "load-library" "load-libraryhas")
>   command-execute(execute-extended-command)
>
>
> So I would like your advice in order to solve this problem...
>

This seems to be the same as this upstream issue[1] which was supposed
to be fixed in 17.5, and I cannot reproduce this when editing a .hs file
(with haskell-mode enabled).

Can you share the exact steps to reproduce this issue?  Also providing
the output of `M-x haskell-version' would be helpful.

> I observed also this kind of issue with magit...

(Note that it would be better to file a separate bug report against
magit so that it's easier to track each issue.)

>
> Debugger entered--Lisp error: (void-function magit-menu-item)
>   (magit-menu-item "Rename file" #'magit-file-rename '(:enable (eq (magit-diff-scope) 'file)))
>   (define-keymap "C-j" #'magit-diff-visit-worktree-file "C-<return>" #'magit-diff-visit-worktree-file "C-x 4 <return>" #'magit-diff-visit-file-other-window "C-x 5 <return>" #'magit-diff-visit-file-other-frame "$
>   (defvar magit-diff-section-map (define-keymap "C-j" #'magit-diff-visit-worktree-file "C-<return>" #'magit-diff-visit-worktree-file "C-x 4 <return>" #'magit-diff-visit-file-other-window "C-x 5 <return>" #'magi$
>   load-with-code-conversion("/usr/share/emacs/site-lisp/elpa/magit-4.3.3/magit-diff.el" "/usr/share/emacs/site-lisp/elpa/magit-4.3.3/magit-diff.el" nil t)
>   require(magit-diff)
>   load-with-code-conversion("/usr/share/emacs/site-lisp/elpa/magit-4.3.3/magit.el" "/usr/share/emacs/site-lisp/elpa/magit-4.3.3/magit.el" nil nil)
>   load-library("magit")
>   funcall-interactively(load-library "magit")
>   command-execute(load-library record)
>   execute-extended-command(nil "load-library" "load-l")
>   funcall-interactively(execute-extended-command nil "load-library" "load-l")
>   command-execute(execute-extended-command)
>

I cannot seem to be able to reproduce this on Magit 4.3.5, which should
be available in sid.  Can you try to upgrade to this version and try
again?  Similarly, `M-x magit-version' would be helpful.

>
> Cheers
>
> Frederic
>
>
>
> -- System Information:
> Debian Release: 13.0
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 6.12.22-amd64 (SMP w/6 CPU threads; PREEMPT)
> Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
> Shell: /bin/sh linked to /usr/bin/dash
> Init: systemd (via /run/systemd/system)
> LSM: AppArmor: enabled
>
> Versions of packages elpa-haskell-mode depends on:
> ii  dh-elpa-helper  2.1.9
> ii  emacsen-common  3.0.7
>
> Versions of packages elpa-haskell-mode recommends:
> ii  ghc  9.6.6-4
>
> Versions of packages elpa-haskell-mode suggests:
> ii  stylish-haskell  0.14.5.0-3
>
> -- no debconf information

[1] https://github.com/haskell/haskell-mode/issues/1825

-- 
Regards,
Xiyue Deng

Attachment: signature.asc
Description: PGP signature


Reply to: