簡體   English   中英

運行osascript -e'告訴應用程序“TextMate”重新加載捆綁包時出錯

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

我正在嘗試為TextMate2安裝Cucumber包。 我按照官方網頁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'

運行第4行:osascript -e'告訴應用程序“TextMate”重新加載包'后,我收到以下錯誤:

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

任何幫助將不勝感激。

如果雙擊* .tmbundle文件,TextMate將詢問您是否要安裝Bundle。 您不必再將文件復制到Library目錄中。

它並不漂亮,但我發現在〜/ Library / Application Support / TextMate / Cache中手動核對所有內容並重新啟動TextMate會強制重新加載所有bundle。 呸。

我認為在TextMate運行時你無法執行那個shell命令。 確保在嘗試執行之前退出TextMate:osascript -e'tow app“TextMate”重新加載包

然后我在安裝蛋糕寶石時遇到問題,但這是另一個問題!

我一直在使用Textmate2一段時間了,我不認為重載捆綁包可以使用它甚至是必需的(我不確定)。

好像我沒有回答你的問題,但是如果你打算快速獲得應用程序包更改或安裝,你可以使用“Hot Quit”選項。

http://cl.ly/3D3U3k1z3T121L3u0V1s

無論如何TM2現在正在保存會話,所有你需要做的只是重新啟動textmate並且不會丟失任何上下文。 像往常一樣,我不認為你可以抱怨上面的TM隨時都可以加載。

另一方面,盡管有多次破解和嘗試,我還是無法讓Cucumber捆綁與TM2協同工作。 你有運氣嗎?

編輯:從那以后,我一直能夠在對它進行一些細微的修改之后讓它為我工作。 你可以在捆綁的fork中嘗試它。 該捆綁包的作者也可能在原始版本中也進行了相同的修復。

github.com/anandhak/cucumber-tmbundle

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM