See #32. Remove TextBuffer depdency to fix building package. Apply workaround.