Problem: VS opening second instance when opening file from UE4

When I use UE4 to examine the code I’ve written for the door opening and the position report for the chair (from the at least two videos prior to this one), I get a duplicate window of Visual studio open with only that file (not the entire project). It says “Attach…” where the VS instance with the full project properly loaded says “Local Windows Debugger”, and the “Loading Visual Studio…” alert in the UE4 window does not disappear.

Any thoughts on how I might fix this? I’ve tried to google up and answer but the only relevant result (oddly, on the UE4 official forums) has no replies.

Even if you have a project solution? As in right click the .uproject file and selecting “generate visual studio project files”

Yes- the file I want to open (opendoor.h in the current case) is detached from the solution.

I suppose I could just start over since there isn’t much there in the first place, but I’d like to track down what happened to cause it.

Oh, also- a prior commit from before I added the position reporting/log code a few videos back doesn’t exhibit this issue. Clearly something I did but I have no idea what it could have been.

To clarify, you didn’t try doing that again to see if it fixed it?

Apologies; I did try that and had the same problem.

I should also point out that the file I open from UE4 is still part of the project that opens in Visual Studio, but when the solution opens, that file isn’t one of the ones that loads automatically in code view (it is however still listed and available in the solution explorer). It just also opens a second VS instance with that same file open, by itself, and not attached to a project.

It’s not causing any errors in my builds or when running the level in the editor, though, and I’m not seeing anything in the log output that shouldn’t be there.

I’ll be away from my PC all day today, so when I get back I’ll take a closer look. Strange issue, though.

Privacy & Terms