Как исправить ошибку при компиляции haml
Ruby из под windows после установки haml выполнена:
такая простая команда
haml index.haml index.html
Результат:
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/haml-6.2.3/lib/haml/cli.rb:114:
in `method_missing': undefined method `index.haml' for #<Haml::CLI:0x000002497c5bc4e0
@_invocations={Haml::CLI=>["index.haml"]}, @_initializer=[["index.html"], [],
{:shell=>#<Thor::Shell::Basic:0x000002497b9e1c38 @base=#<Haml::CLI:0x000002497c5bc4e0 ...>,
@mute=false, @padding=0, @always_force=false>, :current_command=>#<struct Thor::DynamicCommand name="index.haml",
description="A dynamically-generated command", long_description="index.haml", wrap_long_description=nil,
usage="index.haml", options={}, options_relation={}, ancestor_name=nil>}],
@options={"escape_html"=>true, "escape_attrs"=>true}, @args=["index.html"],
@shell=#<Thor::Shell::Basic:0x000002497b9e1c38 @base=#<Haml::CLI:0x000002497c5bc4e0 ...>, @mute=false, @padding=0,
@always_force=false>> (NoMethodError)
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.3.0/lib/thor/command.rb:30:in `run'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.3.0/lib/thor/command.rb:144:in `run'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.3.0/lib/thor/invocation.rb:127:in `invoke_command'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.3.0/lib/thor.rb:527:in `dispatch'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/thor-1.3.0/lib/thor/base.rb:584:in `start'
from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/haml-6.2.3/exe/haml:6:in `<top (required)>'
from C:/Ruby32-x64/bin/haml:32:in `load'
from C:/Ruby32-x64/bin/haml:32:in `<main>'