Skip to content

projectile-consult does not byte-compile without consult #2037

Description

@marienz

The projectile-consult module added in 0fe44ed is intended as a "soft dependency" on consult by not having Projectile's core load it, but build systems don't understand this: they attempt to byte-compile the new file along with the rest of Projectile as defined by its MELPA package, which fails without consult present. This can result in a noisy warning (package.el, which pops up a *Compile-Log* buffer but still installs the package) or outright failure (nixpkgs, see nix-community/emacs-overlay#544).

Would you consider either:

  • Making projectile-consult.el byte-compile without consult present? I took a stab at this in https://github.com/marienz/projectile/tree/optional-consult: happy to send that (or a different approach if you suggest one) as a PR.
  • Excluding projectile.consult.el from Projectile's MELPA package / recipe, and adding a separate MELPA package for it?
  • (Or some other solution...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions