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

erb2haml converter halts install when using a rails template setup file #107

Open
hmistry opened this issue Feb 4, 2016 · 2 comments
Open

Comments

@hmistry
Copy link

hmistry commented Feb 4, 2016

I use a rails template (rails -m option) with my commonly used gems to quickly create a new project. I found the prompt to delete the old html files when running rails haml:erb2haml caused the script to halt. Thought you'd like to know.

@crawfoal
Copy link

It halts, like it is waiting for you to tell it what to do (answer y/n), or it hangs erroneously?

In my template, I've never had the haml:erb2haml task hang erroneously, it just stops and waits for me to answer yes or no. How are you running the task? I run it via the rake method (a part of the Rails Templates API, but not documented anymore).

Also, this might not be related, but I've had a similar problem with generate 'rspec:install', and I've found it doesn't hang if I stop spring first (run 'spring stop'). The generate command uses rails instead of rake, which is why I'm thinking it could be related.

@ksouthworth
Copy link
Contributor

I'm having this issue as well, running inside a rails application template (Thor action) when executing via:

HAML_RAILS_DELETE_ERB=true rails haml:erb2haml

I still get prompted:

Would you like to delete the original .erb files? (This is not recommended unless you are under version control.) (y/n)

and I have to type the y and press Enter to continue the rails template execution

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

3 participants