all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Flycheck reports are never satisfying!?
@ 2014-08-28 12:05 Sebastien Vauban
  2014-08-28 13:40 ` Stefan Monnier
                   ` (4 more replies)
  0 siblings, 5 replies; 19+ messages in thread
From: Sebastien Vauban @ 2014-08-28 12:05 UTC (permalink / raw)
  To: help-gnu-emacs-mXXj517/zsQ

Hello,

Trying to use, since short, Flycheck on all my prog modes; hence, on my
Emacs configuration file as well.

Though, as you can see on http://screencast.com/t/gfzLGy2h6fH, it never
is satisfying: there are always reports of errors or warnings, while my
code is completely clean (IMO).

Two ECM follow, showing what happens for all packages which I load and
customize.

    Note that, here, I took an extract from Flycheck's configuration
    itself, but the problem is the same with every third party
    package...

1. With an explicit package require:

--8<---------------cut here---------------start------------->8---
;;; .emacs-minimal.el --- Test file

;;; Commentary:

;;; Code:

(add-to-list 'load-path "~/.emacs.d/elpa/flycheck-20140824.731/")

(require 'flycheck)

;; modern on-the-fly syntax checking
(when (try-require 'flycheck)

  ;; indicate errors and warnings via icons in the left fringe
  (setq flycheck-indication-mode 'left-fringe)

  ;; enable Flycheck mode in all buffers
  (add-hook 'after-init-hook 'global-flycheck-mode))

(provide '.emacs-minimal)

;;; .emacs-minimal.el ends here
--8<---------------cut here---------------end--------------->8---

Flycheck reports one ERROR:

--8<---------------cut here---------------start------------->8---
    9   1 error    Cannot open load file: no such file or directory, flycheck (emacs-lisp)
--8<---------------cut here---------------end--------------->8---

2. With an implicit package require (call to function `try-require'):

--8<---------------cut here---------------start------------->8---
;;; .emacs-minimal2.el --- Test file

;;; Commentary:

;;; Internal function:

(defun try-require (feature)
  "Attempt to load a FEATURE (or library).
Return true if the library given as argument is successfully loaded.  If
not, just print a message."
  (condition-case err
      (progn (if (stringp feature)
                 (load-library feature)
               (require feature)) t)
    (file-error (message "Missing package `%s'!" feature) nil)))

;;; Code:

(add-to-list 'load-path "~/.emacs.d/elpa/flycheck-20140824.731/")

;; modern on-the-fly syntax checking
(when (try-require 'flycheck)

  ;; indicate errors and warnings via icons in the left fringe
  (setq flycheck-indication-mode 'left-fringe)

  ;; enable Flycheck mode in all buffers
  (add-hook 'after-init-hook 'global-flycheck-mode))

(provide '.emacs-minimal2)

;;; .emacs-minimal2.el ends here
--8<---------------cut here---------------end--------------->8---

Flycheck reports one warning:

--8<---------------cut here---------------start------------->8---
   25   9 warning  assignment to free variable `flycheck-indication-mode' (emacs-lisp)
--8<---------------cut here---------------end--------------->8---

How am I supposed to do, if Flycheck reports things that shouldn't be
reported?

Best regards,
  Seb

-- 
Sebastien Vauban


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2014-09-01 12:30 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-28 12:05 Flycheck reports are never satisfying!? Sebastien Vauban
2014-08-28 13:40 ` Stefan Monnier
2014-08-28 15:15   ` Sebastian Wiesner
2014-08-28 15:48     ` Stefan Monnier
2014-08-29  9:01       ` Sebastian Wiesner
2014-08-29 13:05         ` Stefan Monnier
     [not found]     ` <mailman.7732.1409240949.1147.help-gnu-emacs@gnu.org>
2014-08-28 17:35       ` Sebastien Vauban
2014-08-29  3:32         ` Stefan Monnier
     [not found] ` <mailman.7720.1409233288.1147.help-gnu-emacs@gnu.org>
2014-08-28 14:14   ` Sebastien Vauban
2014-08-28 14:38     ` Stefan Monnier
2014-08-28 15:51       ` worrying about byte-compiler warnings [was: Flycheck reports are never satisfying!?] Drew Adams
2014-08-28 15:25 ` Flycheck reports are never satisfying!? Sebastian Wiesner
     [not found]   ` <61C65218-4004-4FD5-ABE0-6C863E5F60A6-MMJ3jE1zGgOaMJb+Lgu22Q@public.gmane.org>
2014-08-28 15:39     ` Sebastien Vauban
2014-08-28 15:45       ` Sebastian Wiesner
     [not found]         ` <B540BE8A-D03C-4F2D-ADB7-2A17F8E55F4E-MMJ3jE1zGgOaMJb+Lgu22Q@public.gmane.org>
2014-08-28 18:35           ` Sebastien Vauban
     [not found]         ` <mailman.7753.1409250970.1147.help-gnu-emacs@gnu.org>
     [not found]           ` <mailman.7753.1409250970.1147.help-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2014-09-01 10:00             ` Sebastien Vauban
2014-09-01 10:23               ` Sebastian Wiesner
2014-09-01 12:27 ` sokobania.01
2014-09-01 12:30 ` sokobania.01

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.