Giter Site home page Giter Site logo

Comments (6)

stephencelis avatar stephencelis commented on August 10, 2024

Same here.

from barista.

Sutto avatar Sutto commented on August 10, 2024

Odd - not sure what's going on here. Will take a look very shortly.

from barista.

nicolasblanco avatar nicolasblanco commented on August 10, 2024

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.

Sutto avatar Sutto commented on August 10, 2024

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.

Sutto avatar Sutto commented on August 10, 2024

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.

xaviershay avatar xaviershay commented on August 10, 2024

0.6.1 fixes for me, thanks

from barista.

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.