github-for-unity / Unity

GitHub for Unity
https://unity.github.com/
MIT License
3.04k stars 448 forks source link

GitHub for Unity with the New Input System (Input System 1.0.0) #1123

Closed heimhofc closed 2 years ago

heimhofc commented 4 years ago

Prerequisites

The log file:

Unity Error logfile

Description

These errors come up when I try to use GitHub for Unity (V1.4, Unity Version 2019.4.9f) with the new input system (Input System 1.0.0). I had no issues with the old input system.

This error first comes up: Unity Error 02

Then this error repeats constantly and spams the console: Unity Error 01

Steps to Reproduce

  1. Create new unity project (Version 2019.4.9f)
  2. Switch to new input system
  3. setup GitHub for Unity including the remote repository
  4. create a new local branch
  5. close and reopen project

Expected behavior: GitHub works normally

Actual behavior: Console is getting spammed with the following errors:

Reproduces how often: every time

Additional Information

I had the issue with my project when I set up GitHub for Unity, but it reproduces also with a basically empty project.

shana commented 4 years ago

Ah, it's likely not the input system, just things getting cached in the wrong place. I'm not likely to do fixes to this project, but if this is still happening in the Unity fork over at https://github.com/Unity-Technologies/Git-for-Unity, I can fix it there. It's basically the same minus the "login to github" part, in package form, with a lot of fixes on top (this might have already been fixed there, I can't remember).

You can try and grab the latest release from there, just download the first tgz on the asset list (com.unity.git-X.X.X.tgz), and in the Package Manager window in Unity, click on the + on the top left and select Add package from tarball to install the package in your project.

Garfounkel commented 3 years ago

I had a different but similar issue, lately GitHubForUnity has been completely acting out for me after upgrading Unity to 2020 LTS (any operation would result in a NullReferenceException). Doing what @shana suggested in the previous comment solved my issue. If you try that, just remember to remove the previous GitHubForUnity installation first (remove Assets/Plugins/GitHub/).

@shana From my understanding this repo is not maintained anymore but https://github.com/Unity-Technologies/Git-for-Unity is, even though it's still in preview. It might be worth updating the readme to redirect people over there directly?