You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
It looks like commit 83da985 caused an issue when using
--stdin
instead of specifying a filename. If there are no errors in your HAML, whenvalidate_ruby
is called,@options[:filename]
isnil
and an exception is generated. For example:This results in
Previously, this would result in
This causes issues with on the fly syntax checkers that utilize STDIN to validate without saving.
The text was updated successfully, but these errors were encountered: