Skip to content

Regression in 2.7.0-260208-1601.Release: invalid autoload path generated on Windows #183

@pcloves

Description

@pcloves

Description

After upgrading GodotSharp.SourceGenerators from 2.7.0-260201-1801.Release to 2.7.0-260208-1601.Release, my project no longer builds on Windows.

Repro repo:

https://github.com/pcloves/autoload-issue

The repo already contains the exact changes needed to reproduce the issue. The relevant change is the package upgrade in autoload-issue.csproj:

<PackageReference Include="GodotSharp.SourceGenerators" Version="2.7.0-260208-1601.Release" />

The previous version 2.7.0-260201-1801.Release builds successfully in the same project.

Steps to reproduce

  1. Clone the repo.
  2. Run dotnet build.

Actual result

D:\Develop\MyProjects\autoload-issue\Autoload.cs(5,2): error Autoload: 文件名、目录名或卷标语法不正确。 : 'D:\Develop\MyProjects\autoload-issue\res:\addons\phantom_camera\scripts\managers\phantom_camera_manager.gd'. [D:\Develop\MyProjects\autoload-issue\autoload-issue.csproj]

It looks like the generated path is invalid on Windows:

D:\Develop\MyProjects\autoload-issue\res:\addons\phantom_camera\scripts\managers\phantom_camera_manager.gd

This project uses the phantom_camera addon, and its PhantomCameraManager autoload seems to trigger the issue.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions