On one of my two machines, TextMate 2 silently fails to load a number of bundles. The LaTeX bundle was the first culprit I noticed.
As is visible here, it purports to be installed, but does not appear in the file mode popup:
https://skitch.com/jrk/gu97u/screen-shot-2011-12-25-at-4.09.54-pm
(Similarly, if I select the LaTeX bundle when prompted on first opening a .tex file, the sheet stalls forever with a full progress bar and the window never renders the contents of the file.)
A few related oddities:
- A string of logged errors which seem to relate to the bundle installation
12/25/11 4:01:18.309 PM [0x0-0xd10d1].com.macromates.TextMate.preview: *** swap_and_unlink(‘/var/folders/b0/j00c1y2j07ncwjgr2kmfw6bc0000gn/T/TextMate_dl_save_filter.BOPNSn’ → ‘/Users/jrk/Library/Application Support/TextMate/Managed/Cache/org.textmate.updates.default’): No such file or directory 12/25/11 4:09:41.050 PM [0x0-0x35035].com.macromates.TextMate.preview: error with swap_and_unlink: /var/folders/b0/j00c1y2j07ncwjgr2kmfw6bc0000gn/T/TextMate_dl_bytes.omR0lQ → /Users/jrk/Library/Caches/com.macromates.TextMate/Bundles/LaTeX (2011-11-13).tbz
- Installing the LaTeX bundle on this machine automatically installs Java and JavaDoc first, and R after. On my other machine (with a largely identical configuration, but where this works), it installs one or two random, seemingly unrelated dependencies, but not all three. (In particular, it didn't seem to install the R bundle.)
This happens on a bare guest account, after wiping all settings and caches, rebooting, etc., and happens identically in all 3 alpha builds I have seen since the release.
Ideas?
To clarify, it's becoming clear that this happens for *all bundles* which are not installed by default. Bundle installation simply does not work on this machine with a fairly fresh install of 10.7.2.
It always throws those errors at swap_and_unlink of the bundle package download (and of TextMate_dl_save_filter), though the tbz files do appear in ~/Library/Caches/com.macromates.TextMate/Bundles.
Further, the bundles in question do appear to be making it into ~/Library/Application Support/TextMate/Managed/Bundles, and while they appear checked in the Bundles preference pane, they do *not* appear in the Bundles menu, the Bundle Editor list, nor the language menu at the bottom of the editor window.
No other errors are visible in any logs I can see.
Any help would be greatly appreciated, as this seems like a fairly serious bug: no non-built-in bundles load at all, with virtually no explanation.
Thanks. -Paying Customer #1528
A further follow-up:
Manually purging ~/Library/Application Support/TextMate/Cache and relaunching TextMate seems to finally force a module reload. This is necessary for me after *any* bundle installation, before that bundle will appear.
(I had already tried purging several other cache directories, but not this one evidently.)
So:
- To future users whose bundles mysteriously don't seem to load: rm -r ~/Library/Application Support/TextMate/Cache
- To the developers: any idea why this is happening? Is there any more information I could provide to help track this down?
On 26 Dec 2011, at 20:56, Jonathan Ragan-Kelley wrote:
[…] any idea why this is happening? Is there any more information I could provide to help track this down?
What file system are you using?
From the errors it’s clear that exchangedata() reports an error (but seems to work anyway?) and the symptooms of not registering new bundles sounds like fsevents are also failing to be sent for changes in the folder, making me think perhaps you symlinked the folder to some third party file system (e.g. Dropbox) which doesn’t support the same suite of features as HFS+?