-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REGRESSION: "Don't un-exclude an excluded package" prevents including explicitly #6518
Comments
I think the issue here is that Spacemacs shouldn't be explicitly excluding any packages, not that you should be able to include a previously excluded package. This latter behavior (include a previously excluded package) is bad since behavior should be independent of layer load order. |
I don't think I agree with this. I'm fine with packages not overriding one another, but |
In other words, |
I think we are too strict about the current rule, owners of packages + dotfile should be allowed to override the exclude property. Does it make sense ? |
@syl20bnr I disagree. Implementing this would require adding at least two different "levels" of exclusion and inclusion, such that packages included by level 1 can be excluded by level 2, and packages excluded by level 1 can be included by level 2, and perhaps other precedence rules (what happens if a package is both included and excluded at the same level?). I don't think it's worth it (although since I probably won't be the one implementing this, I'll let the implementer decide). (As someone who loves doing really bad things with macros and metaprogramming, I actually really love this idea (infinite levels of inclusion/exclusion, toggling dozens of layers that all include and exclude things at different levels, just imagine!), but I don't think it will be good for Spacemacs because it adds unnecessary complexity.) When would a user need to override an excluded package? When would a Spacemacs-bundled layer need to exclude a package? It seems to me that exclusion is solely used by users to exclude packages from Spacemacs-bundled layers or to ban packages that simply cannot work with the functionality provided by a layer (indicating that the package is poorly written). Here's the current documentation for reference:
|
@darkfeline l I agree with you that we should not exclude package just for the sake of it, we should comment But sometimes a layer needs to exclude a package because it replaces some package by another. Maybe we could replace the |
To quickly fix the issue, I commented the package instead of excluding it: 9499e24 |
What would the semantics for I'm not familiar with the interaction between |
We need to get back to the root for this case. :-) @darkfeline you wrote in the PR:
It does not tell me what the PR actually fixes, what is the concrete "bug" you fixed with this PR? Did you encounter it in practice? |
The bug is that I excluded a package in my personal configuration layer, but that package was being re-included by a Spacemacs layer, although I can't recall the details now, since it was a while back. |
This seems fine to prevent. My problem is treating Another option would be the equivalent of css's |
How did you exclude it ? I believe I made a mistake by not asking you what problem you wanted to solve in the first place. |
Sorry, I've been busy, so I haven't had time to revert everything and reproduce this, but from memory: I had excluded When I debugged the issue, I was surprised that this was somehow getting overridden by the mu4e layer, but I was also surprised that this was even happening to begin with because I intuitively assumed that In retrospect, this may have been caused by using
in
in
|
Then we have a bug somewhere, your private layer should have the last word on I suppose that |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Description
#6338 prevents explicitly including packages that have been included like evil-terminal-cursor-changer.
Reproduction guide 🪲
evil-terminal-cursor-changer
todotspacemacs-additional-pacages
SPC f e R
Observed behaviour: 👀 💔
The package is not installed
Expected behaviour: ❤️ 😄
The package should be installed
System Info 💻
The text was updated successfully, but these errors were encountered: