Coder Social home page Coder Social logo

Comments (7)

thomasfl avatar thomasfl commented on September 26, 2024

Maybe there is some useful info in the log files:

   See Crash Report log file under the one of following:
     * ~/Library/Logs/CrashReporter
     * /Library/Logs/CrashReporter
     * ~/Library/Logs/DiagnosticReports
     * /Library/Logs/DiagnosticReports

from filewatcher.

daBee avatar daBee commented on September 26, 2024

Seems to be using 2.0.0 for some reason. Not sure why.

from filewatcher.

thomasfl avatar thomasfl commented on September 26, 2024

How about creating a script like this, so you have control over which version of ruby you're running?

  #!/bin/sh
 /bin/ruby2.1.0/bin/ruby /path/to/filewatcher '~/app.rb' 'app'

from filewatcher.

daBee avatar daBee commented on September 26, 2024

New terminal window with the proper responding which ruby. This is what happens upon filewatcher "/users/rich/app.rb" "app"

rich$ filewatcher "/users/rich/app.rb" "app"
/Users/rich/.rvm/gems/ruby-2.3.2/gems/filewatcher-0.5.3/bin/filewatcher:145:in `spawn': No such file or directory - app (Errno::ENOENT)
from /Users/rich/.rvm/gems/ruby-2.3.2/gems/filewatcher-0.5.3/bin/filewatcher:145:in `block in <top (required)>'
from /Users/rich/.rvm/gems/ruby-2.3.2/gems/filewatcher-0.5.3/lib/filewatcher.rb:60:in `watch'
from /Users/rich/.rvm/gems/ruby-2.3.2/gems/filewatcher-0.5.3/bin/filewatcher:95:in `<top (required)>'
from /Users/rich/.rvm/gems/ruby-2.3.2/bin/filewatcher:22:in `load'
from /Users/rich/.rvm/gems/ruby-2.3.2/bin/filewatcher:22:in `<main>'
from /Users/rich/.rvm/gems/ruby-2.3.2/bin/ruby_executable_hooks:15:in `eval'
from /Users/rich/.rvm/gems/ruby-2.3.2/bin/ruby_executable_hooks:15:in `<main>'

This issue seems to be migrating.

from filewatcher.

daBee avatar daBee commented on September 26, 2024

I got it to work:

filewatcher "/users/rich/app.rb" "clear; ruby ~/app.rb"

from filewatcher.

thomasfl avatar thomasfl commented on September 26, 2024

Great! I can actually remember having the same problems some years ago when I first wrote this. You can also use the execute switch: -e. If the file extension is .rb then a ruby interpreter will execute ut. Actually this option is one of the features I've seriously have considered removing, since it's hardly being used.

from filewatcher.

daBee avatar daBee commented on September 26, 2024

Well the first parameter is the filesystem part, which I know little about. I'm assuming that's just a trigger coming from the filesystem. Second parameter has its own execution (ruby) in the command. What would be useful is if the command could know about .bash_profile aliases, as in my case, it didn't know my alias app which is the command I was needing.

from filewatcher.

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.