Hi, Are there any signs of this being fixed? In combination with several other apps' messages, this causes my logs to rotate much quicker than I'd like. I get 90 or so of the following on every launch of TextMate:
"TextMate: NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'."
I'm running TextMate 1.5.10 (1631) on OS X 10.7.4.
Thanks :)
Bump.
If i haven't received an answer by next weekend assume i'm no longer on the list.
Sent from my iPhone
On 28 May 2012, at 23:48, sirquijote@lavabit.com wrote:
Hi, Are there any signs of this being fixed? In combination with several other apps' messages, this causes my logs to rotate much quicker than I'd like. I get 90 or so of the following on every launch of TextMate:
"TextMate: NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'."
I'm running TextMate 1.5.10 (1631) on OS X 10.7.4.
Thanks :)
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 9 Jun 2012, at 7:54 AM, SQ wrote:
Bump.
If i haven't received an answer by next weekend assume i'm no longer on the list.
Cowed by your fearsome threat, I used Google. Your answer is here:
http://wiki.macromates.com/Troubleshooting/Lion
Summary: It's absolutely harmless, except for cluttering the log, which I find infuriating, but the 99% don't care. Apparently Allan hand-coded 1.x's Info.plist in the old format, and it seems Lion now requires CFBundleTypeRole. The Info.plist omits the key for almost every file type (about 90) for which TextMate is an editor.
Apple probably figured that Info.plist is tricky to completely fill in by hand, and everybody would be using Xcode (which always includes the key).
I can't speak for Allan for whether a very minor bug will be fixed in 1.5 while his attention is almost exclusively on 2.x.
— F
Sent from my iPhone
On 28 May 2012, at 23:48, sirquijote@lavabit.com wrote:
Hi, Are there any signs of this being fixed? In combination with several other apps' messages, this causes my logs to rotate much quicker than I'd like. I get 90 or so of the following on every launch of TextMate:
"TextMate: NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'."
I'm running TextMate 1.5.10 (1631) on OS X 10.7.4.
Thanks :)
On 9 Jun 2012, at 16:33, Fritz Anderson fritza@uchicago.edu wrote:
On 9 Jun 2012, at 7:54 AM, SQ wrote:
Bump.
If i haven't received an answer by next weekend assume i'm no longer on the list.
Cowed by your fearsome threat,
Threat? You misunderstand. I just don't need the list's traffic cluttering my inbox. I only joined to get an answer to this question. <snip>
Apparently Allan hand-coded 1.x's Info.plist in the old format, and it seems Lion now requires CFBundleTypeRole. The Info.plist omits the key for almost every file type (about 90) for which TextMate is an editor.
So it's a time-consuming rather than complex issue to fix, is that right? I'll happily do this myself if it's just a case of adding 90 keys. if someone could point me to the data that has to be added, and a tutorial on how to add it, i'd even upload the result for others to incorporate.
Try to keep the sarcasm in check in future...
— F
Sent from my iPhone
On 28 May 2012, at 23:48, sirquijote@lavabit.com wrote:
Hi, Are there any signs of this being fixed? In combination with several other apps' messages, this causes my logs to rotate much quicker than I'd like. I get 90 or so of the following on every launch of TextMate:
"TextMate: NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'."
I'm running TextMate 1.5.10 (1631) on OS X 10.7.4.
Thanks :)
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 9 Jun 2012, at 11:29 AM, SQ wrote:
So it's a time-consuming rather than complex issue to fix, is that right? I'll happily do this myself if it's just a case of adding 90 keys. if someone could point me to the data that has to be added, and a tutorial on how to add it, i'd even upload the result for others to incorporate.
Find TextMate in the Finder. Duplicate if for backup purposes, as I don't know whether TextMate is signed to prevent alteration. Compress the backup.
Right-click and select Show Package Contents. Contents > Resources > Info.plist
Drag the file to your favorite editor.
Inside each { } group containing CFBundleTypeName, up to the "bundle items" comment on line 358 (on my copy), add the following line:
===== CFBundleTypeRole = Editor; =====
I am not sure what the role of "bundle items" is, so I won't venture a guess. (Viewer? None? Not Editor.) If you don't do anything with those { } dictionaries, you may still have seven warnings in the log, but that's better than 90+
— F
Ok, I've just fixed it, and it's extremely simple. Here's a walkthrough:
1) Prepare a duplicate of Info.plist (I copy it to the Desktop) 2) Launch the duplicate with TextMate 3) Open the Find dialogue (CMD-f or Edit>Find>Find ) 4) In the Find field, enter the following: CFBundleTypeExtensions 5) In the Replace field, enter the following: CFBundleTypeRole = Editor;\n\tCFBundleTypeExtensions 6) Check the box for "Regular Expressions", uncheck the box for "Ignore Case". DO NOT PERFORM THE "FIND & REPLACE" YET. 7) In the Info.plist document window, select all the text between CFBundleDocumentTypes and /* bundle items */ , inclusive. 8) Perform a "Replace All in Selection" by either going to Edit>Find>Replace All in Selection, or hitting Shift-Ctrl-Cmd-f. You should receive the response in the Find dialogue box that 97 changes were made. 9) Save & Quit TextMate 10) Rename TextMate's original Info.plist file by performing a Get Info on it, appending ".default" to the text in the Name & Extension field, and authenticating if necessary. 11) Drag-and-drop the new Info.plist file into the folder alongside the just-renamed original, and authenticate if necessary. You will want to change its ownership and permissions to reflect those of the original.
That's it. TextMate is working just fine with my new .plist, and I'm down to only 8 errors in the Console, which I can happily live with. This was a case of the physician successfully healing him/herself - the Replace All in Selection made this all so simple :)
Thanks, Fritz, for outlining what needed to be done.
S.
On 9 Jun 2012, at 11:29 AM, SQ wrote:
So it's a time-consuming rather than complex issue to fix, is that right? I'll happily do this myself if it's just a case of adding 90 keys. if someone could point me to the data that has to be added, and a tutorial on how to add it, i'd even upload the result for others to incorporate.
Find TextMate in the Finder. Duplicate if for backup purposes, as I don't know whether TextMate is signed to prevent alteration. Compress the backup.
Right-click and select Show Package Contents. Contents > Resources > Info.plist
Drag the file to your favorite editor.
Inside each { } group containing CFBundleTypeName, up to the "bundle items" comment on line 358 (on my copy), add the following line:
===== CFBundleTypeRole = Editor; =====
I am not sure what the role of "bundle items" is, so I won't venture a guess. (Viewer? None? Not Editor.) If you don't do anything with those { } dictionaries, you may still have seven warnings in the log, but that's better than 90+
F
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate