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

Projectile rails doesn't work #4804

Closed
Eilie opened this issue Jan 25, 2016 · 4 comments
Closed

Projectile rails doesn't work #4804

Eilie opened this issue Jan 25, 2016 · 4 comments

Comments

@Eilie
Copy link

Eilie commented Jan 25, 2016

System Info

  • OS: gnu/linux
  • Emacs: 24.5.1
  • Spacemacs: 0.105.9
  • Spacemacs branch: master (rev. 0562f05)
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(auto-completion git ruby-on-rails yaml syntax-checking
                 (ruby :variables ruby-version-manager 'rbenv))

Reproduction guide

  • Open controller file in Rails project and press SPC m r f.
  • You'll get SPC m r f is undefined error.

Issuing M-x projectile-mode or M-x projectile-rails-mode fixes the issue. In M-x projectile-mode case minibuffer says that projectile is disabled which is weird tho, looks like it doesn't matter which way you turn it.

@peterhoeg
Copy link
Contributor

It's working fine here and I see projectile in the list of enabled modes, so something is not triggering correctly for you. When projectile-mode is run and the ruby-on-rails layer included, the hook takes care of enabling projectile-rails-mode, so that explains why triggering either manually works.

The odd thing is, that projectile-mode is being switched on in core-spacemacs-buffer.el. Are you sure there is no syntax error in some of your files that prevents spacemacs from initializing correctly?

@d12frosted
Copy link
Collaborator

I am not ror developer, so just throwing a question - does the problem persist with the latest Spacemacs with updated packages?

@asok
Copy link
Contributor

asok commented Nov 19, 2016

I believe that might be conntected to: asok/projectile-rails#105 the remedy is to update the packages and enable the global mode via (projectile-rails-global-modes).
This PR fixes it: #7541

@TheBB
Copy link
Collaborator

TheBB commented Feb 11, 2017

Shoud be fixed.

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

No branches or pull requests

7 participants