middleman / middleman-blog

Blog Engine Extension for Middleman
https://middlemanapp.com
MIT License
326 stars 179 forks source link

v4 issues #268

Closed hovancik closed 8 years ago

hovancik commented 9 years ago

Hi there,

I am trying out v4 and I am a bit confused.

middleman 4.0.0.rc.1
middleman-blog 4.0.0.rc.1 from git://github.com/middleman/middleman-blog.git (at master)

first thing in readme didn't work:

 middleman init MY_PROJECT --template=blog
Template `blog` not found in Middleman Directory.
Did you mean to use a full `user/repo` path?

so created middleman app and added middleman-blog manually. then I went to guide mentioned in readme but no that much more successful:

middleman article TITLE
Could not find command "article".

So I went to check the source and I see that v4 removed article command and a lot of blogging features? Is this gonna be changed or this is a new direction?

tdreyno commented 9 years ago

The init issue is an oversight on my part, will fix ASAP.

You are correct, the article command is being removed. I don't think any other blogging features are, though.

hovancik commented 9 years ago

Thanks,

what I mean by blogging features are files like: calendar.html.erb, feed.xml.builder, index.html.erb, layout.erb, tag.html.erb

At least for me they are the place where I start: they give me idea of what I should build. Example is always good way to start.

tdreyno commented 9 years ago

Those should still all work, but I'll double check

hovancik commented 9 years ago

They got removed in 6d7fdd6521dcf2e38605db7bdf9425868305e4d5, so that's why. But I see now they are in https://github.com/middleman/middleman-templates-blog

tdreyno commented 9 years ago

Yes, that will be the new home for the template in v4

hovancik commented 8 years ago

any eta on fix?

tdreyno commented 8 years ago

The init part is fixed.

hovancik commented 8 years ago

Thanks. It would be nice to be able to use version 4, thought.

When I use gem install middleman --pre it will install middleman, middleman-cli, middleman-core 4.0.0.rc.1. But running middleman init MY_PROJECT --template=blog installs middleman-core 3.4.0 middleman-blog 3.5.3 so I end-up using middleman-blog (3.5.3) and middleman-core (~> 3.2) and middleman-core (3.4.0)

When then I run 'middleman' all I can see is

Recent Articles

Tags

By Year

Example article from template is not there.

When I use gem "middleman-blog", github: "middleman/middleman-blog" and run bundle, I end up using middleman-core (4.0.0.rc.1),middleman-blog (4.0.0.rc.1) and middleman-core (>= 4.0.0.rc.1) but running middleman will bring error /path/to/MY_PROJECT not found

hovancik commented 8 years ago

@tdreyno I am trying out new version v4 but it's not working for me, any ideas what am I doing wrong?

gem install middleman
Fetching: concurrent-ruby-0.9.2.gem (100%)
Successfully installed concurrent-ruby-0.9.2
Fetching: hamster-2.0.0.gem (100%)
Successfully installed hamster-2.0.0
Fetching: contracts-0.12.0.gem (100%)
Successfully installed contracts-0.12.0
Fetching: addressable-2.4.0.gem (100%)
Successfully installed addressable-2.4.0
Fetching: fastimage-1.8.1.gem (100%)
Successfully installed fastimage-1.8.1
Fetching: capybara-2.5.0.gem (100%)
Successfully installed capybara-2.5.0
Fetching: padrino-support-0.13.1.beta1.gem (100%)
Successfully installed padrino-support-0.13.1.beta1
Fetching: padrino-helpers-0.13.1.beta1.gem (100%)
Successfully installed padrino-helpers-0.13.1.beta1
Fetching: middleman-core-4.0.0.gem (100%)
Successfully installed middleman-core-4.0.0
Fetching: middleman-cli-4.0.0.gem (100%)
middleman-cli's executable "middleman" conflicts with middleman-core
Overwrite the executable? [yN]  y
Successfully installed middleman-cli-4.0.0
Fetching: middleman-4.0.0.gem (100%)
Successfully installed middleman-4.0.0
Parsing documentation for addressable-2.4.0
Installing ri documentation for addressable-2.4.0
Parsing documentation for capybara-2.5.0
Installing ri documentation for capybara-2.5.0
Parsing documentation for concurrent-ruby-0.9.2
Installing ri documentation for concurrent-ruby-0.9.2
Parsing documentation for contracts-0.12.0
Installing ri documentation for contracts-0.12.0
Parsing documentation for fastimage-1.8.1
Installing ri documentation for fastimage-1.8.1
Parsing documentation for hamster-2.0.0
Installing ri documentation for hamster-2.0.0
Parsing documentation for middleman-4.0.0
Installing ri documentation for middleman-4.0.0
Parsing documentation for middleman-cli-4.0.0
Installing ri documentation for middleman-cli-4.0.0
Parsing documentation for middleman-core-4.0.0
Installing ri documentation for middleman-core-4.0.0
Parsing documentation for padrino-helpers-0.13.1.beta1
Installing ri documentation for padrino-helpers-0.13.1.beta1
Parsing documentation for padrino-support-0.13.1.beta1
Installing ri documentation for padrino-support-0.13.1.beta1
Done installing documentation for addressable, capybara, concurrent-ruby, contracts, fastimage, hamster, middleman, middleman-cli, middleman-core, padrino-helpers, padrino-support after 24 seconds
11 gems installed
 middleman init talks --template=blog
         run  git clone --depth 1 https://github.com/middleman/middleman-templates-blog /var/folders/cw/7dm5d5fd2rg18szl26z10_rw0000gn/T/d20151216-15131-1l9pjqy from "."
