Bug 575179 - Cannot find git-for-windows.ico
Summary: Cannot find git-for-windows.ico
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: terminal (show other bugs)
Version: 10.4.0   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-02 07:19 EDT by Massimiliano Mancini CLA
Modified: 2022-07-18 05:41 EDT (History)
6 users (show)

See Also:


Attachments
Error log (8.17 KB, text/plain)
2021-08-02 07:19 EDT, Massimiliano Mancini CLA
no flags Details
Git Bash in preferences (39.57 KB, image/png)
2022-02-25 06:06 EST, Andreas Mayer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Massimiliano Mancini CLA 2021-08-02 07:19:04 EDT
Created attachment 286874 [details]
Error log

In error log is reported the attached error due to the path where the git icon seems to be searched.
Comment 1 Jonah Graham CLA 2021-08-03 14:07:52 EDT
Thanks for the report. It looks like the location of the icon file must have moved?

A few questions so we can fix this:

1) Do you actually have git bash installed and is it working?
2) Do you have a C:\Program Files\Git\mingw64\share\git\ directory? 
3) Does your git install have git-for-windows.ico somewhere else? Where?
4) Is the git bash terminal in Eclipse working regardless of the error?

Thank you!
Comment 2 Massimiliano Mancini CLA 2021-08-05 07:33:53 EDT
Hello,
please find my answers in line;

1) Do you actually have git bash installed and is it working?
No, I don't have a git bash installed but git commands are available. I use git for windows https://github.com/git-for-windows/git in particular the MinGit release https://github.com/git-for-windows/git/releases/tag/v2.32.0.windows.2

2) Do you have a C:\Program Files\Git\mingw64\share\git\ directory? 
No, I haven't

3) Does your git install have git-for-windows.ico somewhere else? Where?
No, nowhere. I searched with no results

4) Is the git bash terminal in Eclipse working regardless of the error?
Yes, I haven't any other error on eclipse

Thank you
Comment 3 Maxx L. CLA 2022-02-18 06:08:17 EST
FYI

Same issue on... MacOS!!!
Just updated an "old" Eclipse install I made in 2020 via brew, but the workspaces I used have previously been created under Windows...

So I'd like to know where to remove such references to old Windows' paths like "C:\Program Files\Git\mingw64\share\git\git-for-windows.ico"

Thank you.
Comment 4 Andreas Mayer CLA 2022-02-25 05:52:15 EST
(In reply to Jonah Graham from comment #1)

I have the same issue. If you install Git for Windows without administrative privileges (that is, "C:\Program Files" is read-only for you), Git for Windows will install to %LOCALAPPDATA%. In my case, this is "C:\Users\<username>\AppData\Local\Programs\Git".

> 1) Do you actually have git bash installed and is it working?

Yes. 

> 2) Do you have a C:\Program Files\Git\mingw64\share\git\ directory? 

No. 

> 3) Does your git install have git-for-windows.ico somewhere else? Where?

Yes, in " C:\Users\<username>\AppData\Local\Programs\Git\mingw64\share\git\git-for-windows.ico".

> 4) Is the git bash terminal in Eclipse working regardless of the error?

I only use the Git UI of Eclipse and could not even find a Git Bash terminal.
Comment 5 Andreas Mayer CLA 2022-02-25 06:06:51 EST
Created attachment 288124 [details]
Git Bash in preferences

Found it. Something has added a "Git Bash" as an external program to my preferences and used paths that do not exist. If you remove this entry, there will be no more exceptions in the error log.
Comment 6 Maxx L. CLA 2022-03-02 11:22:13 EST
(In reply to Andreas Mayer from comment #5)
> Created attachment 288124 [details]
> Git Bash in preferences
> 
> Found it. Something has added a "Git Bash" as an external program to my
> preferences and used paths that do not exist. If you remove this entry,
> there will be no more exceptions in the error log.

Great, found it too!!!
Comment 7 Henri Maire CLA 2022-07-18 05:41:44 EDT
(In reply to Andreas Mayer from comment #5)
> Created attachment 288124 [details]
> Git Bash in preferences
> 
> Found it. Something has added a "Git Bash" as an external program to my
> preferences and used paths that do not exist. If you remove this entry,
> there will be no more exceptions in the error log.

Thank you very much :)
For new one here, see attachment of the Andreas Mayer answer to know how to remove the Git Bash reference.