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

has no meta file, but it's in an immutable folder. The asset will be ignored. #214

Closed
ALexanderLonsky opened this issue May 9, 2022 · 4 comments

Comments

@ALexanderLonsky
Copy link

Hello,

  1. I created a local package.
  2. Added a dependency:
"dependencies": {
    "com.proyecto26.restclient": "2.6.2"
  }
  1. In my main project I imported my local package and added:
"scopedRegistries": [
    {
      "name": "OpenUPM",
      "url": "https://package.openupm.com",
      "scopes": [        
        "com.proyecto26.restclient",
        "com.openupm",
        "com.rsg.promise"
      ]
    }
  ] 

In my understanding, it's required to add scopedRegistries to the main project manifest because Unity ignores it in the package.json of the local package.
4. Successfully opened the project and imported dependencies.
5. Got these errors:

Asset Packages/com.proyecto26.restclient/packages.config has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.proyecto26.restclient/Properties has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.proyecto26.restclient/Properties/AssemblyInfo.cs has no meta file, but it's in an immutable folder. The asset will be ignored.
Asset Packages/com.proyecto26.restclient/Proyecto26.RestClient.csproj has no meta file, but it's in an immutable folder. The asset will be ignored.
....

Could you please tell me if the issue is in the way I import RestClient?

Thanks!

@jdnichollsc
Copy link
Member

Hey mate, thanks for reporting this issue

Did you try using the branch for UPM? https://github.com/proyecto26/RestClient#upm-package

Please let me know!

@ALexanderLonsky
Copy link
Author

ALexanderLonsky commented May 10, 2022

Hey @jdnichollsc, thanks for your reply.
I tried, but it says:

has invalid dependencies or related test packages:
    com.proyecto26.restclient (dependency): Version 'https://github.com/proyecto26/RestClient#upm' is invalid. Expected a 'SemVer' compatible value.

It seems the package's dependency must come only by 'SemVer'.

@ALexanderLonsky
Copy link
Author

Hey,
update:
I managed to add it directly to my playground project by the link.

@imadyTech
Copy link

I just had the same issue after released a pure C# script package to Unity 2021.3.4. Since the package is actually a part of a Visual Studio class library, there was no Meta file and I guess this is the reason for the error.
I can initiate a Unity project and put all scripts inside the Assets/Scripts folder so the Unity engine will be able to generate meta files automatically. However it will be a little bit weird if the code is used for non-Unity projects.

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

3 participants