Git Product home page Git Product logo

Comments (3)

jish avatar jish commented on September 6, 2024

It is likely a problem with the PATH in my environment. The ase snippet is attempting to shell out to a Ruby script called snippet_paren.rb. That is causing the error message: /bin/sh: snippet_paren.rb: command not found to be inserted where parenthesis ( should be.

As we can see from the message above, the directory containing snippet_paren.rb is not on my PATH. If I actually add that directory: /Users/josh/Library/Application Support/TextMate/Managed/Bundles/Ruby.tmbundle/Support/bin to PATH in the Variables section of preferences, then the ase and similar snippets work properly.

That seems like extra unnecessary work though... =/

from ruby.tmbundle.

sorbits avatar sorbits commented on September 6, 2024

The bundle support directory is added to PATH via ‘bash_init.sh’ which is implicitly sourced for commands without a shebang, but (for 2.0) that doesn’t seem to apply for code in snippets.

The goal is to have (more or less) full backwards compabitility (with 1.x) so this should be changed (in TextMate).

The other issue mentioned about rvm stuff, that does sound like a local issue, see http://wiki.macromates.com/Troubleshooting/RevertToDefaultBundles for how to revert potential customizations.

On Sep 24, 2013, at 17:58, Josh Lubaway [email protected] wrote:

It is likely a problem with the PATH in my environment. The ase snippet is attempting to shell out to a Ruby script called snippet_paren.rb. That is causing the error message: /bin/sh: snippet_paren.rb: command not found to be inserted where parenthesis ( should be.

As we can see from the message above, the directory containing snippet_paren.rb is not on my PATH. If I actually add that directory: /Users/josh/Library/Application Support/TextMate/Managed/Bundles/Ruby.tmbundle/Support/bin to PATH in the Variables section of preferences, then the ase and similar snippets work properly.

That seems like extra unnecessary work though... =/


Reply to this email directly or view it on GitHub.

from ruby.tmbundle.

jish avatar jish commented on September 6, 2024

Awesome! works great. Thanks guys.

It looks like the bundle updated itself also. It just works now. (:

from ruby.tmbundle.

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.