stride3d / stride3d/stride

Engine complains about the project directory not existing, despite the fact it should create it.

Open
#3,367 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
7.8k
Forks
1.2k
Avg merge
2d 17h
Merged PRs (30d)
49

Description

This is on the version 4.4.0.0-beta5

When trying to create a project using any template, even the blank one, it just outputs this error and does nothing.

Error: An exception occurred while generating the template.
FileNotFoundException: Could not find file 'C:\Users\Owner\Documents\Stride Projects\ThirdPersonPlatformer'.
at System.IO.FileSystem.CreateDirectory(String fullPath, Byte[] securityDescriptor)
at System.IO.Directory.CreateDirectory(String path)
at Stride.Assets.Templates.DotNetNewTemplateGenerator.InstantiateFiles(SessionTemplateGeneratorParameters parameters) in //sources/engine/Stride.Assets/Templates/DotNetNewTemplateGenerator.cs:line 206
at Stride.Assets.Templates.DotNetNewTemplateGenerator.Generate(SessionTemplateGeneratorParameters parameters) in /
/sources/engine/Stride.Assets/Templates/DotNetNewTemplateGenerator.cs:line 107
at Stride.Core.Assets.Quantum.Templates.QuantumGraphTemplateGenerator.Generate(SessionTemplateGeneratorParameters parameters) in //sources/assets/Stride.Core.Assets.Quantum/Templates/QuantumGraphTemplateGenerator.cs:line 40
at Stride.Core.Assets.Templates.SessionTemplateGenerator.Run(SessionTemplateGeneratorParameters parameters) in /
/sources/assets/Stride.Core.Assets/Templates/SessionTemplateGenerator.cs:line 38
at Stride.Core.Assets.Editor.Components.TemplateDescriptions.TemplateGeneratorHelper.<>c__DisplayClass0_0`1.b__0() in /_/sources/editor/Stride.Core.Assets.Editor/Components/TemplateDescriptions/TemplateGeneratorHelper.cs:line 56

Edit: It works everywhere but documents?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in sources/engine/Stride.Assets/Templates/DotNetNewTemplateGenerator.cs around line 206, then follow Generate and the template-generation call chain shown in the stack trace. Reproduce project creation with the blank template and a Documents project path, including the reported missing directory case. Done means template creation completes without the FileNotFoundException.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.