zadirion / Unreal.nvim

Unreal Engine support for Neovim
MIT License
72 stars 16 forks source link

TargetName not used #2

Open coodeneko opened 10 months ago

coodeneko commented 10 months ago

Thanks for the plugin. I'm using it off and on for a the last little bit and it usually works great. I've run into an issue where It looks like the TargetNames are not being used so I can't build. I've got a project, let's call it's project file ProjectA.uproject and in it there are multiple modules, TargetA TargetAEditor TargetB... When trying to run generate for TargetAEditor, it instead is attempting to use a target called ProjectAEditor. I've updated the UnrealNvim.json's TargetName to be TargetAEditor but that doesn't help. Is there a step I'm missing that let's be use modules that don't use the project's filename?

zadirion commented 10 months ago

hmm interesting, thanks for bringing it to my attention. Indeed the plugin is making some assumptions that seem to break down when modules come into play. I'll take a look at this as soon as possible. If you could provide a small sample project that replicates the issue that would be much appreciated and would speed things along, otherwise I'll put one together myself when I have a bit of time.

I'm not sure yet what you can do to work around the issue unfortunately

coodeneko commented 10 months ago

Thanks checking. I've created an empty project that gives the same results, just make sure to update your Engine folder. No rush in getting it fixed, I've got a work around right now using the command line. Great project BTW. https://github.com/coodeneko/EmptyUnrealDemo