Cloning into '/var/folders/cw/7dm5d5fd2rg18szl26z10_rw0000gn/T/d20151216-15131-1l9pjqy'...
remote: Counting objects: 16, done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 16 (delta 2), reused 12 (delta 2), pack-reused 0
Unpacking objects: 100% (16/16), done.
Checking connectivity... done.
       exist
      create  .gitignore
      create  Gemfile
      create  config.rb
      create  source/2012-01-01-example-article.html.markdown
      create  source/calendar.html.erb
      create  source/feed.xml.builder
      create  source/index.html.erb
      create  source/layout.erb
      create  source/tag.html.erb
         run  bundle install from "./talks"
Fetching gem metadata from https://rubygems.org/..............
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.3
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.2.5
Using addressable 2.4.0
Using backports 3.6.7
Using builder 3.2.2
Using bundler 1.7.4
Using mime-types-data 3.2015.1120
Using mime-types 3.0
Using mini_portile2 2.0.0
Using nokogiri 1.6.7
Using rack 1.6.4
Using rack-test 0.6.3
Using xpath 2.0.0
Using capybara 2.5.0
Using concurrent-ruby 0.9.2
Using contracts 0.12.0
Using erubis 2.7.0
Using execjs 2.6.0
Using fastimage 1.8.1
Using ffi 1.9.10
Using hamster 2.0.0
Using hashie 3.4.3
Using rb-fsevent 0.9.6
Using rb-inotify 0.9.5
Using listen 3.0.5
Installing padrino-support 0.13.0
Using tilt 1.4.1
Installing padrino-helpers 0.13.0
Installing sass 3.4.20
Using uglifier 2.7.2
Using middleman-core 4.0.0
Installing middleman-blog 4.0.0
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
cd talks
middleman server
/Users/janhovancik/Workspace/Play/talks not found
tdreyno commented 8 years ago

how about bundle exec middleman server?

hovancik commented 8 years ago
/Users/janhovancik/.rvm/gems/ruby-2.1.3@global/gems/bundler-1.7.4/lib/bundler/rubygems_integration.rb:256:in `block in replace_gem': middleman-cli is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/bin/middleman:22:in `<main>'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `eval'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `<main>'

gemfile is:

# If you do not have OpenSSL installed, change
# the following line to use 'http://'
source 'https://rubygems.org'

# For faster file watcher updates on Windows:
gem 'wdm', '~> 0.1.0', platforms: [:mswin, :mingw]

# Windows does not come with time zone data
gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby]

# Middleman Gems
gem "middleman-blog"

# For feed.xml.builder
gem "builder", "~> 3.0"

after I add it:

== The Middleman is loading
/Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/tilt-1.4.1/lib/tilt/template.rb:144:in `require': cannot load such file -- redcarpet (LoadError)
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/tilt-1.4.1/lib/tilt/template.rb:144:in `require_template_library'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/tilt-1.4.1/lib/tilt/markdown.rb:56:in `initialize_engine'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/tilt-1.4.1/lib/tilt/template.rb:56:in `initialize'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/tilt-1.4.1/lib/tilt.rb:98:in `new'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/tilt-1.4.1/lib/tilt.rb:98:in `block in []'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/tilt-1.4.1/lib/tilt.rb:96:in `each'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/tilt-1.4.1/lib/tilt.rb:96:in `[]'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/sources/source_watcher.rb:275:in `strip_extensions'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/sources/source_watcher.rb:265:in `add_file_to_cache'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/sources/source_watcher.rb:233:in `block in update'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/sources/source_watcher.rb:232:in `each'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/sources/source_watcher.rb:232:in `update'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/sources/source_watcher.rb:188:in `poll_once!'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/sources.rb:221:in `each'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/sources.rb:221:in `find_new_files!'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/core_extensions/file_watcher.rb:50:in `before_configuration'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/callback_manager.rb:51:in `instance_exec'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/callback_manager.rb:51:in `block in execute'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/hamster-2.0.0/lib/hamster/vector.rb:1316:in `each'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/hamster-2.0.0/lib/hamster/vector.rb:1316:in `traverse_depth_first'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/hamster-2.0.0/lib/hamster/vector.rb:431:in `each'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/callback_manager.rb:51:in `execute'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/callback_manager.rb:28:in `block in install_methods!'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/application.rb:274:in `start_lifecycle'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/application.rb:265:in `initialize'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/preview_server.rb:140:in `new'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/preview_server.rb:140:in `initialize_new_app'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-core-4.0.0/lib/middleman-core/preview_server.rb:33:in `start'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-cli-4.0.0/lib/middleman-cli/server.rb:86:in `server'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `block in invoke_all'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `each'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `map'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/thor-0.19.1/lib/thor/invocation.rb:133:in `invoke_all'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/thor-0.19.1/lib/thor/group.rb:232:in `dispatch'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/thor-0.19.1/lib/thor/invocation.rb:115:in `invoke'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/thor-0.19.1/lib/thor.rb:40:in `block in register'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/gems/middleman-cli-4.0.0/bin/middleman:23:in `<top (required)>'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/bin/middleman:23:in `load'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/bin/middleman:23:in `<main>'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `eval'
    from /Users/janhovancik/.rvm/gems/ruby-2.1.3/bin/ruby_executable_hooks:15:in `<main>'

bundle:

Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.3
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.2.5
Using addressable 2.4.0
Using backports 3.6.7
Using builder 3.2.2
Using mime-types-data 3.2015.1120
Using mime-types 3.0
Using mini_portile2 2.0.0
Using nokogiri 1.6.7
Using rack 1.6.4
Using rack-test 0.6.3
Using xpath 2.0.0
Using capybara 2.5.0
Using concurrent-ruby 0.9.2
Using contracts 0.12.0
Using erubis 2.7.0
Using execjs 2.6.0
Using fastimage 1.8.1
Using ffi 1.9.10
Using hamster 2.0.0
Using hashie 3.4.3
Using rb-fsevent 0.9.6
Using rb-inotify 0.9.5
Using listen 3.0.5
Using bundler 1.7.4
Using padrino-support 0.13.0
Using tilt 1.4.1
Using padrino-helpers 0.13.0
Using sass 3.4.20
Using uglifier 2.7.2
Using middleman-core 4.0.0
Using middleman-blog 4.0.0
Using thor 0.19.1
Using middleman-cli 4.0.0
Your bundle is complete!
Use `bundle show [gemname]` to see where a bundled gem is installed.
hovancik commented 8 years ago

so it finally works for me with this gemfile

# If you do not have OpenSSL installed, change
# the following line to use 'http://'
source 'https://rubygems.org'

# For faster file watcher updates on Windows:
gem 'wdm', '~> 0.1.0', platforms: [:mswin, :mingw]

# Windows does not come with time zone data
gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby]

# Middleman Gems
gem "middleman-blog"

# For feed.xml.builder
gem "builder", "~> 3.0"

gem "middleman-cli"

gem 'redcarpet', '~> 3.3', '>= 3.3.3'

I guess middleman-cli and redcarpet should be added by default?

tdreyno commented 8 years ago

Well, gem "middleman" definitely should be included by default. Is this coming from a project template?

hovancik commented 8 years ago

yes, the gemfile i am mentioning before is what I got after doing gem install middleman and middleman init talks --template=blog

tdreyno commented 8 years ago

cool. I think I forgot a line. Will fix the template asap

tdreyno commented 8 years ago

Updated. Try now

hovancik commented 8 years ago

many thanks, works just fine now.

thedanotto commented 8 years ago

ok, so what is middleman article replaced with? I loved that command.

tdreyno commented 8 years ago

Nothing, but I plan on bringing it back as time allows

thedanotto commented 8 years ago

Oh, ok. I appreciate it.