[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Flymake error when third-party package required in init.el
From: |
Y . E . |
Subject: |
Flymake error when third-party package required in init.el |
Date: |
Mon, 04 Apr 2022 19:24:49 +0300 |
Hello,
*Use case*
- Install any package: `M-x package-install <package>`
- Enable flymake: `M-x flymake-mode`
- Add line `(require 'package)` to init.el
- See flymake error: `Cannot open load file: No such file or directory,
<package>`
- Note that `M-x byte-compile-file` does not produce any errors/warnings.
*Goal*
How to configure flymake or load packages to get rid of this flymake error?
*Additional considerations*
- I'd like to avoid explicitly passing a package's filename to `require`.
- `(setq elisp-flymake-byte-compile-load-path (cons "./" load-path))` fixes the
issue. But still, it seems weird the current default of this variable doesn't
work out-of-the-box for the described use case. Am I missing something?
*Related*
- https://lists.gnu.org/archive/html/emacs-devel/2018-12/msg00073.html
-
https://git.savannah.gnu.org/cgit/emacs.git/commit/lisp?id=4ef97113b24045e87ee05acb48bb2befad84d47a
Thanks.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Flymake error when third-party package required in init.el,
Y . E . <=