Comments (11)
What os and version are you on?
from volt.
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.
Sorry for late response, I'm using OSX Yosemite with Ruby ruby-2.1.3.
from volt.
Tested with ruby 2.2.0 under OS X 10.10.2. Everything works fine.
from volt.
Upgrading to Ruby 2.2.0 helped. Thank you.
from volt.
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.
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.
@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.
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.
@d4rky-pl - Good call.
from volt.
I believe this is fixed in 0.9, please reopen if its not.
from volt.
Related Issues (20)
- Deployment with docker impossible, missing node.js HOT 3
- `config.try` doesn't work in the server? HOT 4
- How to use Volt::Boolean? HOT 2
- Following todos tutorial update does not work HOT 4
- DDP HOT 2
- Volt, Crawlers and SEO HOT 1
- Disable persistence layer (volt-mongo) on Volt HOT 2
- Volt Future related questions HOT 1
- Server won't start - broken dependency on listen / rb-inotifier gems HOT 1
- Server process doesn't actually stop
- I18n HOT 1
- Has this project been abandoned? HOT 18
- Volt Status HOT 1
- docs at voltframework.com/docs are only visible through a workaround
- Fork Volt HOT 6
- This project is dead? HOT 2
- Is this project definitely dead? HOT 1
- Reborn Volt
- "Connection lost..." smoth offline data and resync
- Link to Opal needs to be switched from .org to .com
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from volt.