Residents have been told that a new Scottish golf facility has been scrapped just weeks before it was expected to open.