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

typo completely kills ruby process (2.3.0) #863

Closed
KevinColemanInc opened this issue Jan 13, 2016 · 2 comments
Closed

typo completely kills ruby process (2.3.0) #863

KevinColemanInc opened this issue Jan 13, 2016 · 2 comments

Comments

@KevinColemanInc
Copy link

I noticed if you put a = sign instead of a : in the attributes of a tag, it complete kills the ruby process.

%a{href:"/"} home ok

%a{href="/"} home FAIL

[NOTE] You may have encountered a bug in the Ruby interpreter or extension libraries. Bug reports are welcome. For details: http://www.ruby-lang.org/bugreport.html

It would be nice if I didn't have to restart my server if I typo a character.

@mattwildig
Copy link
Contributor

There must be something else going on here. I get (with Ruby 2.3.0):

~ $  haml
%a{href="/"}

Exception on line 202: undefined method `map' for "/":String
Did you mean?  tap
  Use --trace for backtrace.

How are you using Haml here? Is this part of a Rails app?

@k0kubun
Copy link
Member

k0kubun commented Mar 28, 2017

As written in the message, this is a bug in the Ruby interpreter or extension libraries and not Haml's one. Calling #map for String is broken and Haml may not do that.

Possibly other gems having extension may affect. Please give us the contents of Gemfile.lock or the result of gem list.

And since this issue is not responded, closing.

@k0kubun k0kubun closed this as completed Mar 28, 2017
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