Open olayasturias opened 1 year ago
A workaround is to modify the permissions of that folder using Nautilus > right click on folder > Properties > Permissions tab. Now I get the following error:
Writing project files... 99%
Unhandled exception: System.NullReferenceException: Object reference not set to an instance of an object.
at UnrealBuildTool.VSCodeProjectFileGenerator.WriteConfiguration(String Name, String ProjectName, IEnumerable`1 SourceFiles, CppStandardVersion CppStandard, FileReference CompilerPath, DirectoryReference SysRootPath, Dictionary`2 ModuleCommandLines, JsonFile OutFile, DirectoryReference OutputDirectory) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 670
at UnrealBuildTool.VSCodeProjectFileGenerator.WriteCppPropertiesFile(DirectoryReference OutputDirectory, ProjectData Projects) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 656
at UnrealBuildTool.VSCodeProjectFileGenerator.WritePrimaryProjectFile(ProjectFile UBTProject, PlatformProjectGeneratorCollection PlatformProjectGenerators, ILogger Logger) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/VisualStudioCode/VSCodeProjectFileGenerator.cs:line 281
at UnrealBuildTool.ProjectFileGenerator.WriteProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, ILogger Logger) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 2821
at UnrealBuildTool.ProjectFileGenerator.GenerateProjectFiles(PlatformProjectGeneratorCollection PlatformProjectGenerators, String[] Arguments, ILogger Logger) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/ProjectFiles/ProjectFileGenerator.cs:line 1176
at UnrealBuildTool.GenerateProjectFilesMode.Execute(CommandLineArguments Arguments, ILogger Logger) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/Modes/GenerateProjectFilesMode.cs:line 233
at UnrealBuildTool.UnrealBuildTool.Main(String[] ArgumentsArray) in /home/freyja/Underwater_Simulator/UnrealEngine/Engine/Source/Programs/UnrealBuildTool/UnrealBuildTool.cs:line 648
Experienced the same error - I reinstalled UE5 (ue5-main branch) and no longer get this error when generating project files. However, I'm still unable to open simulation due missing modules (Blocks and AirSim).
@saraaldhaheri can you provide more information about the OS that you are using?
Experienced the same error - I reinstalled UE5 (ue5-main branch) and no longer get this error when generating project files. However, I'm still unable to open simulation due missing modules (Blocks and AirSim).
I am having the same issue and I am on Ubuntu 20.04.
Same thing here with Manjaro (I updated the setup.sh accordingly to my OS)
遇到相同的错误 - 我重新安装了 UE5(ue5-main 分支),并且在生成项目文件时不再收到此错误。但是,由于缺少模块(Blocks 和 AirSim),我仍然无法打开模拟。 I have the same issue, and my ue is 5.4 and my ubuntu is 20.04
I used UE 5.1 on windows, wsl ubuntu 20.04 and I have the problem when I build the Block.sln in Visual Studio. It also caused the same problem that the project is missing Block and AirSim
When following these instructions:
cd ~/UNav-Sim/Unreal/Environments/Blocks
right-click on Blocks.uproject, selectUnreal Engine Generate Project Files
I get the following error:
It seems like it needs sudo permissions for accessing that folder