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"

System.IO error with VScode

I'm trying to make my first c++ project using VScode, i get this error, and now i can't even open the proyect in the editor, any help is appreciated

 > Executing task: Engine\Build\BatchFiles\Build.bat BatteryCollector Win64 Test "C:\Users\Marchin\Documents\Unreal Projects\BatteryCollector\BatteryCollector.uproject" -waitmutex <
 
 Creating makefile for BatteryCollector (no existing makefile)
 ERROR: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\Epic Games\UE_4.18\Engine\Source\Projects\BatteryCollector\BatteryCollector.uproject'.
           at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
           at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
           at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
           at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
           at System.IO.File.InternalReadAllText(String path, Encoding encoding, Boolean checkHost)
           at Tools.DotNETCommon.JsonObject.Read(FileReference File)
           at UnrealBuildTool.ProjectDescriptor.FromFile(FileReference FileName)
           at UnrealBuildTool.RulesCompiler.CreateProjectRulesAssembly(FileReference ProjectFileName)
           at UnrealBuildTool.UEBuildTarget.CreateTarget(TargetDescriptor Desc, String[] Arguments, Boolean bCompilingSingleFile)
           at UnrealBuildTool.UnrealBuildTool.RunUBT(BuildConfiguration BuildConfiguration, String[] Arguments, FileReference ProjectFile)
 The terminal process terminated with exit code: 1
Product Version: UE 4.18
Tags:
more ▼

asked Dec 01 '17 at 08:32 PM in C++ Programming

avatar image

Marchin7
6 1 1 1

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

1 answer: sort voted first

Hi, I also had the same problem just earlier. What helped me solve it was the answer by the user MirrorNext in another thread. The problem was a space in the .uproject files path.

Renaming your "Unreal Projects" folder to "UnrealProjects" should do the trick.

Cheers

more ▼

answered Jan 11 '18 at 11:20 PM

avatar image

emjaymeow
11 1 3

(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