Skip to content
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

jump to model in rinari failed #34

Closed
redguardtoo opened this issue Jun 13, 2012 · 1 comment
Closed

jump to model in rinari failed #34

redguardtoo opened this issue Jun 13, 2012 · 1 comment

Comments

@redguardtoo
Copy link

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)

@purcell
Copy link
Owner

purcell commented Jun 29, 2012

When jump and rinari have re-built in Melpa, this will be working again.

-Steve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants