Opened 3 years ago

Closed 3 years ago

#64243 closed defect (duplicate)

git: Warning: Error parsing file /opt/local/share/git-gui/lib/Git Gui.app/Contents/MacOS/Wish

Reported by: breun (Nils Breunese) Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: jleroy (Jonathan Leroy)
Port: git

Description

When running MacPorts commands like sudo port reclaim I see this warning:

Warning: Error parsing file /opt/local/share/git-gui/lib/Git Gui.app/Contents/MacOS/Wish: Error opening or reading file

I have this version of the git port installed:

❯ port installed git
The following ports are currently installed:
  git @2.34.1_1+credential_osxkeychain+diff_highlight+doc+pcre+perl5_28 (active)

This port lists the following files for a Git Gui.app:

❯ port contents git | grep 'Git Gui'    
  /opt/local/share/git-gui/lib/Git Gui.app/Contents/Info.plist
  /opt/local/share/git-gui/lib/Git Gui.app/Contents/MacOS/Wish
  /opt/local/share/git-gui/lib/Git Gui.app/Contents/Resources/Scripts/AppMain.tcl
  /opt/local/share/git-gui/lib/Git Gui.app/Contents/Resources/git-gui.icns

However, I don't have a directory called Git Gui.app under /opt/local/share/git-gui/lib on my system.

Maybe the space in the directory name is not correctly escaped or something?

Change History (10)

comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from herbygillot to ci42
Summary: Warning: Error parsing file /opt/local/share/git-gui/lib/Git Gui.app/Contents/MacOS/Wishgit: Warning: Error parsing file /opt/local/share/git-gui/lib/Git Gui.app/Contents/MacOS/Wish

Perhaps something outside of the control of MacPorts deleted /opt/local/share/git-gui/lib/Git Gui.app from your disk, because it should be there. It's there on my system.

Try deactivating and then reactivating the git port to put all of its files back where they belong.

sudo port -f deactivate git
sudo port activate git

comment:2 Changed 3 years ago by breun (Nils Breunese)

I have no idea how that could have happened, but reactivating the git port indeed fixed the issue. Thanks.

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: assignedclosed

comment:4 Changed 3 years ago by breun (Nils Breunese)

I just had this issue again, right after upgrading to macOS 12.2. I fixed it by deactivating and then activating git again.

comment:5 Changed 3 years ago by breun (Nils Breunese)

I just had this issue again after upgrading to macOS 12.2.1.

comment:6 Changed 3 years ago by jleroy (Jonathan Leroy)

Same here after upgrading to macOS 12.2.1 from a fesh macOS 12.2 install.

Version 0, edited 3 years ago by jleroy (Jonathan Leroy) (next)

comment:7 Changed 3 years ago by breun (Nils Breunese)

Duplicate: ticket:64764

comment:8 Changed 3 years ago by jleroy (Jonathan Leroy)

Cc: jleroy added

comment:9 Changed 3 years ago by jmroot (Joshua Root)

Resolution: invalid
Status: closedreopened

comment:10 Changed 3 years ago by jmroot (Joshua Root)

Resolution: duplicate
Status: reopenedclosed
Note: See TracTickets for help on using tickets.