asok / projectile-rails

Emacs Rails mode based on projectile
258 stars 59 forks source link

Autoloading file projectile-rails.elc failed to define function hydra-projectile-rails #165

Open reedrolemodel opened 1 year ago

reedrolemodel commented 1 year ago

I'm using straight and get these errors during byte compile:

Warning: 'm' is a malformed function

My setup:

  (use-package projectile-rails
    :after ((projectile)
        (hydra))
    :bind (:map projectile-rails-mode-map
        ("C-c a" . hydra-projectile-rails))
    :init
    (projectile-rails-global-mode))

When I use C-c a I get the error in the title ("Autoloading file projectile-rails.elc failed to define function hydra-projectile-rails"). Could it have to do with the ignore-errors here?

(with-no-warnings
  (ignore-errors
    (defhydra hydra-projectile-rails-find (:color blue :columns 8)
      "Find a resources"
      ("m" projectile-rails-find-model       "model")

I'm using Emacs 30.0.50. Does this work in Emacs 29?