Comments (6)
Same here.
from barista.
Odd - not sure what's going on here. Will take a look very shortly.
from barista.
I also had this problem. I installed Node+NPM via the official method in HOME (without sudo) :
https://gist.github.com/579814
and installed coffee-script via npm. and even if 'coffee' was in the PATH, Barista did not detect it.
I think that's because of the way barista detects coffee :
https://github.com/Sutto/barista/blob/master/lib/barista/compilers/node.rb#L8 :
using test -x will only return true if an absolute path to a file is given.
For example, testing on 'ls' returns false :
irb(main):001:0> system("test -x 'ls' >/dev/null 2>&1") false irb(main):003:0> system("test -x '/bin/ls' >/dev/null 2>&1") true
So maybe you'll have to change this.
The workaround is to configure the full path in the configuration.
As I installed coffee via NPM in ~/local I added :
Barista.configure do |c| #... c.bin_path = File.expand_path("~/local/bin/coffee") # ... end
from barista.
Oh wow, that's my mistake. Thanks for picking up that glaring oversight.
As a side note, I'm currently porting it across to use the Ruby coffee-script gem to avoid these issues / move that part of barista and that'll be done in the next 2-3 days
from barista.
I've just pushed 0.6.1 with a hopeful fix for this issue - can you guys take a look and confirm if it fixes it for you?
Re. the native version, slainer68's done a bunch of work and I'll be finishing up my work tomorrow as well so 0.7.0 isn't far off (since it introduces deprecated options).
Cheers
from barista.
0.6.1 fixes for me, thanks
from barista.
Related Issues (20)
- RSpec NameError: uninitialized constant CoffeeScript::Engines HOT 2
- Copy .js files "as is" to the public/javascript dir HOT 6
- forcing coffee-script 2.1.x? HOT 2
- Forcing Sinatra middleware HOT 2
- Manual .coffee files compiling
- Option to disable comment being added to compiled output HOT 2
- Barista + Sinatra HOT 2
- allow subdirs in input root HOT 4
- Interpolation with CoffeeScript HAML filter HOT 6
- Random Node not found messages HOT 1
- application error NoMethodError at / undefined method `present?' for CoffeeScript::Engines::Node:Module HOT 1
- coffee-script not found error on new server HOT 1
- Require coffee-script >= or ~> 2.2 HOT 1
- therubyracer not being picked up in version 1.1 HOT 1
- Changed configuration but old settings remain HOT 2
- add minification step HOT 2
- Compiled .js remains if its relative .coffee is deleted. HOT 1
- Feature: joining framework files into a single output file. HOT 2
- rake assets:precompile not working HOT 3
- Filter "coffeescript" is not defined. HOT 1
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 barista.