The Arduino IDE puts all compile-time stuff in /tmp/, which gets erased on reboot.
And yeah, Teensy is great, but their USB code is a bit... out of spec sometimes. Also, the Teensy 3 in the Arduino IDE is (was?) kind of a nightmare. They have a gigantic C++ object that emulates all the registers on an AVR, and translates operations on those "registers" into operations on ARM MMIO.
After about 5 hours of work and making a lot of progress I was happy with, my Mac crashed and rebooted, which is extremely rare (except when working with something connected via the USB CDCACM driver... sigh).
I then discovered that all the changes from the past 5 hours were gone, the project files were in the exact state they had been when I woke up that day.
Despite compiling and uploading new code to the Teensy 100+ times, the IDE saved nothing new to disk in the process (which on a side note, is weird. Where is the external toolchain getting the changed files from?). I never explicitly hit the save button, so it all disappeared. I spend a good percentage of my life in Xcode, I know it doesn't behave that way. I can't say I remember Netbeans, or Eclipse, or any other IDE that I've used, ever losing work because I only clicked build rather than a separate step for saving to disk.
Apparently that behavior has caused a lot of people to lose a lot of work over the last few years judging from a quick google search.