Skip to content

in `initialize': wrong number of arguments (given 2, expected 1) #390

@jose1711

Description

@jose1711

Getting the following on fontcustom compile:

        warn  No input directory given. Using present working directory.
      create  .fontcustom-manifest.json
/usr/lib/ruby/gems/3.0.0/gems/json-1.8.6/lib/json/common.rb:155:in `initialize': wrong number of arguments (given 2, expected 1) (ArgumentError)
	from /usr/lib/ruby/gems/3.0.0/gems/json-1.8.6/lib/json/common.rb:155:in `new'
	from /usr/lib/ruby/gems/3.0.0/gems/json-1.8.6/lib/json/common.rb:155:in `parse'
	from /usr/lib/ruby/gems/3.0.0/gems/fontcustom-2.0.0/lib/fontcustom/manifest.rb:39:in `reload'
	from /usr/lib/ruby/gems/3.0.0/gems/fontcustom-2.0.0/lib/fontcustom/manifest.rb:11:in `initialize'
	from /usr/lib/ruby/gems/3.0.0/gems/fontcustom-2.0.0/lib/fontcustom/generator/font.rb:12:in `new'
	from /usr/lib/ruby/gems/3.0.0/gems/fontcustom-2.0.0/lib/fontcustom/generator/font.rb:12:in `initialize'
	from /usr/lib/ruby/gems/3.0.0/gems/fontcustom-2.0.0/lib/fontcustom/base.rb:62:in `new'
	from /usr/lib/ruby/gems/3.0.0/gems/fontcustom-2.0.0/lib/fontcustom/base.rb:62:in `start_generators'
	from /usr/lib/ruby/gems/3.0.0/gems/fontcustom-2.0.0/lib/fontcustom/base.rb:23:in `compile'
	from /usr/lib/ruby/gems/3.0.0/gems/fontcustom-2.0.0/lib/fontcustom/cli.rb:83:in `compile'
	from /home/jose/.gem/ruby/3.0.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
	from /home/jose/.gem/ruby/3.0.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
	from /home/jose/.gem/ruby/3.0.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
	from /home/jose/.gem/ruby/3.0.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
	from /usr/lib/ruby/gems/3.0.0/gems/fontcustom-2.0.0/bin/fontcustom:5:in `<top (required)>'
	from /usr/bin/fontcustom:25:in `load'
	from /usr/bin/fontcustom:25:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions