Git Product home page Git Product logo

gitextensions.gitlab's People

Contributors

ahmeturun avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

gitextensions.gitlab's Issues

Invalid URI: The hostname could not be parsed.

Current behaviour

  • Installed GitLab extension
  • restarted Git Extensions
  • open a repo folder on disk that had been cloned two years ago by other means from an on-premise GitLab server
  • Git Extensions Error Report dialog shows up with the content below

Expected behaviour

That I'd be able to use Git Extensions normally.

Steps to reproduce

  • open a repo folder on disk that had been cloned a year ago by other means from an on-premise GitLab server
  • Git Extensions Error Report dialog shows up with the content below
  • Dismissing the error dialog lets me use Git Extensions, within limits I'll describe later.

Error Details

System.UriFormatException: Invalid URI: The hostname could not be parsed.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at System.Uri..ctor(String uriString)
   at RestSharp.RestClient..ctor(String baseUrl)
   at GitExtensions.GitLab.Client.Client..ctor(String gitLabDomain, String oAuthToken)
   at GitExtensions.GitLab.GitLabPlugin.InitializeConfiguredParameters(IGitModule gitModule)
   at GitExtensions.GitLab.GitLabPlugin.Register(IGitUICommands gitUiCommands)
   at GitUI.PluginRegistry.<>c__DisplayClass12_0.<Register>b__0(IGitPlugin p)
   at System.Linq.LinqExtensions.ForEach[T](IEnumerable`1 enumerable, Action`1 action)
   at GitUI.PluginRegistry.Register(IGitUICommands gitUiCommands)
   at GitUI.CommandsDialogs.FormBrowse.RegisterPlugins()
   at GitUI.CommandsDialogs.FormBrowse.SetGitModule(Object sender, GitModuleEventArgs e)
   at GitUI.CommandsDialogs.BrowseDialog.DashboardControl.Dashboard.OnModuleChanged(Object sender, GitModuleEventArgs e)
   at GitUI.CommandsDialogs.BrowseDialog.DashboardControl.UserRepositoriesList.OnModuleChanged(GitModuleEventArgs args)
   at GitUI.CommandsDialogs.BrowseDialog.DashboardControl.UserRepositoriesList.listView1_MouseClick(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseClick(MouseEventArgs e)
   at System.Windows.Forms.ListView.WmReflectNotify(Message& m)
   at System.Windows.Forms.ListView.WndProc(Message& m)
   at GitUI.UserControls.ExListView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Environment

  • Git Extensions 3.4.3.9999
  • Build d4b0f48bbf3e39a71f5d7ff5231be5678d4aa0f1
  • Git 2.27.0.windows.1
  • Microsoft Windows NT 10.0.19041.0
  • .NET Framework 4.8.4300.0
  • DPI 96dpi (no scaling)

[NBug] GitLab Plugin Object reference not set to an instance of an object.

Current behaviour

Raise an error clicking on Create Merge Request button

Expected behaviour

Create a Merge Request :)

Steps to reproduce

I've added my APIKEY for GitLab Pluging in its configuration section and then I've clicked on Create Merge Request button.

Error Details

System.NullReferenceException: Object reference not set to an instance of an object.
   at GitExtensions.GitLab.GitLabHostedRemote.get_IsOwnedByMe()
   at GitExtensions.GitLab.Forms.CreateMergeRequestForm.<>c.<CreateMergeRequestForm_Load>b__19_0(IHostedRemote remote)
   at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at GitExtensions.GitLab.Forms.CreateMergeRequestForm.CreateMergeRequestForm_Load(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at GitUI.GitExtensionsForm.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at ResourceManager.GitExtensionsFormBase.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Additional information

add api key for GitLab plugin in configuration section and then click on Create Merge Request button

Environment

  • Git Extensions 3.4.3.9999
  • Build d4b0f48bbf3e39a71f5d7ff5231be5678d4aa0f1
  • Git 2.29.2.windows.3
  • Microsoft Windows NT 10.0.18362.0
  • .NET Framework 4.8.4250.0
  • DPI 96dpi (no scaling)

Crash after installing GitLab extension

Previously reported in: gitextensions/gitextensions#8757

Current behaviour

  • Installed GitExtensions on a new machine
  • Copied my previous settings over - note: previous install has no extra plugins installed other than the ones which ship with GE by default
  • Installed the GitLab plugin. The Plugin Manager closed GE for the install.
  • Reopened GE resulting in a hard crash on start-up.

After manually removing the Users\Name\AppData\Local\GitExtensions\UserPlugins\GitExtensions.GitLab folder + removing the package from the Users\Name\AppData\Local\GitExtensions\UserPlugins\packages.config file, GE starts up again as normal.

Expected behaviour

No crash

Steps to reproduce

See above and I have been able to consistently reproduce it by installing the GitLab plugin again as I forgot to take a screenshot the first time round ;-)

