gitextensions / GitExtensions.GerritPlugin

Git Extensions plugin providing integration with Gerrit Code Review.
MIT License
9 stars 8 forks source link

[NBug] Could not load type 'GitUI.OsShellUtil' from assembly 'GitU... #78

Closed John-Riley-TSI closed 10 months ago

John-Riley-TSI commented 10 months ago

Environment

Issue description

System.TypeLoadException: Could not load type 'GitUI.OsShellUtil' from assembly 'GitUI, Version=4.1.0.16698, Culture=neutral, PublicKeyToken=null'.
   at GitExtensions.GerritPlugin.FormGitReview.lnkGitReviewPatterns_LinkClicked(Object sender, LinkLabelLinkClickedEventArgs e)
   at System.Windows.Forms.LinkLabel.OnLinkClicked(LinkLabelLinkClickedEventArgs e)
   at System.Windows.Forms.LinkLabel.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Label.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, WM msg, IntPtr wparam, IntPtr lparam)

Installed Gerrit plugin. Attempted to click on the ".gitreview file format" link from both the plugin manager and the "Edit .gitreview" main menu item. Both displayed the Error popup.

Steps to reproduce

  1. Install Gerrit Plugin
  2. Plugin > Gerrit Code Review
  3. From "Gerrit Plugin" popup, click on ".gitreview file format" link

Did this work in previous version of GitExtensions?

I don't know, this was my first attempt to use Gerrit.

Diagnostics

No response

duplicates-detector-bot[bot] commented 10 months ago

Potential duplicates:

mstv commented 10 months ago

This class was moved to a different namespace GitCommands in gitextensions/gitextensions#10727 (which does not match the folder structure GitCommands/Git/OsShellUtil.cs). An update of the plugin using the Plugin Manager might help.

John-Riley-TSI commented 10 months ago

I just installed it for the first time today. I checked in the Updates tab and there are no updates available, not even preview updates.

mstv commented 10 months ago

Thank you for checking. I have requested an update.

duplicates-detector-bot[bot] commented 10 months ago

Potential duplicates:

duplicates-detector-bot[bot] commented 10 months ago

Potential duplicates:

lekhmanrus commented 10 months ago

It was resolved in https://github.com/gitextensions/GitExtensions.GerritPlugin/pull/74. v2.0.6.196 was released recently.