Coder Social home page Coder Social logo

Version 0.8.26 doesn't start about volt HOT 11 CLOSED

voltrb avatar voltrb commented on September 22, 2024
Version 0.8.26 doesn't start

from volt.

Comments (11)

ryanstout avatar ryanstout commented on September 22, 2024

What os and version are you on?

from volt.

ybur-yug avatar ybur-yug commented on September 22, 2024

Confirmed to run fine for me on ubuntu 14.04 with ruby 2.2.0 and volt 0.8.27beta3, so upgrading to the latest version of the gem may fix things @ypcatify , so if youre on Linux that could fix it. If OSX it still may help as well.

from volt.

ypcatify avatar ypcatify commented on September 22, 2024

Sorry for late response, I'm using OSX Yosemite with Ruby ruby-2.1.3.

from volt.

x3qt avatar x3qt commented on September 22, 2024

Tested with ruby 2.2.0 under OS X 10.10.2. Everything works fine.

from volt.

ypcatify avatar ypcatify commented on September 22, 2024

Upgrading to Ruby 2.2.0 helped. Thank you.

from volt.

d4rky-pl avatar d4rky-pl commented on September 22, 2024

Doesn't work for me, fresh ruby 2.2.1 with newly created gemset, OS X 10.10.2

$ bundle exec volt server
Volt 0.8.26
Using rack adapter
/Users/d4rky/.rvm/gems/ruby-2.2.1@volt/gems/volt-0.8.26/lib/volt/server/rack/asset_files.rb:38:in `component': Unable to find component 'rspec-builder.rb', make sure the gem is included in your Gemfile (RuntimeError)

from volt.

d4rky-pl avatar d4rky-pl commented on September 22, 2024

Problem is with component_paths.rb method app_folders. It does this:

app_folders += Gem.loaded_specs.values.map(&:full_gem_path).reject { |g| g !~ /volt/ }.map { |f| f + '/app' }

This would probably be a great idea if I didn't use volt as gemset name ;) This causes, like, everything to add itself to app_folders and because opal-rspec-0.3.0.beta3/app actually exists, it adds opal-rspec-0.3.0.beta3/app/rspec-builder.rb to asset loading path which causes a crashes.

The easiest solution I can think of is:

app_folders += Gem.loaded_specs.values.reject { |g| g.name !~ /volt/ }.map(&:full_gem_path).map { |f| f + '/app' }

# or a bit nicer
app_folders += Gem.loaded_specs.values.map { |g| File.join(g.full_gem_path, 'app') if g.name =~ /volt/ }.compact

# or even nicer (because of single pass) but slightly less readable
app_folders += Gem.loaded_specs.values.reduce([]) { |paths, gem| paths << File.join(gem.full_gem_path, 'app') if gem.name =~ /volt/; paths }

If you want me to send a pull request (maybe with additional test or two?), I'll be happy to provide one after wroclove.rb :)

from volt.

ryanstout avatar ryanstout commented on September 22, 2024

@d4rky-pl awesome you figured it out. I hadn't been able to duplicate this on my end and I don't think anyone put together that a volt gemset was the problem. A PR would be great. I'll be at wroclove, so see you there :-)

from volt.

jhirbour avatar jhirbour commented on September 22, 2024

I ran into the same issue (OS x yosemite using rvm and ruby-2.1.5) @d4rky-pl fixe looks like a cleaner way than I did it, but the principle was the same.

from volt.

nmpennypacker avatar nmpennypacker commented on September 22, 2024

@d4rky-pl - Good call.

from volt.

ryanstout avatar ryanstout commented on September 22, 2024

I believe this is fixed in 0.9, please reopen if its not.

from volt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.