Skip to content

[Unity] Missing *.meta file for ResolverUtilities.cs #1388

Closed

Description

@XaneFeather

Bug description

The meta file for ResolverUtilities.cs is missing in the respository, rendering it unusable as a directly hooked up package via the Package Manager.

Repro steps

  • Create a new Unity Project.
  • Add MessagePack via the Package Manager:

"Add Package from git URL"
https://github.com/neuecc/MessagePack-CSharp.git?path=src/MessagePack.UnityClient/Assets/Scripts/MessagePack

Expected behavior

It should work and compile just fine!

Actual behavior

Instead I am greeted with the following message:

Asset Packages/com.neuecc.messagepack/Resolvers/ResolverUtilities.cs has no meta file, but it's in an immutable folder. The asset will be ignored.

And thus

Library\PackageCache\com.neuecc.messagepack@3e624b9499\Resolvers\DynamicObjectResolver.cs(114,55): error CS0103: The name 'ResolverUtilities' does not exist in the current context

Additional context

Yes the installation via the .unitypackage works fine, but I do prefer the usage of the Package Manager which makes updating the asset a lot more convenient.

Activity

  1. AArnott commented on Jan 26, 2022

    @AArnott
    Collaborator

    I'd be happy to take a PR to fix this. I don't use unity myself.

  2. added a commit that references this issue on Jan 26, 2022
    4eca1e6
  3. neuecc commented on Jan 26, 2022

    @neuecc
    Member

    I've added PR #1389 .

    Note:
    missing meta is critical for Unity and sometimes we missed it.
    my another repository, checking it on CI.
    https://github.com/Cysharp/MessagePipe/blob/master/.github/workflows/build-debug.yml#L81-L89

  4. added a commit that references this issue on Jan 27, 2022
    db187ed
  5. AArnott commented on Jan 27, 2022

    @AArnott
    Collaborator

    @neuecc How do the files get generated? The guid that's in there... is it just any unique guid?

  6. neuecc commented on Jan 27, 2022

    @neuecc
    Member

    .meta is generated when opening in Unity.
    If .meta is not exists, create with unique GUID.
    That is refered by Unity asset database.

    In principle, I think it will work even if you give it a GUID outside of Unity.
    However, it is still safer to have them generated in Unity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions