Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using middleman 4.0.0.rc.1 #100

Open
craigmdennis opened this issue Oct 11, 2015 · 2 comments
Open

Error when using middleman 4.0.0.rc.1 #100

craigmdennis opened this issue Oct 11, 2015 · 2 comments

Comments

@craigmdennis
Copy link

I've got my Gem pointing to master but still getting the following errors

/usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-core-4.0.0.rc.1/lib/middleman-core/configuration.rb:75:in `define_setting': Setting method doesn't exist (RuntimeError)
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-core-4.0.0.rc.1/lib/middleman-core/configuration.rb:37:in `[]='
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-core-4.0.0.rc.1/lib/middleman-core/configuration.rb:46:in `method_missing'
    from /Users/craigmdennis/Sites/test/config.rb:51:in `block in evaluate_configuration!'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-core-4.0.0.rc.1/lib/middleman-core/extension.rb:367:in `setup_options'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-core-4.0.0.rc.1/lib/middleman-core/extension.rb:294:in `initialize'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/bundler/gems/middleman-deploy-243ab38b0889/lib/middleman-deploy/extension.rb:31:in `initialize'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-core-4.0.0.rc.1/lib/middleman-core/extension_manager.rb:64:in `new'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-core-4.0.0.rc.1/lib/middleman-core/extension_manager.rb:64:in `activate'
    from /Users/craigmdennis/Sites/test/config.rb:50:in `evaluate_configuration!'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-core-4.0.0.rc.1/lib/middleman-core/application.rb:290:in `instance_eval'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-core-4.0.0.rc.1/lib/middleman-core/application.rb:290:in `evaluate_configuration!'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-core-4.0.0.rc.1/lib/middleman-core/application.rb:266:in `start_lifecycle'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-core-4.0.0.rc.1/lib/middleman-core/application.rb:254:in `initialize'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-core-4.0.0.rc.1/lib/middleman-core/preview_server.rb:107:in `new'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-core-4.0.0.rc.1/lib/middleman-core/preview_server.rb:107:in `new_app'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-core-4.0.0.rc.1/lib/middleman-core/preview_server.rb:27:in `start'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-cli-4.0.0.rc.1/lib/middleman-cli/server.rb:67:in `server'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor.rb:40:in `block in register'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /usr/local/var/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/middleman-cli-4.0.0.rc.1/bin/middleman:23:in `<top (required)>'
    from /usr/local/var/rbenv/versions/2.2.0/bin/middleman:23:in `load'
    from /usr/local/var/rbenv/versions/2.2.0/bin/middleman:23:in `<main>'
@mojavelinux
Copy link

You need to change method to deploy_method.

Example:

activate :deploy do |deploy|
  deploy.deploy_method = :git
end

You also need to be using the pre release version. https://rubygems.org/gems/middleman-deploy/versions/2.0.0.pre.alpha

@mojavelinux
Copy link

(It looks like you are using a development version, which will work to, but just to be sure I mentioned it).

nna774 added a commit to nna774/nna774.net that referenced this issue Dec 21, 2015
reshleman added a commit to reshleman/proteus-middleman that referenced this issue Dec 22, 2015
Attempting to generate a Middleman site with Proteus using [Middleman
4][1] resulted in several errors when starting the server.

This resolves those errors by:

* Using an [updated syntax][2] for registering extensions
* Updating middleman-deploy to [an alpha version that supports Middleman
  4][3]

[1]: https://middlemanapp.com/basics/upgrade-v4/
[2]: https://middlemanapp.com/advanced/custom_extensions/#basic-extension
[3]: karlfreeman/middleman-deploy#100 (comment)
reshleman added a commit to reshleman/proteus-middleman that referenced this issue Dec 22, 2015
Attempting to generate a Middleman site with Proteus using [Middleman
4][1] resulted in several errors when starting the server.

This resolves those errors by:

* Using an [updated syntax][2] for registering extensions
* Updating `middleman-deploy` to [an alpha version that supports
  Middleman 4][3]

[1]: https://middlemanapp.com/basics/upgrade-v4/
[2]: https://middlemanapp.com/advanced/custom_extensions/#basic-extension
[3]: karlfreeman/middleman-deploy#100 (comment)
nna774 added a commit to nna774/nna774.net that referenced this issue Dec 31, 2015
suzuryo added a commit to IWDD/iwdd.net-middleman that referenced this issue Jun 18, 2016
beechnut pushed a commit to MAPC/gas-coordination that referenced this issue Sep 29, 2016
Why:

We were getting an error that 'Setting method doesn't exist', but it
wasn't telling us which method it was.

Turns out, the simple `deploy.method` has been changed to
`deploy.deploy_method`.

Thanks to:

karlfreeman/middleman-deploy#100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants