Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Miatrix opened this issue Dec 5, 2023 · 5 comments

Comments

@Miatrix
Copy link

Miatrix commented Dec 5, 2023

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
Copy link
Member

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

What is the .NET version you use?

@Miatrix
Copy link
Author

Miatrix commented Dec 6, 2023

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.

@jakubmisek
Copy link
Member

This is the same as #1047 I guess, working on it

@jakubmisek
Copy link
Member

currently, you need to specify

/p:DebugType=portable

and the compilation will proceed

jakubmisek added a commit that referenced this issue Dec 1, 2024
<DebugType>none</DebugType> property handled
eq to /debug-
ref: #1128
@jakubmisek
Copy link
Member

implemented! thanks for pointing this out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants