Luminol icon indicating copy to clipboard operation
Luminol copied to clipboard

[BUG] Error locating destination directory for project

Open LordPatate opened this issue 6 months ago • 8 comments

Describe the bug

Creating a new project fails on Windows with message : "Error locating destination directory for project". I suspect the problem to be simply an UNIX-style path for the .luminol/config file instead of a platform-agnostic path.

Trying to re-open the project will fail.

To Reproduce

Steps to reproduce the behavior:

  1. Click "New Project"
  2. (Probably optional) Rename project
  3. (Probably optional) Enable "Initialize a git repository"
  4. (Probably optional) Rename default branch to "main"
  5. Select an empty folder
  6. Click OK

Backtrace

2024-08-14T16:46:11.822772Z ERROR luminol_core: Luminol error:
   0: Error locating destination directory for project
   1: While writing .luminol/config
   2: While opening file "G:\\LuminolProjects\\.luminol/config" in a host folder
   3: The system cannot find the path specified. (os error 3)

Location:
   D:\a\Luminol\Luminol\crates\filesystem\src\native.rs:118

Luminol version: 1140aa2

image

When I tried re-opening the project:

2024-08-14T16:47:21.650137Z ERROR luminol_core: Luminol error:
   0: Error opening the project
   1: While loading project data
   2: While loading project configuration
   3: Unable to detect the project's RPG Maker version (perhaps you did not open an RPG Maker project?

Location:
   crates\filesystem\src\project.rs:163

Luminol version: 1140aa2

Expected behavior

Creating a new project without errors :)

Desktop

  • OS: Windows 11 Home
  • OS Version: 23H2

Additional context

Just grabbed the windows build from the latest autobuild deployment pipeline.

I'm a developer, I'll try to take a look, see if I can find the problem and open a PR for it.

LordPatate avatar Aug 14 '24 17:08 LordPatate