Thanks, Allan and Sam - your suggestion worked, and I've documented
the steps I took at
http://www.davidchinphoto.com/snow-leopard-and-adobe-unit-types-osax/
====
David Chin
http://www.facebook.com/people/David_Chin/528318091http://www.davidchinphoto.com/http://www.flickr.com/photos/davidchinphoto/http://www.pbase.com/dlcmh
> On Sep 13, 2009, at 20:57 , Allan Odgaard wrote:
>
>> On 13 Sep 2009, at 09:49, David Chin wrote:
>>
>>> [...] I get an error message that looks like this:
>>>
>>> 2009-09-13 15:38:10.711 osascript[5261:903] Error loading
>>> /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/
>>> Adobe
>>> Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit
>>> Types.osax/Contents/MacOS/Adobe Unit Types, 262): [...]
>>
>>> [...]
>>> Any ideas on where in the Blogging Bundle I can make this change? Or
>>> does the change need to be made in one of the Ruby libraries?
>>
>> You need to get rid of: /Library/ScriptingAdditions/Adobe Unit
>> Types.osax
> That's what I thought as well; and indeed, after removing this file,
> the warning was gone. However, Photoshop (CS3) started complaining
> that it had not been installed properly at every launch. Nevertheless,
> it worked just fine.
> Make your choice :-)
>
> Sam
I recently updated to Snow Leopard and I am having a really odd thing pop
up. Right now when editing a file I can click any where in the window and
the cursor will be inserted there. The funny part is that I can click to the
right of a line break and the cursor will stay there. If I start typing the
line break jumps to the right of my current position. Another funny thing
is with soft tabs. In my Ruby files previously if I entered a tab (2 space
soft) and then hit delete it would remove the full tab (both spaces). Now
when I hit tab it inserts the 2 spaces but if I have to press delete twice
to clear it because it only removes one space at at time.
Anyone else seen something like this? Or anyone kno
Peer Allan
Development Team Lead, e-Business
CanadaDrugs.com
24 Terracon Place
Winnipeg, MB, Canada
R2J 4G7
Phone: (204) 654-7951
Fax: (204) 654-7910
www.canadadrugs.com
After upgrading to Snow Leopard, I tried to post to my Wordpress blog
via Textmate's Blogging Bundle, which I've used with absolutely no
problems in the past.
Now, however, the post gets posted to the blog OK, but in the Textmate
document itself, I get an error message that looks like this:
2009-09-13 15:38:10.711 osascript[5261:903] Error loading
/Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe
Unit Types: dlopen(/Library/ScriptingAdditions/Adobe Unit
Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image
found. Did find:
/Library/ScriptingAdditions/Adobe Unit
Types.osax/Contents/MacOS/Adobe Unit Types: no matching architecture
in universal wrapper
osascript: OpenScripting.framework - scripting addition
"/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no
loadable handlers.
Doing a Google search on this, I found a discussion at
http://forums.adobe.com/message/2225123, where it was suggested that
calls to osascript be done like this:
arch -i386 osascript scriptname.extension
Any ideas on where in the Blogging Bundle I can make this change? Or
does the change need to be made in one of the Ruby libraries?
Thanks for any help.
====
David Chin
http://www.facebook.com/people/David_Chin/528318091http://www.davidchinphoto.com/http://www.flickr.com/photos/davidchinphoto/http://www.pbase.com/dlcmh
I am getting errors when running "mate" only while logged in as admin.
Things work fine when logged in as a regular user. This involves textmate
1.5.9 on OSX 10.6 and I am seeing the issue with both of my macs (mid-2007
imac and feb 2008 mbp). I did not encounter this prior to the Snow Leopard
and textmate 1.5.9 upgrades.
Starting bash, then doing a "login admin" and then attempting to edit
produces this error:
mate test.txt
Tue Sep 8 03:09:15 Mothra-2.local mate[17070] <Error>: kCGErrorFailure: Set
a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
_RegisterApplication(), FAILED TO establish the default connection to the
WindowServer, _CGSDefaultConnection() is NULL.
the console is hung at this point until you hit Control-Z
Trying again with sudo changes the error to this:
sudo mate test.txt
2009-09-08 03:00:06.946 mate[17053:e07] An uncaught exception was raised
2009-09-08 03:00:06.949 mate[17053:e07] *** -[NSArray objectAtIndex:]: index
(-1 (or possibly larger)) beyond bounds (0)
2009-09-08 03:00:06.950 mate[17053:e07] *** Terminating app due to uncaught
exception 'NSRangeException', reason: '*** -[NSArray objectAtIndex:]: index
(-1 (or possibly larger)) beyond bounds (0)'
*** Call stack at first throw:
(
0 CoreFoundation 0x926b258a __raiseError + 410
1 libobjc.A.dylib 0x965a6f49 objc_exception_throw + 56
2 CoreFoundation 0x926f63f1 -[__NSArray0
objectAtIndex:] + 209
3 mate 0x000026e3 0x0 + 9955
4 mate 0x000037af 0x0 + 14255
5 mate 0x0000261a 0x0 + 9754
6 mate 0x00002535 0x0 + 9525
)
Trace/BPT trap
the console is not hung after this error message
Any help would be greatly appreciated.
thanks
Nick
Hello,
I am using Textmate 1.5.9. When I visit a .erb file or a .html.erb file the scope selector identifies the source as being source.ruby.rails rather than the text.html.ruby which I believe is the correct scope. As a consequence a lot of my snippets are unavailable.
Thanks for any suggestions you might have.
Cheers,
Santosh
------
The following is the definition of the language:
{ scopeName = 'text.html.ruby';
fileTypes = ( 'rhtml', 'erb', 'html.erb' );
foldingStartMarker = '(?x)
(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?>
|<!--(?!.*-->)
|\{\s*($|\?>\s*$|//|/\*(.*\*/\s*$|(?!.*?\*/)))
)';
foldingStopMarker = '(?x)
(</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>
|^\s*-->
|(^|\s)\}
)';
patterns = (
{ name = 'comment.block.erb';
begin = '<%+#';
end = '%>';
captures = { 0 = { name = 'punctuation.definition.comment.erb'; }; };
},
{ name = 'source.ruby.rails.embedded.html';
begin = '<%+(?!>)[-=]?';
end = '-?%>';
captures = { 0 = { name = 'punctuation.section.embedded.ruby'; }; };
patterns = (
{ name = 'comment.line.number-sign.ruby';
match = '(#).*?(?=-?%>)';
captures = { 1 = { name = 'punctuation.definition.comment.ruby'; }; };
},
{ include = 'source.ruby.rails'; },
);
},
{ include = 'text.html.basic'; },
);
}
Hi,
I use the ZenCoding Bundle for HTML/CSS, but frequently I need to use HTML
snippets in PHP files too. Yes, I can change the scope from just 'text/html'
to 'text..html, source.php' but editing hundreds of snippets would take
time.
Is there a shortcut method to achieve this?
Thanks in advance for your help.
Hi
JavaScript, a simple (I hope) question. Why the JavaScript Language
Grammar only recognize as foldingStartMarker the "function" key word
while Ruby, for example, recognizes all its possibilities for it to
build any kind of block?
I know, ruby has more followers in the TM community, I understand.
But JavaScript opening of blocks are much more standard than ruby ones
and it should be interesnting to have a repository from where to take
small code snippets as this pari foldingStartMarker/foldingEndMarker
that are so common in all the languages.
In the meanwhile I have borrow the ruby part of text and substitute
the JavaScript part (changing only def by function and end by }) and
it seems to work :)
- juan falgueras
Hello List,
This is a small problem, but since I encounter it many times a day I
thought that I'd ask it on the list, maybe there is a solution for it,
or there is something that I don't kknow.
Let's say I have a figure with \label{fig:plin-power-up}. When I want
to refer to this figure using \ref command, when I type "\ref{plin"
and press option+esc, the label that I am looking for is not properly
found. I have to scroll through a long list of labels (including
labels that don't have the word plin at all) to find the correct one.
On the other hand, if I type "\ref{fig:plin" and press the option+esc
keyboard shortcut, I am presented with the correct label (the list is
much shorter this time), but when I select it from the list and press
enter what I get is \ref{fig:fig:plin-power-up}. Then I have to go
back and delete the extra "fig:"
Is there something that I am doing wrong?
Any help is greatly appreciated.
Best,
Hooman Javidnia
So I've been trying to use TextMate for coding in c/c++ instead of Xcode as
of late, but any time I do a command-R to run my code, I get this error:
The current PATH is:
"/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/usr/X11/bin
Please add the directory containing “g++” to PATH in TextMate's Shell
Variables preferences.
Alternatively, the PATH can be retrieved from Terminal but this requires a
relaunch: "
Even when I try to retrieve the PATH from Terminal, I still get this error.
Has any one run into this kind of problem before? Searching yielded no
results, so I was hoping that someone here could help me.
Thanks in advance,
-Matt
--
View this message in context: http://www.nabble.com/can%27t-find-%22g%2B%2B%22-on-PATH-problem-tp25410391…
Sent from the textmate users mailing list archive at Nabble.com.
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