Cysharp / Cysharp/YetAnotherHttpHandler

CS0103: Unsafe does not exist

Open
#163 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
509
Forks
46
Avg merge
1h 24m
Merged PRs (30d)
1

Description

Overview

Upgrade to latest version(v1.11.5), it Appear compile errors at Library/PackageCache/com.cysharp.yetanotherhttphandler@*/InteropExtensions.cs and others

Detail

Error Content
Library\PackageCache\com.cysharp.yetanotherhttphandler@e38922c716c3\InteropExtensions.cs(28,49): 
error CS0103: The name 'Unsafe' does not exist in the current context

it happens same error at these scripts

  • InteropExtensions.cs
  • UnsafeUtilities.cs
  • RequestContext.cs

Why Happened(guess)

  1. put on System.Runtime.CompilerServices.Unsafe.dll(v6.0.0) at Assets/Plugins/SystemRuntimeCompilerServicesUnsafe/System.Runtime.CompilerServices.Unsafe.dll. it work "auto-reference" from "Assembly-CSharp"
  2. but didn't work "auto-reference" from YetAnotherHttpHandler
  3. precompiledReferences is empty in "YetAnotherHttpHandler.Unity.asmdef" , it didn't found explicit description about "reference" in version 1.11.5
  4. As a result、it not Resolved System.Runtime.CompilerServices.Unsafe, and appeared "CS0103"

Environment

  • Unity 6000.3.2f1
  • YetAnotherHttpHandler 1.11.5

Contributor guide

No contributing guide indexed for this repository

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 by reproducing the Unity 6000.3.2f1 build error in InteropExtensions.cs, UnsafeUtilities.cs, and RequestContext.cs, then inspect YetAnotherHttpHandler.Unity.asmdef and its precompiledReferences setting. Confirm the fix by rebuilding the package with System.Runtime.CompilerServices.Unsafe resolved and no CS0103 errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
build-system, game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.