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

5.0.3 haml -c --stdin generates an exception when checking ruby code #957

Closed
moorecp opened this issue Sep 11, 2017 · 1 comment
Closed

Comments

@moorecp
Copy link

moorecp commented Sep 11, 2017

It looks like commit 83da985 caused an issue when using --stdin instead of specifying a filename. If there are no errors in your HAML, when validate_ruby is called, @options[:filename] is nil and an exception is generated. For example:

# haml -c --stdin
%foo
  %bar

This results in

Exception on line 341: no implicit conversion of nil into String
  Use --trace for backtrace.

Previously, this would result in

Syntax OK

This causes issues with on the fly syntax checkers that utilize STDIN to validate without saving.

@k0kubun
Copy link
Member

k0kubun commented Sep 25, 2017

resolved by #958

@k0kubun k0kubun closed this as completed Sep 25, 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

2 participants