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

Middleman init crash #1

Closed
rusty-key opened this issue Oct 24, 2013 · 16 comments
Closed

Middleman init crash #1

rusty-key opened this issue Oct 24, 2013 · 16 comments

Comments

@rusty-key
Copy link

I'm always get that error when "middleman init".

~/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require': cannot load such file -- middleman-autoprefixer (LoadError)

When i uninstall middleman-autoprefixer, init works, then i run "bundle install" and all works fine.

sorry for my english

@porada
Copy link
Contributor

porada commented Oct 24, 2013

Admittedly, I’ve never tested the extension under Ruby ≤ 2. Are you able to set this project up on Ruby 2.0.0 and then check if the error still appears?

@rusty-key
Copy link
Author

Same with ruby 2.0.0

/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- middleman-autoprefixer (LoadError)

@porada
Copy link
Contributor

porada commented Oct 24, 2013

Is this project open-sourced somewhere? If not, could you post the contents of your Gemfile?

@rusty-key
Copy link
Author

source 'http://rubygems.org'

gem "middleman"
gem "middleman-livereload"
gem "middleman-autoprefixer"

@rusty-key
Copy link
Author

i remove ' gem "middleman-autoprefixer" ', but get the same error

@rusty-key
Copy link
Author

$ gem list

*** LOCAL GEMS ***

activesupport (3.2.15)
autoprefixer-rails (0.8.20131020)
bigdecimal (1.2.0)
bundler (1.3.5)
bundler-unload (1.0.2)
chunky_png (1.2.9)
coffee-script (2.2.0)
coffee-script-source (1.6.3)
compass (0.12.2)
em-websocket (0.5.0)
eventmachine (1.0.3)
execjs (1.4.0)
executable-hooks (1.2.6)
ffi (1.9.0)
fssm (0.2.10)
haml (4.0.3)
hike (1.2.3)
http_parser.rb (0.5.3)
i18n (0.6.5)
io-console (0.4.2)
json (1.7.7)
kramdown (1.2.0)
listen (1.3.1)
middleman (3.1.6)
middleman-autoprefixer (0.2.1)
middleman-core (3.1.6)
middleman-livereload (3.1.0)
middleman-more (3.1.6)
middleman-sprockets (3.1.4)
minitest (4.3.2)
multi_json (1.8.2)
psych (2.0.0)
rack (1.5.2)
rack-livereload (0.3.15)
rack-test (0.6.2)
rake (0.9.6)
rb-fsevent (0.9.3)
rb-inotify (0.9.2)
rb-kqueue (0.2.0)
rdoc (4.0.0)
rubygems-bundler (1.4.1)
rvm (1.11.3.8)
sass (3.2.12)
sprockets (2.10.0)
sprockets-helpers (1.0.1)
sprockets-sass (1.0.2)
test-unit (2.0.0.0)
thor (0.18.1)
tilt (1.3.7)
uglifier (2.1.2)

@porada
Copy link
Contributor

porada commented Oct 24, 2013

Is this the only printed line of the error you keep getting?

/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- middleman-autoprefixer (LoadError)

@rusty-key
Copy link
Author

 $ middleman init ou
/Users/stfoo/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- middleman-autoprefixer (LoadError)
    from /Users/stfoo/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /Users/stfoo/.rvm/gems/ruby-2.0.0-p247/gems/middleman-core-3.1.6/lib/middleman-core/extensions.rb:71:in `block in load_extensions_in_path'
    from /Users/stfoo/.rvm/gems/ruby-2.0.0-p247/gems/middleman-core-3.1.6/lib/middleman-core/extensions.rb:70:in `each'
    from /Users/stfoo/.rvm/gems/ruby-2.0.0-p247/gems/middleman-core-3.1.6/lib/middleman-core/extensions.rb:70:in `load_extensions_in_path'
    from /Users/stfoo/.rvm/gems/ruby-2.0.0-p247/gems/middleman-core-3.1.6/lib/middleman-core/load_paths.rb:40:in `setup_load_paths'
    from /Users/stfoo/.rvm/gems/ruby-2.0.0-p247/gems/middleman-core-3.1.6/bin/middleman:10:in `<top (required)>'
    from /Users/stfoo/.rvm/gems/ruby-2.0.0-p247/bin/middleman:23:in `load'
    from /Users/stfoo/.rvm/gems/ruby-2.0.0-p247/bin/middleman:23:in `<main>'
    from /Users/stfoo/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `eval'
    from /Users/stfoo/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `<main>'

@porada
Copy link
Contributor

porada commented Oct 24, 2013

Try launching your project with bundle exec prefixed:

$ bundle exec middleman server

@rusty-key
Copy link
Author

I can't init project
If i copy my default middleman project, I can run it with 'middleman server'. It works, but == Unknown Extension: autoprefixer

@porada
Copy link
Contributor

porada commented Oct 24, 2013

I just ran $ middleman and the same error appeared. Quick workaround:

gem uninstall middleman-autoprefixer
middleman init foo

# Now include `middleman-autoprefixer` in your Gemfile, then:

bundle install
bundle exec middleman server # or build

@porada
Copy link
Contributor

porada commented Oct 24, 2013

I will get the issue fixed when I find some time.

@rusty-key
Copy link
Author

Thanks

@rusty-key
Copy link
Author

Stange thing.
When i ran 'middleman init' in current middleman project error doesn't appear

@porada
Copy link
Contributor

porada commented Oct 24, 2013

I think it’s something bigger than my extension—I just reported the issue: middleman/middleman#1059.

@porada porada closed this as completed in e5d94c6 Oct 26, 2013
@porada
Copy link
Contributor

porada commented Oct 26, 2013

Fixed. @stfoo, update the gem to the newest version and you should be ready to go.

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