peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core
https://www.peachpie.io
Apache License 2.0
2.31k stars 201 forks source link

PHP4034: Failure writing debug information: Value cannot be null. (Parameter 'type') #1128

Open Miatrix opened 7 months ago

Miatrix commented 7 months ago

When doing a dotnet publish with the following options under GitHub actions:

dotnet publish Client/Client.csproj -c Release -o ${{env.DOTNET_ROOT}}/app/Client /p:RuntimeIdentifier=linux-x64 /p:PublishSingleFile=true /p:DebugType=None /p:DebugSymbols=false /p:PublishReferencesDocumentationFiles=false

I'm getting: BUILDTASK : error PHP4034: Failure writing debug information: Value cannot be null. (Parameter 'type') [/home/runner/work/PHPLib/PHPLib.msbuildproj]

When I run that same command locally it works fine. Is there some option I should or should not pass to solve this issue?

The client includes several .net packages and 1 php package called PHPLib

jakubmisek commented 7 months ago

I guess, the .NET SDK version might be different.

What is the .NET version you use?

Miatrix commented 7 months ago

I'm using .net 8. I have resolved it on the build server by removing /p:PublishSingleFile=true

I would like to create 1 file but I have a workaround for now and maybe a hint for you to figure out where the issue might be.