Cannot run Warble (NoMethodError: undefined method `exists?' for File:Class)

214 views Asked by At

I'm new to Jruby and fairly new to Ruby as well.

I was trying to compile to a jar with Warbler, but any Warbler command I run gives the same response:

NoMethodError: undefined method `exists?' for File:Class
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/warbler-2.0.5/lib/warbler/task.rb:45:in `initialize'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/warbler-2.0.5/lib/warbler/application.rb:27:in `new'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/warbler-2.0.5/lib/warbler/application.rb:27:in `load_rakefile'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:82:in `block in run'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:186:in `standard_exception_handling'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/rake-13.0.6/lib/rake/application.rb:80:in `run'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/warbler-2.0.5/lib/warbler/application.rb:79:in `run'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/warbler-2.0.5/lib/warbler/application.rb:74:in `run'
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/warbler-2.0.5/bin/warble:11:in `<top (required)>'
C:/Ruby32-x64/bin/warble:32:in `load'
C:/Ruby32-x64/bin/warble:32:in `<main>'```

I tried running Warbler and expected it to compile to jar (or work when running a help command)

0

There are 0 answers