You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for taking the time to report an issue and improve Flycheck. This template is for actual bugs you observed. If you have trouble setting up Flycheck, or if you have a question, please use the relevant issue template instead.
Checklist
I have checked existing issues for potential duplicates before creating this one.
kkl0-fun, which is defined at top-level, linter shows no error
at all about it
kkl1-fun is defined as long as the *kk0l* global variable
is assigned as t
The first linter error appears when the kkl1-fun is called first
time
At the second call-site of kkl1-fun, the linter "undefined-unction"
error disappears
kkl2-fun is totally undefined, and linter identifies the
undefined function error at its first call-site
at the second call-site of kkl2-fun, the undefined-function linter
error disappears as well
These suggest that
flycheck's emacs lisp linter is unable to identify functions defined within some control block such as when
flycheck's emacs lisp linter will not report error for undefined furnction starting from teh second call site
However, if we use built-in elint.el, we got the following expected output from elint-curretn-buffer:
Expected behavior
Emacs lisp functions defined in nested block should be identified just like those functions defined at top-level, the the report of undefined functions should be consistent
your problem.
System configuration
Syntax checkers for buffer test.el in emacs-lisp-mode:
First checker to run:
emacs-lisp
- may enable: yes
- may run: t
- executable: Found at /home/kiong-ge/.local/emacs/29/bin/emacs
- next checkers: emacs-lisp-checkdoc
Checkers that may run as part of the first checker's chain:
emacs-lisp-checkdoc
- may enable: yes
- executable: Found at /home/kiong-ge/.local/emacs/29/bin/emacs
Flycheck Mode is enabled. Use C-u C-c ! x to enable disabled
checkers.
--------------------
Flycheck version: 33snapshot (package: 20230813.620)
Emacs version: 29.1
System: x86_64-pc-linux-gnu
Window system: pgtk
Emacs configuration:
Plain Emacs / Custom configuration
Spacemacs
Doom Emacs
Other shared configuration
Additional notes
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Thank you for taking the time to report an issue and improve Flycheck. This template is for actual bugs you observed. If you have trouble setting up Flycheck, or if you have a question, please use the relevant issue template instead.
Checklist
Bug description
A clear and concise description of what the bug is.
Steps to reproduce
Steps to reproduce the behavior:
Use the following code:
The flycheck will shows the following diagnositc:
we can see the following probelm:
kkl0-fun
, which is defined at top-level, linter shows no errorat all about it
kkl1-fun
is defined as long as the*kk0l*
global variableis assigned as t
kkl1-fun
is called firsttime
kkl1-fun
, the linter "undefined-unction"error disappears
kkl2-fun
is totally undefined, and linter identifies theundefined function error at its first call-site
error disappears as well
These suggest that
when
However, if we use built-in elint.el, we got the following expected output from
elint-curretn-buffer
:Expected behavior
Emacs lisp functions defined in nested block should be identified just like those functions defined at top-level, the the report of undefined functions should be consistent
your problem.
System configuration
Emacs configuration:
Additional notes
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: