I just upgraded to 2.0.17 and now any bundle that uses pre-compiled binaries in Bundle Support bundle fails to load due to the incompatible architectures:
> /Users/christos/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require': dlopen(/Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle, 9): no suitable image found. Did find: (LoadError)
> /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle: no matching architecture in universal wrapper
> /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle: no matching architecture in universal wrapper - /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle
> from /Users/christos/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
> from /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/textmate.rb:4:in `<top (required)>'
> from /Users/christos/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
> from /Users/christos/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
> from /Users/christos/Library/Application Support/TextMate/Bundles/Linter.tmbundle/Support/lib/linter.rb:1:in `<top (required)>'
> from /Users/christos/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
> from /Users/christos/.rbenv/versions/2.7.2/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:92:in `require'
> from Lint/Strip/Ensure on Save:2:in `<main>'
I checked and the builds don't contain arm_64 architectures:
> [~]> file "/Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle"
> /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle: Mach-O universal binary with 3 architectures: [ppc_7400:Mach-O bundle ppc_7400] [i386:Mach-O bundle i386] [x86_64:Mach-O 64-bit bundle x86_64]
> /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle (for architecture ppc7400): Mach-O bundle ppc_7400
> /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle (for architecture i386): Mach-O bundle i386
> /Users/christos/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/lib/osx/plist.bundle (for architecture x86_64): Mach-O 64-bit bundle x86_64
I can't even find the source for those binaries to try and build them. Any ideas?
Hello
I’ve been using textmate for a while and love it. Ran into a snag today. When I have multi-level nested code, I don't get syntax highlighting.
I’m writing a PHP WordPress function that dynamically builds JSON-LD in a <script> tag and then adds that code to <head> using the wp_head hook. The problem is that JSON-LD and PHP code is not being syntax highlighted when it’s nested like this. It just shows up as a single color (white in my case).
Here’s a truncated example of the code:
<?php
add_action('wp_head', ‘works_jsonld_header');
function works_jsonld_header() {
***variables are being set here***
if (is_singular()){
?>
<script type="application/ld+json”>
{
"@context": "https://schema.org”,
"@type": "CreativeWork”,
"@id": "<?= $works_link ?>”,
"name": "<?= $w_title ?>”,
"about": "<?= $w_descript ?>”,
"accessMode": ["auditory", "textual", "visual”],
"creator": {
"@type": "Person”,
"name": "<?= $short_name ?>”,
"image": "<?= $auth_img_url[0] ?>”,
"sameAs": [
"<?php echo $auth_link . '"’;
if (isset($auth_wiki_p) && $auth_wiki_p !== '' && isset($auth_wiki_s) && $auth_wiki_s !== ''){
echo '"' . $auth_wiki_p . '",’;
} else if (isset($auth_wiki_p) && ($auth_wiki_p !== '') && $auth_wiki_s == ''){
echo '"' . $auth_wiki_p . '"’;
}
if (isset($auth_wiki_s) && $auth_wiki_s !== ''){
echo '"' . $auth_wiki_s . '"’;
}
?>
]
},
*** extra code here***
}
</script>
<?php
}
}
?>
As you can see, this is PHP nested in JSON-LD, that is nested in HTML, that is nested in PHP :) Code works, but there is no syntax highlighting for JSON-LD or PHP within JSON-LD.
Not sure if there is a way to enable this in TextMate or if it would have to be added as a new feature. Since using schema is quickly becoming a standard, and WordPress powers so many sites, I think it would be very useful if this worked.
Thanks
Hi,
I can set `saveOnBlur` in a properties declaration, like so
# File .tm_properties
[ text.scratch ]
saveOnBlur = true
but it seems I cannot set it in a bundle (for the text.scratch type)?
Maybe I'm missing something obvious here?
More generally, what is the relation between bundle settings (other than shell vars) and properties (.tm_properties)?
Cheers,
Per