Building plugin fails when declaring a delegate, rebuilding or recompiling from editor works
I have declared a delegate in a class header of a plugin and there is nothing wrong there.
But I cant build my code from Visual studio. Rebuilding from Visual Studio works fine, but when I build, the UBT fails silently (without any error message. It just says "couldnt produce item..."). If I recompile the plugin from the editor's module window, it compiles nicely but building from Visual Studio fails as soon as I make a change in my source code.
Why cant I build from Visual Studio when I declare delegates, but have to recompile from the editor instead? Sounds like a bug to me.
asked Mar 19 '17 at 09:25 AM in Bug Reports
I cant seem to reproduce this error with a new project and plugin as well... It might be that I am getting that error with my project and plugin because I have been migrating it across multiple engine iterations... I have no clue. The setup for my existing plugin was simple: I have a component and I needed to add delegates to it. So I properly declared a delegate right above its class definition (above the UCLASS...). But when I tried to build it while my project was open in the editor, it failed silently. There was no error message. the UBT only said it couldnt produce the item. But if I tried to rebuild my project with the same setup instead, it didnt fail. It didnt fail either when I recompiled the plugin from the Modules window.
Unfortunately, I cant provide my project and plugin. I think, we can mark this as solved for the time being... Until I come up with a report that is more precise. Do you agree?
answered Mar 22 '17 at 03:09 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here