I just installed GetBundles and it does not work for me. If I invoke the GetBundles command, a tooltip appears saying 'unknown command, try help'
Narrowing down the problem, the script breaks down immediately at the first invocation of "$DIALOG". Needless to say I have the cutting edge TextMate and tm_dialog2 is at its place, which coincides with the path given by echo "$DIALOG"
Any ideas?
Thanks Piero
On 10.09.2009, at 23:21, Piero D'Ancona wrote:
I just installed GetBundles and it does not work for me. If I invoke the GetBundles command, a tooltip appears saying 'unknown command, try help'
Narrowing down the problem, the script breaks down immediately at the first invocation of "$DIALOG". Needless to say I have the cutting edge TextMate and tm_dialog2 is at its place, which coincides with the path given by echo "$DIALOG"
Hmm, please try in a TM window, empty line:
"$DIALOG" nib --load foo
and press CTRL+R if the caret is at that line.
What do you get?
"Error: nib not found. The nib name must be the first argument given"
or
"unknown command, try help."
If you get "unknown command, try help." this indicates that you have installed an old version of tm_dialog2.
If you get the first error message, hmm hard to say.
Best,
-- Hans
Hans-Jörg Bibiko <bibiko@...> writes:
On 10.09.2009, at 23:21, Piero D'Ancona wrote:
I just installed GetBundles and it does not work for me.
"unknown command, try help."
Thank you Hans for your reply.
So, I had two Dialog2.tmplugin's, one is in ~/Library and the other inside TextMate.
If the one in Library is present (with or without the other one) I get 'unknown command, try help'
If I leave only the one inside TextMate (which should be the newest one, right?) I get "Error: nib not found. The nib name must be the first argument given"
On 11.09.2009, at 00:11, Piero D'Ancona wrote:
Hans-Jörg Bibiko <bibiko@...> writes:
On 10.09.2009, at 23:21, Piero D'Ancona wrote:
I just installed GetBundles and it does not work for me.
"unknown command, try help."
Thank you Hans for your reply.
So, I had two Dialog2.tmplugin's, one is in ~/Library and the other inside TextMate.
If the one in Library is present (with or without the other one) I get 'unknown command, try help'
If I leave only the one inside TextMate (which should be the newest one, right?) I get "Error: nib not found. The nib name must be the first argument given"
Then you should make sure that GetBundles uses the DIALOG2 inside TM (the latest).
--Hans
Hans-Jörg Bibiko <bibiko@...> writes:
Then you should make sure that GetBundles uses the DIALOG2 inside TM (the latest).
Indeed, I trashed the old one and now the panel appears.
Before trying GetBundles I used svn and had everything in /Library (not ~/Library, following the advice of Allan himself in his blog). I wanted to switch to GetBundles, so I trashed the entire /Library/Application Support/TextMate and fired up GetBundles. Unfortunately it stalls forever, claiming to be connecting to the server. If I create an empty /Library/Application Support/TextMate folder, same result. If I reinstate at the same place the original stuff, finally GetBundles works as intended; but then when I try to update a bundle, it says I should use svn instead. So I do not know how to switch to GetBundles completely. How does GetBundles keep track of the fact that svn was used? leftover invisible files? or mind-reading.
Btw, to make this useful to someone else, what are the proper places to put the bundles now?
Thank you again, Piero
On 11.09.2009, at 09:28, Piero D'Ancona wrote:
Hans-Jörg Bibiko <bibiko@...> writes:
Then you should make sure that GetBundles uses the DIALOG2 inside TM (the latest).
Before trying GetBundles I used svn and had everything in /Library (not ~/Library, following the advice of Allan himself in his blog). I wanted to switch to GetBundles, so I trashed the entire /Library/Application Support/TextMate and fired up GetBundles. Unfortunately it stalls forever, claiming to be connecting to the server.
Hmm, I don't have the folder /Library/Application Support/TextMate.
What is GetBundles' console - action gear menu "Show Log" ⇧⌥⌘L ?
If I create an empty /Library/Application Support/TextMate folder, same result. If I reinstate at the same place the original stuff, finally GetBundles works as intended; but then when I try to update a bundle, it says I should use svn instead. So I do not know how to switch to GetBundles completely. How does GetBundles keep track of the fact that svn was used? leftover invisible files? or mind-reading.
GetBundles is looking for a folder called .svn inside of a foo.tmbundle folder. This is a safety mechanism to omit updating bundles which are under git/svn control.
Btw, to make this useful to someone else, what are the proper places to put the bundles now?
GetBundles installs all bundle in ~/Library/Application Support/ TextMate/Pristine Copy/Bundles.
This is the same folder as you install a tmbundle by double-clicking on it in the Finder.
Maybe try this: - quit TextMate - make a security copy of '/Library/Application Support/TextMate' and '~/Library/Application Support/TextMate' - remove /Library/Application Support/TextMate - remove ~/Library/Application Support/TextMate - empty the Trash - start TextMate - start GetBundles (open the console ⇧⌥⌘L) - install a bundle (first it should update the Support/lib before installing the bundle)
Ciao, --Hans
Hans-Jörg Bibiko <bibiko@...> writes:
... I forgot to ask: Which Ruby version do you are using?
TextMate says ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
The log says
~/Library/Application Support/TextMate/Bundles/GetBundles.tmbundle/Support/lib/globalVariables.rb:1: warning: Insecure world writable dir /Users in PATH, mode 040777 ~/Library/Application Support/TextMate/Bundles/GetBundles.tmbundle/Support/getBundles.rb:1143: warning: Insecure world writable dir /Users in PATH, mode 040777
09/11/2009 10:13:14 TextMate[GetBundles] GetBundles – version 1.1 – Hans-Jörg Bibiko - bibiko@eva.mpg.de
09/11/2009 10:13:14 TextMate[GetBundles] GetBundles' DIALOG runs at token 1
sh: subtleGradient: command not found cat: /Library/Application Support/TextMate/Bundles/.tmbundle/info.plist: No such file or directory
09/11/2009 10:13:20 TextMate[GetBundles] svn error for “/Library/Application Support/TextMate/Bundles/Text.tmbundle”: Too many open files - head -n10 '/Library/Application Support/TextMate/Bundles/Text.tmbundle/.svn/entries' | tail -n1
09/11/2009 10:13:20 TextMate[GetBundles] Error while parsing “/Library/Application Support/TextMate/Bundles/Text.tmbundle”: Too many open files - '/Applications/TextMate.app/Contents/PlugIns/Dialog2 00-21-20.tmplugin/Contents/Resources/tm_dialog2' nib --update 1
deadlock 0x5ba20c: sleep:S - ~/Library/Application Support/TextMate/Bundles/GetBundles.tmbundle/Support/getBundles.rb:790 deadlock 0x35700: sleep:F(13) (main) - ~/Library/Application Support/TextMate/Bundles/GetBundles.tmbundle/Support/getBundles.rb:136 ~/Library/Application Support/TextMate/Bundles/GetBundles.tmbundle/Support/getBundles.rb:790:in `getResultFromDIALOG': Thread(0x5be000): deadlock (fatal) from ~/Library/Application Support/TextMate/Bundles/GetBundles.tmbundle/Support/getBundles.rb:1166
09/11/2009 10:13:59 TextMate[GetBundles] Timeout while connecting Bundle Server
09/11/2009 10:14:02 TextMate[GetBundles] Cache File lists 687 bundles. Last modified date: Thu Sep 10 11:00:05 UTC 2009
09/11/2009 10:14:02 TextMate[GetBundles] Warning: Please note that you have already installed an update of TextMate's “Support Folder” in ‘/Library/Application Support/TextMate/Support’. This folder won't be touched by GetBundles' update! GetBundles will always check out the latest version into ‘/Users/piero/Library/Application Support/TextMate/Pristine Copy/Support’. To activate GetBundles' “Support Folder” simply rename or delete ‘/Library/Application Support/TextMate/Support’ and run ‘Update “Support Folder”’. Otherwise you have to update ‘/Library/Application Support/TextMate/Support’ by yourself.
Hmmm.... my installiation seems quite messy, I'd really like to sort it out properly
Piero
PS I played a little with the permissions of /Users (chmod o-w) and GetBundles works fine now. Isn't it like magic...
Piero
On 11.09.2009, at 11:15, Piero D'Ancona wrote:
PS I played a little with the permissions of /Users (chmod o-w) and GetBundles works fine now. Isn't it like magic...
Actually not :)
... Insecure world writable dir “DIR” in PATH, mode 040777 indicates that “DIR” has write permissions set to group AND others, which is in some sense insecure :)
The directory “Users” should set to 40755 ie owner: read/write/ execute, group: read/execute, others: read/execute by default ;) in other words : chmod og-w 'DIR' should be correct.
Maybe I can tweak GetBundles in order to output a better error message for such a case.
--Hans