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
As an example, I use require-package to install and require 'vterm. And (featurep 'vterm) return nil.
And in another package vterm-toggle, it require vterm. The require function use featurep to define whether vterm is loaded. This lead to double load of vterm and lead emacs to crash finally.
I think the biggest problem is that require-package doesn't act like require when you check the symbol with featurep, which may lead to double load and is hard to detect.
ls there some way to fix it?
The text was updated successfully, but these errors were encountered:
Not sure what's the problem. require-package installs a package from elpa. require load a package if it can be found from load-path. featurep checks if a package is loaded. You can require a package multiple times. require has some builtin code works same way s featurep.
As an example, I use require-package to install and require 'vterm. And (featurep 'vterm) return nil.
And in another package vterm-toggle, it require vterm. The require function use featurep to define whether vterm is loaded. This lead to double load of vterm and lead emacs to crash finally.
I think the biggest problem is that require-package doesn't act like require when you check the symbol with featurep, which may lead to double load and is hard to detect.
ls there some way to fix it?
The text was updated successfully, but these errors were encountered: