Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidCastException when dragging a file to Visual Studio #13

Open
sharwell opened this issue Mar 17, 2019 · 0 comments
Open

InvalidCastException when dragging a file to Visual Studio #13

sharwell opened this issue Mar 17, 2019 · 0 comments

Comments

@sharwell
Copy link
Member

Current behavior

System.InvalidCastException: Specified cast is not valid.
at System.Windows.Forms.IDataObject.GetDataPresent(Type format)
at ICSharpCode.TextEditor.TextAreaDragDropHandler.OnDragEnter(Object sender, DragEventArgs e)
at ICSharpCode.TextEditor.TextAreaDragDropHandler.<>c__DisplayClass3_0.<MakeDragEventHandler>b__0(Object sender, DragEventArgs e)

Expected behavior

No error.

Steps to reproduce

The preconditions for this state are unknown. Once entering the bad state, the behavior is triggered by attempting to drag a file from the Diff tab of FormBrowse to a Visual Studio window.

Screenshots

image

Did this work in previous version of GitExtensions

I've observed this occasionally for a long time (multiple versions).

Environment

  • Git Extensions 3.0.2.5232
  • Build 23b6f51905006ccdde8701591df706284b4155dc
  • Git 2.19.1.windows.1
  • Microsoft Windows NT 10.0.17763.0
  • .NET Framework 4.7.3362.0
  • DPI 96dpi (no scaling)
@RussKie RussKie transferred this issue from gitextensions/gitextensions Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant