x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Unreal opening new instance of Visual Studio every time a class is added

I already have my project open in Visual Studio, but Unreal still opens up a new instance each time I add a new class. This did not happen before 4.18.2. Is there a way to prevent this?

Product Version: UE 4.18
Tags:
more ▼

asked Dec 15 '17 at 08:27 PM in C++ Programming

avatar image

Bawboc
39 1 2 7

avatar image Cabal1996 Jan 01 '18 at 11:21 PM

I am expiriance the same issue. If I create new class or even try to edit existing, UE opens new instance of visual studio.Some times it opens two of them.

avatar image Bawboc Jan 02 '18 at 02:29 PM

This is a known issue with UE and a fix has been made. I believe it is supposed to be included in the next big release.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

I see that this is actually a known issue and that a fix is upcoming. Would like to expand a little on my issue in case others have experienced the same but will wait for the update. In addition to opening extra instances of Visual Studio, this bug also loads the new c++ file in QT Creator.

Others have mentioned that, after opening a new VS window, the "Loading Visual Studio..."message in the UE IDE remains. After a few minutes - this opens yet another instance of VS for me as well as an instance of QT. Very strange bug and hoping the fix solves it.

more ▼

answered Dec 16 '17 at 04:18 AM

avatar image

Bawboc
39 1 2 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I am expiriance the same issue. If I create new class or even try to edit existing, UE opens new instance of visual studio.

more ▼

answered Jan 02 '18 at 02:27 PM

avatar image

Cabal1996
1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I've had this and what worked for me is to make a slight engine modification if you are running from source.

It seems to only be a problem if your projects are not in the same directory as your engine, as it's only checking the relative path of the project or something. In VisualStudioSourceCodeAccessor.cpp, line 223 change it from:

 if (Filename == InSolutionPath)


to

 FString AbsoluteSolutionPath = FPaths::ConvertRelativePathToFull(InSolutionPath);
 if (Filename == InSolutionPath || Filename == AbsoluteSolutionPath)


That seemed to do the trick for us.

more ▼

answered Jan 09 '18 at 10:39 AM

avatar image

Milly01
89 8 11 19

avatar image StefBarz Jan 20 '18 at 01:00 PM

I tried this in 4.19 preview where the issue is supposed to be already fixed but its not. Now it doesn't spawn a new instance of VS2017 but it doesn't actually do anything at all, I can't open a class from the editor with this 'fix'.

avatar image Bawboc Jan 20 '18 at 01:37 PM

I had tried this in 4.18.2 as well with the same result. I get an error along the lines that UE cannot open Visual Studio. This may be due to the fact that I am not practiced at using my own custom builds. It is disappointing that 4.19 has not fixed this yet.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question