Skip to content

jump to model in rinari failed #34

Closed
@redguardtoo

Description

@redguardtoo

Looks it's because elpa package inflections-20100806.

Here is the defvar In this packages' inflections.el
(eval-when-compile (require 'cl) (defvar inflection-singulars nil) (defvar inflection-plurals nil) (defvar inflection-irregulars nil) (defvar inflection-uncountables nil))

In older inflections.el. No eval-when-compile. I fixed it by modifying inflections.el and remove inflections.elc.

Can you figure out some work around in init-rails.el without modifying elpa package?

Here is the error message in emacs:
Debugger entered--Lisp error: (void-variable inflection-uncountables) 2 singularize-string("users") 3 #[(term) "\301^H\302^H!\303^H!E!\207" [term delete-dups singularize-string pluralize-string] 5]("users") 4 mapcar(#[(term) "\301^H\302^H!\303^H!E!\207" [term delete-dups singularize-string pluralize-string] 5] ("users" "")) 5 jump-inflections(("users" "")) 6 jump-to-all-inflections("app/models/\\1.rb#\\2" ("users" "")) 7 jump-to("app/models/\\1.rb#\\2" ("users" "") nil) 8 (cond ((equal t matches) (jump-to (cdr spec) nil (if create (quote (lambda (path) (rinari-generate "model" (and ... ...))))))) (($ 9 (and (setf matches (jump-from (car spec))) (cond ((equal t matches) (jump-to (cdr spec) nil (if create (quote (lambda (path) (rin$ 10 (not (and (setf matches (jump-from (car spec))) (cond ((equal t matches) (jump-to (cdr spec) nil (if create (quote (lambda ... ..$ 11 (progn (setq spec (car --cl-var--)) (not (and (setf matches (jump-from (car spec))) (cond ((equal t matches) (jump-to (cdr spec) $ 12 (and (consp --cl-var--) (progn (setq spec (car --cl-var--)) (not (and (setf matches (jump-from (car spec))) (cond ((equal t match$ 13 (while (and (consp --cl-var--) (progn (setq spec (car --cl-var--)) (not (and (setf matches (jump-from (car spec))) (cond ((equal $ 14 (let* ((--cl-var-- (quote (("app/controllers/\\(.*?\\)_controller.rb#\\(.*?\\)$" . "app/models/\\1.rb#\\2") ("app/views/\\(.*?\\)$ 15 (catch (quote --cl-block-nil--) (let* ((--cl-var-- (quote (("app/controllers/\\(.*?\\)_controller.rb#\\(.*?\\)$" . "app/models/\\$ 16 (cl-block-wrapper (catch (quote --cl-block-nil--) (let* ((--cl-var-- (quote (("app/controllers/\\(.*?\\)_controller.rb#\\(.*?\\)$$ 17 (block nil (let* ((--cl-var-- (quote (("app/controllers/\\(.*?\\)_controller.rb#\\(.*?\\)$" . "app/models/\\1.rb#\\2") ("app/view$ 18 (loop for spec in (quote (("app/controllers/\\(.*?\\)_controller.rb#\\(.*?\\)$" . "app/models/\\1.rb#\\2") ("app/views/\\(.*?\\)/$ 19 (let ((root (rinari-root)) (method-command (quote ruby-add-log-current-method)) matches) (loop for spec in (quote (("app/controll$ 20 rinari-find-model(nil) 21 call-interactively(rinari-find-model nil nil)

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