FontCustom / fontcustom

Generate custom icon webfonts from the comfort of the command line.
3.28k stars 423 forks source link

font_face(:preprocessor) causing error #238

Open adamcoulombe opened 10 years ago

adamcoulombe commented 10 years ago

trying to use a custom scss template, but adding <%= font_face(:preprocessor) %> triggers an error

/var/lib/gems/1.9.1/gems/fontcustom-1.3.4/lib/fontcustom/generator/template.rb:155:in `read': No such file or directory - font/mycustomiconfont/font/mycustomiconfont_e38dcf6b9a4019fc981ed7b920aa6d63.woff (Errno::ENOENT)
    from /var/lib/gems/1.9.1/gems/fontcustom-1.3.4/lib/fontcustom/generator/template.rb:155:in `woff_base64'
    from /var/lib/gems/1.9.1/gems/fontcustom-1.3.4/lib/fontcustom/generator/template.rb:150:in `woff_data_uri'
    from /var/lib/gems/1.9.1/gems/fontcustom-1.3.4/lib/fontcustom/generator/template.rb:133:in `font_face'
    from (erb):5:in `template'
    from /usr/lib/ruby/1.9.1/erb.rb:838:in `eval'
    from /usr/lib/ruby/1.9.1/erb.rb:838:in `result'
    from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:116:in `block in template'
    from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/actions/create_file.rb:53:in `call'
    from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/actions/create_file.rb:53:in `render'
    from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/actions/create_file.rb:46:in `identical?'
    from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/actions/create_file.rb:72:in `on_conflict_behavior'
    from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/actions/empty_directory.rb:113:in `invoke_with_conflict_check'
    from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/actions/create_file.rb:60:in `invoke!'
    from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/actions.rb:94:in `action'
    from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/actions/create_file.rb:25:in `create_file'
    from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/actions/file_manipulation.rb:115:in `template'
    from /var/lib/gems/1.9.1/gems/fontcustom-1.3.4/lib/fontcustom/generator/template.rb:59:in `block in create_files'
    from /var/lib/gems/1.9.1/gems/fontcustom-1.3.4/lib/fontcustom/generator/template.rb:55:in `each'
    from /var/lib/gems/1.9.1/gems/fontcustom-1.3.4/lib/fontcustom/generator/template.rb:55:in `create_files'
    from /var/lib/gems/1.9.1/gems/fontcustom-1.3.4/lib/fontcustom/generator/template.rb:21:in `generate'
    from /var/lib/gems/1.9.1/gems/fontcustom-1.3.4/lib/fontcustom/base.rb:51:in `start_generators'
    from /var/lib/gems/1.9.1/gems/fontcustom-1.3.4/lib/fontcustom/base.rb:22:in `compile'
    from /var/lib/gems/1.9.1/gems/fontcustom-1.3.4/lib/fontcustom/watcher.rb:78:in `compile'
    from /var/lib/gems/1.9.1/gems/fontcustom-1.3.4/lib/fontcustom/watcher.rb:21:in `watch'
    from /var/lib/gems/1.9.1/gems/fontcustom-1.3.4/lib/fontcustom/cli.rb:87:in `watch'
    from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /var/lib/gems/1.9.1/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /var/lib/gems/1.9.1/gems/fontcustom-1.3.4/bin/fontcustom:5:in `<top (required)>'
    from /usr/local/bin/fontcustom:23:in `load'
    from /usr/local/bin/fontcustom:23:in `<main>'
adamcoulombe commented 10 years ago

To add a little more info, in my config file, I have set preprocessor_path: "fonts/mycustomiconfont/font"

the issue doesnt seem to occur if i specify no preprocessor_path