needle-tools / ar-simulation

AR Simulation for Unity • Right in the Editor • Minimally Invasive
109 stars 10 forks source link

[Package Manager] Failed getting latest version for AR Simulation #46

Closed puos closed 3 years ago

puos commented 3 years ago

Hi~ This is happening in my laptop wifi environment. I don't know why, but ㅠㅠ Maybe it is related to wifi. Or maybe my location is related to Korea. I confirmed that it works in other desktop environments. I hope this helps.

image

Versions (please complete the following information):

hybridherbst commented 3 years ago

Hi, thanks for reporting! Are you able to manually add ARSimulation as package to package manager, not using the installer?

Also, I think the Unity version you're using there (2019.4.9) had some issues PackMan resolve (what you're seeing); might be worth testing on a later 2019.4 version but you might be right that this is a network/ISP issue.

marwie commented 3 years ago

Hello @puos Did you solve the problem?

puos commented 3 years ago

Thank you for your care ^^ We still have this problem and we will send you the Editor log of Unity. Editor.log

marwie commented 3 years ago

Mmmh the log says Unity cannot connect to the local package manager. Can you install any package via Unity PackageManager (Window/PackageManager) ?

Adding genesis user token ###################
[Package Manager] Server::CheckExitCode -- Server stopped with exit code `3221226505`
[Package Manager] PackageManager Server::Start -- Process restart attempt #4
[Package Manager] Server::Start -- Port 55597 was selected
[Package Manager] Cannot connect to Unity Package Manager local server
marwie commented 3 years ago

Here is another thing you could try. Modify the manifest.json in the Packages folder to add ARSimulation:

image

{
  "scopedRegistries": [
    {
      "name": "needle",
      "url": "https://packages.needle.tools",
      "scopes": [
        "com.needle"
      ]
    }
  ],
  "dependencies": {
    "com.needle.xr.arsimulation": "1.2.0-preview",
....

Let me know if it helps!

marwie commented 3 years ago

If not you can download this version from here: https://packages.needle.tools/com.needle.xr.arsimulation/-/com.needle.xr.arsimulation-1.2.0-preview.tgz (you can unzip it and put it in the Packages folder)

BUT the downside is: you will not be able to get updates via package manager or asset store so it would really be best if you find a way to use the PackageManager :)

hybridherbst commented 3 years ago

One more idea, does this happen to be on a machine with processor being either i7-1065G7, i5-1035G4, i7-1035G7 or something similar?

If yes, you might be hitting a very arcane bug that Unity only fixed recently on 2020.2.3f1, 2019.4.19f1, 2021.1.0b4 that prevented packages from custom registries to be used in some cases. Might be worth updating in case you have one of those processors.

marwie commented 3 years ago

Hello @puos, any news on this?

marwie commented 3 years ago

Hello @puos is this still a problem for you? Do you use any of the processors mentioned by @hybridherbst above?