spoiledcat / git-for-unity

MIT License
491 stars 31 forks source link

No log for connection issues? Cannot do anything, but no log entries either. #17

Open Cyberman-tM opened 1 year ago

Cyberman-tM commented 1 year ago

I seem to have a similar issue to #16 , but for different reasons. I think the issue is that Git cannot connect, but I don't know - there's no popups, no login requests, nothing.

Not even a log file. I wasn't sure if I looked in the right place until I enabled Tracing, which gave me a log file with a single line, namely that tracing is now enabled.

Is this normal? If so, I would suggest adding something to the log, even if it's just "new log file created", so users know they're looking in the right place and there is no log file (yet).

shana commented 1 year ago

I swear exceptions should be getting logged and I'm baffled why they aren't. Could you check in the editor log? Maybe they're ending up in there for some reason.

Cyberman-tM commented 1 year ago

For some reason (best guess: the universe likes to troll people), there are logs now. Maybe because I closed unity/hub and started everything anew? The log doesn't say much to me, however.

I'm not entirely sure if I'm using the correct name in the settings - is it the display name, or the original account name? I'm sure I tried both.

Could the issue be because the repository does not belong to me, but is shared with me? (It's hidden)

Christoph


Von: Andreia Gaita @.> Gesendet: Donnerstag, 9. Februar 2023 18:12 An: spoiledcat/git-for-unity @.> Cc: Christoph Pichlmann @.>; Author @.> Betreff: Re: [spoiledcat/git-for-unity] No log for connection issues? Cannot do anything, but no log entries either. (Issue #17)

I swear exceptions should be getting logged and I'm baffled why they aren't. Could you check in the editor log? Maybe they're ending up in there for some reason.

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspoiledcat%2Fgit-for-unity%2Fissues%2F17%23issuecomment-1424534252&data=05%7C01%7Cpichlmann%40fredlarts.at%7Cf6dc5f542b844e080a5108db0ac0d2e1%7C9099c869e91a4c7696f9953e2cf0dc7b%7C0%7C0%7C638115595588927072%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dWTPBUPrEtBcdlzev5Cq26ry9qfWBuU%2Fvu1W6ofRHP8%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABBHCQKJKMGVP2K33LITONTWWUQPZANCNFSM6AAAAAAUVZ77CA&data=05%7C01%7Cpichlmann%40fredlarts.at%7Cf6dc5f542b844e080a5108db0ac0d2e1%7C9099c869e91a4c7696f9953e2cf0dc7b%7C0%7C0%7C638115595588927072%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=8nCTeJ4sEVIG6%2BQa4EYQVQNQbeZo5vBn6CqRKOL7%2FIs%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

Public

shana commented 1 year ago

Are you referring to the name/email fields in the settings? Those are there because some git operations require a name/email to be configured - they can be anything, and are not related to authentication.

This version of Git for Unity doesn't authenticate you to whatever git provider you're using (GitHub/GitLab/etc) - it relies on authentication being already set up before. If the repository that you're using is private, then you need to make sure you can actually pull/push to it. Since you have the project open, I assume you've cloned the repository in some way outside of Git for Unity? To doublecheck that Git in general is working, open a command line (outside of Unity), go to where your project is, and run git fetch to see if git works and is successfully authenticated - this might fix whatever authentication issue you might be having.

I'm working on fixing the logs to actually log whatever the heck is going wrong with these "can't do anything" issues, I'll update as soon as I have something.

Cyberman-tM commented 1 year ago

I see - that explains a lot, thank you!

Also thank you for creating this - even if it doesn't work (for me) right now, I can see that it's very useful. It works with my friend, after all. So currently I'm using Git for Desktop to upload/get the files. Good enough for now 🙂

Christoph


Von: Andreia Gaita @.> Gesendet: Freitag, 10. Februar 2023 11:44 An: spoiledcat/git-for-unity @.> Cc: Christoph Pichlmann @.>; Author @.> Betreff: Re: [spoiledcat/git-for-unity] No log for connection issues? Cannot do anything, but no log entries either. (Issue #17)

Are you referring to the name/email fields in the settings? Those are there because some git operations require a name/email to be configured - they can be anything, and are not related to authentication.

This version of Git for Unity doesn't authenticate you to whatever git provider you're using (GitHub/GitLab/etc) - it relies on authentication being already set up before. If the repository that you're using is private, then you need to make sure you can actually pull/push to it. Since you have the project open, I assume you've cloned the repository in some way outside of Git for Unity? To doublecheck that Git in general is working, open a command line (outside of Unity), go to where your project is, and run git fetch to see if git works and is successfully authenticated - this might fix whatever authentication issue you might be having.

I'm working on fixing the logs to actually log whatever the heck is going wrong with these "can't do anything" issues, I'll update as soon as I have something.

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspoiledcat%2Fgit-for-unity%2Fissues%2F17%23issuecomment-1425611338&data=05%7C01%7Cpichlmann%40fredlarts.at%7Cc46caf0071d3424c8eea08db0b53cd94%7C9099c869e91a4c7696f9953e2cf0dc7b%7C0%7C0%7C638116226819843234%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6WP2HtKes7W6A3vwiq6zH9GzXws0H43NTaHwGTUb4S8%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABBHCQLIVOJJTVONTF274VTWWYLZHANCNFSM6AAAAAAUVZ77CA&data=05%7C01%7Cpichlmann%40fredlarts.at%7Cc46caf0071d3424c8eea08db0b53cd94%7C9099c869e91a4c7696f9953e2cf0dc7b%7C0%7C0%7C638116226819843234%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=m90gUc7rK%2BDZTqirRRvio9hRXQh665kKW71sl5DQmmI%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>

Public