(ZAF v1) Building your first Zendesk app - Part 5: Installing the app in Zendesk Support Follow

Comments

6 comments

  • Avatar
    Iqra Rastee

    This is a very nice tutorial
    One of the best tutorial experiences ever

  • Avatar
    Sean Wyatt

    One gotcha for Windows users to be aware of. Windows creates the ubiquitous Thumbs.db file in your assets folder, even though you don't see it (it's a system file). This causes the upload and install to fail. You can just browse the zip file created by the packager and delete Thumbs.db.

    Hopefully saves you 20 minutes of wth time.

  • Avatar
    Jessie Schutz

    Hey swyatt! Thanks for posting that tip!

  • Avatar
    Scott McClannahan

    Hi there, I am getting a weird error when I try to run "zat validate" command.

    The error is long but it is something like:
    [C:/Ruby22/lib/ruby/gems/2.2.0/gems/execjs-2.4.0/lib/execjs/external_runtime.rb:3
    2:in `exec': SyntaxError: Expected identifier, string or number (ExecJS::Runtime
    Error)
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/execjs-2.4.0/lib/execjs/external
    _runtime.rb:14:in `initialize'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/execjs-2.4.0/lib/execjs/runtime.
    rb:44:in `new'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/execjs-2.4.0/lib/execjs/runtime.
    rb:44:in `compile'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/execjs-2.4.0/lib/execjs/module.r
    b:27:in `compile'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/jshintrb-0.2.4/lib/jshintrb/lint
    .rb:48:in `initialize'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/zendesk_apps_support-1.17.1/lib/
    zendesk_apps_support/validations/source.rb:51:in `new'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/zendesk_apps_support-1.17.1/lib/
    zendesk_apps_support/validations/source.rb:51:in `linter'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/zendesk_apps_support-1.17.1/lib/
    zendesk_apps_support/validations/source.rb:39:in `jshint_error'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/zendesk_apps_support-1.17.1/lib/
    zendesk_apps_support/validations/source.rb:45:in `block in jshint_errors'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/zendesk_apps_support-1.17.1/lib/
    zendesk_apps_support/validations/source.rb:44:in `each'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/zendesk_apps_support-1.17.1/lib/
    zendesk_apps_support/validations/source.rb:44:in `each_with_object'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/zendesk_apps_support-1.17.1/lib/
    zendesk_apps_support/validations/source.rb:44:in `jshint_errors'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/zendesk_apps_support-1.17.1/lib/
    zendesk_apps_support/validations/source.rb:33:in `call'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/zendesk_apps_support-1.17.1/lib/
    zendesk_apps_support/package.rb:28:in `block in validate'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/zendesk_apps_support-1.17.1/lib/
    zendesk_apps_support/package.rb:24:in `tap'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/zendesk_apps_support-1.17.1/lib/
    zendesk_apps_support/package.rb:24:in `validate'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/zendesk_apps_tools-1.22.2/lib/ze
    ndesk_apps_tools/command.rb:47:in `validate'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/thor-0.18.1/lib/thor/command.rb:
    27:in `run'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/thor-0.18.1/lib/thor/invocation.
    rb:120:in `invoke_command'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/thor-0.18.1/lib/thor.rb:363:in `
    dispatch'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/thor-0.18.1/lib/thor/base.rb:439
    :in `start'
    from C:/Ruby22/lib/ruby/gems/2.2.0/gems/zendesk_apps_tools-1.22.2/bin/za
    t:5:in `'
    from C:/Ruby22/bin/zat:23:in `load'
    from C:/Ruby22/bin/zat:23:in `']

    which appears completely unrelated to my code. Any ideas??
    Ruby v2.2.0

  • Avatar
    Sean Wyatt

    Scott - have you validated successfully before? If not, have you installed node.js. The ZAT tool did not work for me with just Ruby, but worked fine once node.js was in place.

  • Avatar
    Roman Lomakin

    Thank you for a wonderful guide. I've ran into the same problem as Scott though and Sean's tip does the trick. Much appreciated.

Please sign in to leave a comment.

Powered by Zendesk