Screenshots

image

I also allowed the error to be send in/reported, so the error details should be in the received reports from the last hour or so. Let me know if you need any additional info to specifically identify this report.

Did this work in previous version of GitExtensions

No idea as I never installed the extension before.

Environment

  • Git Extensions 3.4.3.9999
  • Build d4b0f48bbf3e39a71f5d7ff5231be5678d4aa0f1
  • Git 2.30.0.windows.2
  • Microsoft Windows NT 10.0.19042.0
  • .NET Framework 4.8.4300.0

Diagnostics

Error Details

System.UriFormatException: Invalid URI: The URI scheme is not valid.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at System.Uri..ctor(String uriString)
   at GitExtensions.GitLab.GitLabPlugin.InitializeConfiguredParameters(IGitModule gitModule)
   at GitExtensions.GitLab.GitLabPlugin.Register(IGitUICommands gitUiCommands)
   at GitUI.PluginRegistry.<>c__DisplayClass12_0.<Register>b__0(IGitPlugin p)
   at System.Linq.LinqExtensions.ForEach[T](IEnumerable`1 enumerable, Action`1 action)
   at GitUI.PluginRegistry.Register(IGitUICommands gitUiCommands)
   at GitUI.CommandsDialogs.FormBrowse.RegisterPlugins()
   at GitUI.CommandsDialogs.FormBrowse.<<-ctor>b__43_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at GitUI.ThreadHelper.<>c__DisplayClass13_0.<<FileAndForget>b__0>d.MoveNext()

After install plugin - Invalid URI: The URI scheme is not valid

โš ๏ธ The sections below must be filled in and this text must be removed or the issue will be closed.

Current behaviour

Expected behaviour

Steps to reproduce

Error Details

System.UriFormatException: Invalid URI: The URI scheme is not valid.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at System.Uri..ctor(String uriString)
   at GitExtensions.GitLab.GitLabPlugin.InitializeConfiguredParameters(IGitModule gitModule)
   at GitExtensions.GitLab.GitLabPlugin.Register(IGitUICommands gitUiCommands)
   at GitExtensions.GitLab.GitLabPlugin.CurrentGitUiCommands_PostSettings(Object sender, GitUIPostActionEventArgs e)
   at GitUI.GitUICommands.InvokePostEvent(IWin32Window ownerForm, Boolean actionDone, EventHandler`1 gitUIEventHandler)
   at GitUI.GitUICommands.DoActionOnRepo(IWin32Window owner, Boolean requiresValidWorkingDir, Boolean changesRepo, EventHandler`1 preEvent, EventHandler`1 postEvent, Func`1 action)
   at GitUI.GitUICommands.StartSettingsDialog(IWin32Window owner, SettingsPageReference initialPage)
   at GitUI.GitUICommands.StartSettingsDialog(IGitPlugin gitPlugin)
   at GitExtensions.GitLab.GitLabPlugin.Execute(GitUIEventArgs gitUIEventArgs)
   at GitUI.CommandsDialogs.FormBrowse.<>c__DisplayClass63_0.<RegisterPlugins>b__2(Object <p0>, EventArgs <p1>)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Additional information

after install gitlab plugin

Environment

  • Git Extensions 3.4.3.9999
  • Build d4b0f48bbf3e39a71f5d7ff5231be5678d4aa0f1
  • Git 2.27.0.windows.1
  • Microsoft Windows NT 10.0.19042.0
  • .NET Framework 4.8.4300.0
  • DPI 96dpi (no scaling)

Referense gitextensions/gitextensions#9175 (comment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.