How do fix the error "could not be compiled. Try rebuilding from the source manually"

If I understand your post correctly, this error would occur from a trigger you don’t mention (an introduction of an unbuilt plugin perhaps?). What is the cause? You could always build a plugin from within another project. I keep some core plugins I reuse in a c++ project and symlink them to other projects.

File names? Anything missing I think you should make yourself (.cpp, .h, .cs).