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

--watch is not a supported CLI flag #1008

Closed
michaelklishin opened this Issue Apr 30, 2013 · 14 comments

Comments

Projects
None yet
3 participants
@michaelklishin

michaelklishin commented Apr 30, 2013

Running Jekyll master with --auto produces

Deprecation: The switch '--auto' has been replaced with '--watch'.

and then crashes with

.rvm/gems/ruby-2.0.0-p0@docs/gems/commander-4.1.3/lib/commander/runner.rb:365:in `block in require_program': program version required (Commander::Runner::CommandError)

Switching to --watch reports

invalid option: --watch
@parkr

This comment has been minimized.

Member

parkr commented Apr 30, 2013

Version?

@parkr

This comment has been minimized.

Member

parkr commented Apr 30, 2013

Works fine for me on master.

~/code/jekyll/site$ be ../bin/jekyll build --watch
Configuration file: /Users/parker/code/jekyll/site/_config.yml
            Source: /Users/parker/code/jekyll/site
       Destination: /Users/parker/code/jekyll/site/_site
      Generating... done.
 Auto-regeneration: enabled
^C     Halting auto-regeneration.

@parkr parkr closed this Apr 30, 2013

@parkr

This comment has been minimized.

Member

parkr commented Apr 30, 2013

If you put it before build, it'll be confused.

@michaelklishin

This comment has been minimized.

michaelklishin commented Apr 30, 2013

Master, tried just a few minutes ago.

@parkr

This comment has been minimized.

Member

parkr commented Apr 30, 2013

What command, exactly?

@michaelklishin

This comment has been minimized.

michaelklishin commented Apr 30, 2013

@parkr this isn't a good place to ask but still: do you kinda maintain jekyll now? redcarpet 2 support has been in pull requests for ages (over a year, I believe) and still not there. I have about 10 sites relying on a hacky plugin.

Who should I talk to to get redcarpet2 support in Jekyll after all?

@michaelklishin

This comment has been minimized.

michaelklishin commented Apr 30, 2013

I did miss build, probably overlooked it. It may be a good idea to give some kinda of a warning instead of a one
line message that leads people to believe the option is unsupported.

@parkr

This comment has been minimized.

Member

parkr commented Apr 30, 2013

Yes, I maintain Jekyll with @mattr- and @mojombo now. We support Redcarpet 2 as of #619

@parkr

This comment has been minimized.

Member

parkr commented Apr 30, 2013

That's the way Commander works. I'll look into it though.

@michaelklishin

This comment has been minimized.

michaelklishin commented Apr 30, 2013

@parkr is #619 part of any release? I'm trying to use redcarpet and see the following in the log

Called #<Proc:0x007fe464c2fb50@/Users/antares/.rvm/gems/ruby-1.9.3-p392@docs/gems/jekyll-0.11.2/bin/jekyll:236>#call(<DirectoryWatcher::Event type: added path: './index.html'>) and all I got was this lousy exception undefined method `new' for Redcarpet:Module

which suggests it uses redcarpet 1's API. This is with the latest release.

@parkr

This comment has been minimized.

Member

parkr commented Apr 30, 2013

The latest stable release is 0.12.1 on RubyGems, but we have some betas. The very latest release is 1.0.0.rc1. Install it with gem install jekyll --pre

@michaelklishin

This comment has been minimized.

michaelklishin commented Apr 30, 2013

I can confirm that 1.0.0.rc1 supports Redcarpet 2. Now to migrate a dozen sites to it ;)

Thanks for the help @parkr!

@parkr

This comment has been minimized.

Member

parkr commented Apr 30, 2013

My pleasure! Glad it works for you!!

@parkr

This comment has been minimized.

Member

parkr commented Apr 30, 2013

In the commits above, you'll see that I added a check if you're using the old behaviour with the new version. Hopefully no one else will have to endure the frustration you did!

@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.