简体   繁体   中英

Error running osascript -e 'tell app “TextMate” to reload bundles'

I'm trying to install Cucumber bundle for TextMate2. I followed the following instructions from the official page https://github.com/cucumber/cucumber-tmbundle :

mkdir -p ~/Library/Application\ Support/TextMate/Bundles/
cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/cucumber/cucumber-tmbundle.git Cucumber.tmbundle
osascript -e 'tell app "TextMate" to reload bundles'

After running line 4: osascript -e 'tell app "TextMate" to reload bundles', I receive the following error:

23:37: syntax error: A identifier can’t go after this identifier. (-2740)

Any help will be appreciated.

If you double-click on the *.tmbundle file, TextMate will ask whether you want to install the Bundle. You no longer have to copy the file into the Library directory.

It's not pretty, but I found that manually nuking everything in ~/Library/Application Support/TextMate/Cache and restarting TextMate forces all the bundles to reload. Yuck.

I think you cannot execute that shell command when TextMate is running. Make sure you quit TextMate before trying to execute: osascript -e 'tell app "TextMate" to reload bundles'

I then have a problem installing the cake gem, but that's another question!

I have been using Textmate2 for a while now, and I dont think the reload bundles work with it anymore or is even required (I am not sure about this).

It seems like I am not answering your question, but if you intend to have a quick way to get your bundle changes or installations applied, you can just use this, "Hot Quit" option.

http://cl.ly/3D3U3k1z3T121L3u0V1s

Anyway with TM2 now saving sessions, all you need to do it just restart textmate and will not lose any context. And as usual I dont think you can complain above TM taking anytime at all to load.

On a different note, I havent been able to get the Cucumber bundle to work with TM2 in spite of several hack and attempts. Did you have any luck with that?

EDIT: I have been since then able to get the bundle to work for me after some minor changes to it. You could try it in the fork of the bundle here. Also author of the bundle might have made the same fix in the original version as well.

github.com/anandhak/cucumber-tmbundle

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM