The curious case of Eclipse, msysgit, and the obstinate dot files
Just a quick tip if you are having problems with Eclipse, FDT or other Eclipse based tool and writing to dot files cloned from a git repository.
If you are seeing messages about not have permission to write to ".project", ".as3_classpath" and so on, there's a reasonable chance that msysgit (or potentially TortoiseGit) automatically set the dot files to hidden to mimic what you see on a real^h^h^h^h 'nix based machine. While this is nice, for some reason Eclipse, or possibly the underlying Java file calls, can't write to hidden files on Windows so you get access denied messages.
Fortunately, the solution is very simple. Open up a git Bash prompt, and enter this:
git config --global core.hidedotfiles false
And that's it. With core.hidedotfiles set to false, msysgit will no longer set the hidden property on dot files, and Eclipse should be ready to rock.
Of course, this only affects newly fetched files, so if you want to clear the hidden flag on existing files, jump into a cmd prompt (or this may work from the git bash prompt) and type:
cd folder_containing_the_repositoryattrib /s /d -H *
fb-zenburnish: A zenburn inspired colour scheme for FlashBuilder 4
Ok, in order to avoid any real coding at the weekend, I set about messing with the colours and settings within FlashBuilder 4 to turn it into something a little less searing on the eyeballs. These are the results:
Certainly more soothing on my eyeballs anyway. You can grab the theme from:
There are instructions for installation in the README file, but for the sake of padding out an entry to make it seem like I wrote more, here they are in full:
- Launch FlashBuilder.
- Choose File → Export → Other.
- Open General and select Preferences.
- Click next, select "Export all" and "Browse…" to save a backup of your current preferences somewhere.
- Keep that backup safe in case this all goes titsup.
- Choose File → Import → Other.
- Open General and select Preferences.
- Browse to where you've downloaded fb-zenburnish.epf and select it. Make sure "Import all" is selected, ignore any warnings and hit "Finish".
- Panic, as your colours look crazy-ass.
- Choose File → Restart to reload Eclipse.
- Exhale gently and let the sublime colours wash, soothingly, through your eyeballs, caressing your optic nerves, and then engaging in a group hug with your brain.
Well, I like it anyway. I don't hold with this modern nonsense of having a white background for everything. I'm a programmer, not a surface dweller.
In case you are interested, the original (and best, of course) zenburn for vim theme is here:
P.S. I highly recommend downloading Inconsolata to use a programming font. It's beautiful, and practical. I generally use Anonymous Pro for texty programming stuff, but that doesn't seem to work very well in Eclipse. I may switch all my editors to Inconsolata though, now I know it exists.


